github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/apiserver/params/constants.go (about)

     1  // Copyright 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package params
     5  
     6  // RebootAction defines the action a machine should
     7  // take when a hook needs to reboot
     8  type RebootAction string
     9  
    10  const (
    11  	// ShouldDoNothing instructs a machine agent that no action
    12  	// is required on its part
    13  	ShouldDoNothing RebootAction = "noop"
    14  	// ShouldReboot instructs a machine to reboot
    15  	// this happens when a hook running on a machine, requests
    16  	// a reboot
    17  	ShouldReboot RebootAction = "reboot"
    18  	// ShouldShutdown instructs a machine to shut down. This usually
    19  	// happens when running inside a container, and a hook on the parent
    20  	// machine requests a reboot
    21  	ShouldShutdown RebootAction = "shutdown"
    22  )
    23  
    24  // ResolvedMode describes the way state transition errors
    25  // are resolved.
    26  type ResolvedMode string
    27  
    28  const (
    29  	ResolvedNone       ResolvedMode = ""
    30  	ResolvedRetryHooks ResolvedMode = "retry-hooks"
    31  	ResolvedNoHooks    ResolvedMode = "no-hooks"
    32  )