machine

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrepareCommand  = "prepare"
	CompleteCommand = "complete"
)

Actions

View Source
const UpgradeSeriesCompleteFinishedMessage = `
Upgrade series for machine %q has successfully completed`
View Source
const UpgradeSeriesCompleteOngoingMessage = `
Upgrade series is currently completing for machine %q.
`
View Source
const UpgradeSeriesPrepareCompletedMessage = `` /* 304-byte string literal not displayed */
View Source
const UpgradeSeriesPrepareFinishedMessage = `` /* 218-byte string literal not displayed */
View Source
const UpgradeSeriesPrepareOngoingMessage = `
Upgrade series is currently being prepared for machine %q.
`

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].

func NewUpgradeSeriesCommand

func NewUpgradeSeriesCommand() cmd.Command

NewUpgradeSeriesCommand returns a command which upgrades the series of an application or machine.

Types

type AddMachineAPI

type AddMachineAPI interface {
	AddMachines([]params.AddMachineParams) ([]params.AddMachinesResult, error)
	Close() error
	ForceDestroyMachines(machines ...string) error
	DestroyMachinesWithParams(force, keep bool, machines ...string) error
	ModelUUID() (string, bool)
	ProvisioningScript(params.ProvisioningScriptParams) (script string, err error)
}

type MachineManagerAPI

type MachineManagerAPI interface {
	AddMachines([]params.AddMachineParams) ([]params.AddMachinesResult, error)
	BestAPIVersion() int
	Close() error
}

type ModelConfigAPI

type ModelConfigAPI interface {
	ModelGet() (map[string]interface{}, error)
	Close() error
}

type RemoveMachineAPI

type RemoveMachineAPI interface {
	// TODO (anastasiamac 2019-4-24) From Juju 3.0 this call will be removed in favour of DestroyMachinesWithParams.
	DestroyMachines(machines ...string) ([]params.DestroyMachineResult, error)
	DestroyMachinesWithParams(force, keep bool, maxWait *time.Duration, machines ...string) ([]params.DestroyMachineResult, error)
	Close() error
}

type StatusAPI

type StatusAPI interface {
	Status(pattern []string) (*params.FullStatus, error)
}

type UpgradeMachineSeriesAPI

type UpgradeMachineSeriesAPI interface {
	BestAPIVersion() int
	Close() error
	UpgradeSeriesPrepare(string, string, bool) error
	UpgradeSeriesComplete(string) error
	WatchUpgradeSeriesNotifications(string) (watcher.NotifyWatcher, string, error)
	GetUpgradeSeriesMessages(string, string) ([]string, 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