Documentation ¶
Index ¶
- func DestroyMachines1dot16(st *state.State, ids ...string) (err error)
- func MachineConfig(st *state.State, machineId, nonce, dataDir string) (*cloudinit.MachineConfig, error)
- func NewUnitMatcher(patterns []string) (unitMatcher, error)
- func Status(conn *juju.Conn, patterns []string) (*api.Status, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyMachines1dot16 ¶
DestroyMachines1dot16 destroys the machines with the specified ids. This is copied from the 1.16.3 code to enable compatibility. It should be removed when we release a version that goes via the API only (whatever is after 1.18)
func MachineConfig ¶
func MachineConfig(st *state.State, machineId, nonce, dataDir string) (*cloudinit.MachineConfig, error)
MachineConfig returns information from the environment config that is needed for machine cloud-init (for non-state servers only).
The code is here so that it can be shared between the API server (for ProvisioningScript) and the CLI (for manual provisioning) for maintaining compatibiility with juju-1.16 (where the API MachineConfig did not exist). When we drop 1.16 compatibility, this code should be moved into apiserver.
func NewUnitMatcher ¶
NewUnitMatcher returns a unitMatcher that matches units with one of the specified patterns, or all units if no patterns are specified.
An error will be returned if any of the specified patterns is invalid. Patterns are valid if they contain only alpha-numeric characters, hyphens, or asterisks (and one optional '/' to separate service/unit).
Types ¶
This section is empty.