Documentation ¶
Index ¶
- Constants
- Variables
- func NewAddCommand() cmd.Command
- func NewListMachinesCommand() cmd.Command
- func NewRemoveCommand() cmd.Command
- func NewShowMachineCommand() cmd.Command
- func NewUpgradeMachineCommand() cmd.Command
- type MachineManagerAPI
- type ModelConfigAPI
- type RemoveMachineAPI
- type StatusAPI
- type UpgradeMachineAPI
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 SupportedJujuBases = corebase.WorkloadBases
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 RemoveMachineAPI ¶
type StatusAPI ¶
type StatusAPI interface {
Status(*client.StatusArgs) (*params.FullStatus, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.