Documentation ¶
Index ¶
- func AcquireLease(ctx context.Context, machine *api.Machine) (*api.Machine, error)
- func AcquireLeases(ctx context.Context) ([]*api.Machine, 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 WaitForStartOrStop(ctx context.Context, machine *api.Machine, action string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcquireLease ¶
AcquireLease works to acquire a leases for the specified machine. WARNING: Make sure you defer the lease release process.
func AcquireLeases ¶
AcquireLeases works to acquire a leases for each active machine. WARNING: Make sure you defer the lease release process.
func RollingRestart ¶
func RollingRestart(ctx context.Context, input *api.RestartMachineInput) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.