machine

package
v0.0.0-...-56cb166 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddCommand

func NewAddCommand() cmd.Command

NewAddCommand returns a command that adds a machine to a model.

func NewListMachinesCommand

func NewListMachinesCommand() cmd.Command

NewListMachineCommand returns a command that lists the machines in a model.

func NewRemoveCommand

func NewRemoveCommand() cmd.Command

NewRemoveCommand returns a command used to remove a specified machine.

func NewShowMachineCommand

func NewShowMachineCommand() cmd.Command

NewShowMachineCommand returns a command that shows details on the specified machine[s].

Types

type MachineManagerAPI

type MachineManagerAPI interface {
	AddMachines(context.Context, []params.AddMachineParams) ([]params.AddMachinesResult, error)
	DestroyMachinesWithParams(ctx context.Context, force, keep, dryRun bool, maxWait *time.Duration, machines ...string) ([]params.DestroyMachineResult, error)
	ModelUUID() (string, bool)
	ProvisioningScript(context.Context, params.ProvisioningScriptParams) (script string, err error)
	Close() error
}

type ModelConfigAPI

type ModelConfigAPI interface {
	ModelGet(ctx context.Context) (map[string]interface{}, error)
	Close() error
}

type RemoveMachineAPI

type RemoveMachineAPI interface {
	DestroyMachinesWithParams(ctx context.Context, force, keep, dryRun bool, maxWait *time.Duration, machines ...string) ([]params.DestroyMachineResult, error)
	BestAPIVersion() int
	Close() error
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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