machine

package
v0.0.0-...-7db8050 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 33 Imported by: 8

Documentation

Index

Constants

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

Actions

View Source
const UpgradeMachineCompleteFinishedMessage = `
Upgrade machine base %q has successfully completed`
View Source
const UpgradeMachineCompleteOngoingMessage = `
Upgrade base is currently completing for machine %q.
`
View Source
const UpgradeMachinePrepareCompletedMessage = `` /* 311-byte string literal not displayed */
View Source
const UpgradeMachinePrepareFinishedMessage = `` /* 223-byte string literal not displayed */
View Source
const UpgradeMachinePrepareOngoingMessage = `
Upgrade machine base is currently being prepared for machine %q.
`

Variables

View Source
var SupportedJujuSeries = corebase.WorkloadSeries

For testing.

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 NewUpgradeMachineCommand

func NewUpgradeMachineCommand() cmd.Command

NewUpgradeMachineCommand returns a command which upgrades the base of an application or machine.

Types

type MachineManagerAPI

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

type ModelConfigAPI

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

type RemoveMachineAPI

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

type StatusAPI

type StatusAPI interface {
	Status(*client.StatusArgs) (*params.FullStatus, error)
}

type UpgradeMachineAPI

type UpgradeMachineAPI interface {
	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