machine

package
v0.0.432 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcquireLease

func AcquireLease(ctx context.Context, machine *api.Machine) (*api.Machine, error)

AcquireLease works to acquire a leases for the specified machine. WARNING: Make sure you defer the lease release process.

func AcquireLeases

func AcquireLeases(ctx context.Context) ([]*api.Machine, error)

AcquireLeases works to acquire a leases for each active machine. WARNING: Make sure you defer the lease release process.

func ListActive

func ListActive(ctx context.Context) ([]*api.Machine, error)

func Restart

func Restart(ctx context.Context, m *api.Machine, input *api.RestartMachineInput) error

func RollingRestart

func RollingRestart(ctx context.Context, input *api.RestartMachineInput) error

func WaitForStartOrStop

func WaitForStartOrStop(ctx context.Context, machine *api.Machine, action string, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL