Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentConfig ¶
type AgentConfig interface {
Model() Model
}
AgentConfig describes the method required for a AgentConfig in Reboot.
type Model ¶
type Model interface {
Id() string
}
Model describes the method required for a Model in Reboot.
type Reboot ¶
type Reboot struct {
// contains filtered or unexported fields
}
Reboot implements the ExecuteReboot command which will reboot a machine once all containers have shut down, or a timeout is reached
func (*Reboot) ExecuteReboot ¶
func (r *Reboot) ExecuteReboot(action params.RebootAction) error
ExecuteReboot will wait for all running containers to stop, and then execute a shutdown or a reboot (based on the action param)
type RebootWaiter ¶
type RebootWaiter interface { HostSeries() (string, error) ListServices() ([]string, error) NewService(string, common.Conf, string) (Service, error) NewContainerManager(instance.ContainerType, container.ManagerConfig) (Manager, error) ScheduleAction(action params.RebootAction, after int) error }
RebootWaiter describes the functions required by Reboot. Added for use in mocked tests.
Click to show internal directories.
Click to hide internal directories.