Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSuperCommand ¶
NewSuperCommand creates the environment supercommand and registers the subcommands that it supports.
Types ¶
type EnsureAvailabilityClient ¶
type EnsureAvailabilityClient interface {
Close() error
EnsureAvailability(
numStateServers int, cons constraints.Value, series string,
placement []string) (params.StateServersChanges, error)
}
EnsureAvailabilityClient defines the methods on the client api that the ensure availability command calls.
type EnsureAvailabilityCommand ¶
type EnsureAvailabilityCommand struct {
envcmd.EnvCommandBase
NumStateServers int
// If specified, use this series for newly created machines,
// else use the environment's default-series
Series string
// If specified, these constraints will be merged with those
// already in the environment when creating new machines.
Constraints constraints.Value
// If specified, these specific machine(s) will be used to host
// new state servers. If there are more state servers required than
// machines specified, new machines will be created.
// Placement is passed verbatim to the API, to be evaluated and used server-side.
Placement []string
// PlacementSpec holds the unparsed placement directives argument (--to).
PlacementSpec string
// contains filtered or unexported fields
}
func (*EnsureAvailabilityCommand) Info ¶
func (c *EnsureAvailabilityCommand) Info() *cmd.Info
func (*EnsureAvailabilityCommand) Init ¶
func (c *EnsureAvailabilityCommand) Init(args []string) error
func (*EnsureAvailabilityCommand) Run ¶
func (c *EnsureAvailabilityCommand) Run(ctx *cmd.Context) error
Run connects to the environment specified on the command line and calls EnsureAvailability.
func (*EnsureAvailabilityCommand) SetFlags ¶
func (c *EnsureAvailabilityCommand) SetFlags(f *gnuflag.FlagSet)
type GetCommand ¶
type GetCommand struct {
envcmd.EnvCommandBase
// contains filtered or unexported fields
}
GetCommand is able to output either the entire environment or the requested value in a format of the user's choosing.
func (*GetCommand) Info ¶
func (c *GetCommand) Info() *cmd.Info
func (*GetCommand) Init ¶
func (c *GetCommand) Init(args []string) (err error)
func (*GetCommand) SetFlags ¶
func (c *GetCommand) SetFlags(f *gnuflag.FlagSet)
type GetEnvironmentAPI ¶
type JenvCommand ¶
type JenvCommand struct {
cmd.CommandBase
// contains filtered or unexported fields
}
JenvCommand imports the given Juju generated jenv file into the local JUJU_HOME environments directory.
func (*JenvCommand) Info ¶
func (c *JenvCommand) Info() *cmd.Info
func (*JenvCommand) Init ¶
func (c *JenvCommand) Init(args []string) error
type RetryProvisioningAPI ¶
type RetryProvisioningAPI interface {
Close() error
RetryProvisioning(machines ...names.MachineTag) ([]params.ErrorResult, error)
}
RetryProvisioningAPI defines methods on the client API that the retry-provisioning command calls.
type RetryProvisioningCommand ¶
type RetryProvisioningCommand struct {
envcmd.EnvCommandBase
Machines []names.MachineTag
// contains filtered or unexported fields
}
RetryProvisioningCommand updates machines' error status to tell the provisoner that it should try to re-provision the machine.
func (*RetryProvisioningCommand) Info ¶
func (c *RetryProvisioningCommand) Info() *cmd.Info
func (*RetryProvisioningCommand) Init ¶
func (c *RetryProvisioningCommand) Init(args []string) error
type SetCommand ¶
type SetCommand struct {
envcmd.EnvCommandBase
// contains filtered or unexported fields
}
func (*SetCommand) Info ¶
func (c *SetCommand) Info() *cmd.Info
func (*SetCommand) Init ¶
func (c *SetCommand) Init(args []string) (err error)
type SetEnvironmentAPI ¶
type UnsetCommand ¶
type UnsetCommand struct {
envcmd.EnvCommandBase
// contains filtered or unexported fields
}
func (*UnsetCommand) Info ¶
func (c *UnsetCommand) Info() *cmd.Info
func (*UnsetCommand) Init ¶
func (c *UnsetCommand) Init(args []string) (err error)