environment

package
v0.0.0-...-f19ae85 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSuperCommand

func NewSuperCommand() cmd.Command

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

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

func (c *GetCommand) Run(ctx *cmd.Context) error

func (*GetCommand) SetFlags

func (c *GetCommand) SetFlags(f *gnuflag.FlagSet)

type GetEnvironmentAPI

type GetEnvironmentAPI interface {
	Close() error
	EnvironmentGet() (map[string]interface{}, error)
}

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

func (*JenvCommand) Run

func (c *JenvCommand) Run(ctx *cmd.Context) 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

func (*RetryProvisioningCommand) Run

func (c *RetryProvisioningCommand) Run(context *cmd.Context) 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)

func (*SetCommand) Run

func (c *SetCommand) Run(ctx *cmd.Context) error

type SetEnvironmentAPI

type SetEnvironmentAPI interface {
	Close() error
	EnvironmentGet() (map[string]interface{}, error)
	EnvironmentSet(config map[string]interface{}) error
}

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)

func (*UnsetCommand) Run

func (c *UnsetCommand) Run(ctx *cmd.Context) error

type UnsetEnvironmentAPI

type UnsetEnvironmentAPI interface {
	Close() error
	EnvironmentGet() (map[string]interface{}, error)
	EnvironmentUnset(keys ...string) error
}

Jump to

Keyboard shortcuts

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