statecmd

package
v0.0.0-...-a7271ac Latest Latest
Warning

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

Go to latest
Published: May 4, 2014 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyMachines1dot16

func DestroyMachines1dot16(st *state.State, ids ...string) (err error)

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

func NewUnitMatcher(patterns []string) (unitMatcher, error)

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).

func Status

func Status(conn *juju.Conn, patterns []string) (*api.Status, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL