import "github.com/wallyworld/juju/cmd/juju/machine"
add.go base.go flags.go list.go machine.go remove.go show.go upgradeseries.go
const ( PrepareCommand = "prepare" CompleteCommand = "complete" )
Actions
const UpgradeSeriesCompleteFinishedMessage = `
Upgrade series for machine %q has successfully completed`
const UpgradeSeriesPrepareFinishedMessage = "" /* 220 byte string literal not displayed */
NewAddCommand returns a command that adds a machine to a model.
NewListMachineCommand returns a command that lists the machines in a model.
NewRemoveCommand returns a command used to remove a specified machine.
NewShowMachineCommand returns a command that shows details on the specified machine[s].
NewUpgradeSeriesCommand returns a command which upgrades the series of an application or machine.
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 interface { AddMachines([]params.AddMachineParams) ([]params.AddMachinesResult, error) BestAPIVersion() int Close() error }
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 interface { BestAPIVersion() int Close() error UpgradeSeriesValidate(string, string) ([]string, error) UpgradeSeriesPrepare(string, string, bool) error UpgradeSeriesComplete(string) error WatchUpgradeSeriesNotifications(string) (watcher.NotifyWatcher, string, error) GetUpgradeSeriesMessages(string, string) ([]string, error) }
go:generate go run github.com/golang/mock/mockgen -package mocks -destination mocks/upgradeMachineSeriesAPI_mock.go github.com/juju/juju/cmd/juju/machine UpgradeMachineSeriesAPI
Path | Synopsis |
---|---|
mocks | Package mocks is a generated GoMock package. |
Package machine imports 33 packages (graph). Updated 2020-08-06. Refresh now. Tools for package owners.