Documentation ¶
Index ¶
- func AcquireAllLeases(ctx context.Context) ([]*api.Machine, releaseLeasesFunc, error)
- func AcquireLease(ctx context.Context, machine *api.Machine) (*api.Machine, releaseLeaseFunc, error)
- func AcquireLeases(ctx context.Context, machines []*api.Machine) ([]*api.Machine, releaseLeasesFunc, error)
- func CloneConfig(orig api.MachineConfig) (*api.MachineConfig, error)
- func ConfirmConfigChanges(ctx context.Context, machine *api.Machine, targetConfig api.MachineConfig, ...) (bool, error)
- func ListActive(ctx context.Context) ([]*api.Machine, error)
- func Restart(ctx context.Context, m *api.Machine, input *api.RestartMachineInput) error
- func RollingRestart(ctx context.Context, input *api.RestartMachineInput) error
- func Update(ctx context.Context, m *api.Machine, input *api.LaunchMachineInput) error
- func WaitForStartOrStop(ctx context.Context, machine *api.Machine, action string, ...) error
- type ErrNoConfigChangesFound
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireAllLeases ¶ added in v0.0.434
AcquireAllLeases works to acquire/attach a lease for each active machine.
func AcquireLease ¶
func AcquireLease(ctx context.Context, machine *api.Machine) (*api.Machine, releaseLeaseFunc, error)
AcquireLease works to acquire/attach a lease for the specified machine. WARNING: Make sure you defer the lease release process.
func AcquireLeases ¶
func AcquireLeases(ctx context.Context, machines []*api.Machine) ([]*api.Machine, releaseLeasesFunc, error)
AcquireLeases works to acquire/attach a lease for each machine specified.
func CloneConfig ¶ added in v0.0.434
func CloneConfig(orig api.MachineConfig) (*api.MachineConfig, error)
func ConfirmConfigChanges ¶ added in v0.0.434
func RollingRestart ¶
func RollingRestart(ctx context.Context, input *api.RestartMachineInput) error
Types ¶
type ErrNoConfigChangesFound ¶ added in v0.0.434
type ErrNoConfigChangesFound struct{}
func (*ErrNoConfigChangesFound) Error ¶ added in v0.0.434
func (e *ErrNoConfigChangesFound) Error() string
Click to show internal directories.
Click to hide internal directories.