Documentation ¶
Index ¶
- Constants
- func NewAddCommand() cmd.Command
- func NewListMachinesCommand() cmd.Command
- func NewRemoveCommand() cmd.Command
- func NewShowMachineCommand() cmd.Command
- func NewUpgradeSeriesCommand() cmd.Command
- type AddMachineAPI
- type MachineManagerAPI
- type ModelConfigAPI
- type RemoveMachineAPI
- type StatusAPI
- type UpgradeMachineSeriesAPI
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 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 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) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.