Documentation ¶
Index ¶
- type AddApplicationChange
- type AddApplicationParams
- type AddCharmChange
- type AddCharmParams
- type AddMachineChange
- type AddMachineOptions
- type AddMachineParams
- type AddRelationChange
- type AddRelationParams
- type AddUnitChange
- type AddUnitParams
- type Change
- type EntityType
- type ExposeChange
- type ExposeParams
- type SetAnnotationsChange
- type SetAnnotationsParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddApplicationChange ¶
type AddApplicationChange struct { // Params holds parameters for adding an application. Params AddApplicationParams // contains filtered or unexported fields }
AddApplicationChange holds a change for deploying a Juju application.
func (*AddApplicationChange) GUIArgs ¶
func (ch *AddApplicationChange) GUIArgs() []interface{}
GUIArgs implements Change.GUIArgs.
func (*AddApplicationChange) Id ¶
func (ch *AddApplicationChange) Id() string
Id implements Change.Id.
type AddApplicationParams ¶
type AddApplicationParams struct { // Charm holds the URL of the charm to be used to deploy this application. Charm string // Series holds the series of the application to be deployed // if the charm default is not sufficient. Series string // Application holds the application name. Application string // Options holds application options. Options map[string]interface{} // Constraints holds the optional application constraints. Constraints string // Storage holds the optional storage constraints. Storage map[string]string // EndpointBindings holds the optional endpoint bindings EndpointBindings map[string]string // Resources identifies the revision to use for each resource // of the application's charm. Resources map[string]int }
AddApplicationParams holds parameters for deploying a Juju application.
type AddCharmChange ¶
type AddCharmChange struct { // Params holds parameters for adding a charm. Params AddCharmParams // contains filtered or unexported fields }
AddCharmChange holds a change for adding a charm to the environment.
func (*AddCharmChange) GUIArgs ¶
func (ch *AddCharmChange) GUIArgs() []interface{}
GUIArgs implements Change.GUIArgs.
type AddCharmParams ¶
type AddCharmParams struct { // Charm holds the URL of the charm to be added. Charm string // Series holds the series of the charm to be added // if the charm default is not sufficient. Series string }
AddCharmParams holds parameters for adding a charm to the environment.
type AddMachineChange ¶
type AddMachineChange struct { // Params holds parameters for adding a machine. Params AddMachineParams // contains filtered or unexported fields }
AddMachineChange holds a change for adding a machine or container.
func (*AddMachineChange) GUIArgs ¶
func (ch *AddMachineChange) GUIArgs() []interface{}
GUIArgs implements Change.GUIArgs.
type AddMachineOptions ¶
type AddMachineOptions struct { // Series holds the machine OS series. Series string `json:"series,omitempty"` // Constraints holds the machine constraints. Constraints string `json:"constraints,omitempty"` // ContainerType holds the machine container type (like "lxc" or "kvm"). ContainerType string `json:"containerType,omitempty"` // ParentId holds the id of the parent machine. ParentId string `json:"parentId,omitempty"` }
AddMachineOptions holds GUI options for adding a machine or container.
type AddMachineParams ¶
type AddMachineParams struct { // Series holds the optional machine OS series. Series string // Constraints holds the optional machine constraints. Constraints string // ContainerType optionally holds the type of the container (for instance // ""lxc" or kvm"). It is not specified for top level machines. ContainerType string // ParentId optionally holds a placeholder pointing to another machine // change or to a unit change. This value is only specified in the case // this machine is a container, in which case also ContainerType is set. ParentId string }
AddMachineParams holds parameters for adding a machine or container.
type AddRelationChange ¶
type AddRelationChange struct { // Params holds parameters for adding a relation. Params AddRelationParams // contains filtered or unexported fields }
AddRelationChange holds a change for adding a relation between two applications.
func (*AddRelationChange) GUIArgs ¶
func (ch *AddRelationChange) GUIArgs() []interface{}
GUIArgs implements Change.GUIArgs.
type AddRelationParams ¶
type AddRelationParams struct { // Endpoint1 and Endpoint2 hold relation endpoints in the // "application:interface" form, where the application is always a placeholder // pointing to an application change, and the interface is optional. Examples // are "$deploy-42:web" or just "$deploy-42". Endpoint1 string Endpoint2 string }
AddRelationParams holds parameters for adding a relation between two applications.
type AddUnitChange ¶
type AddUnitChange struct { // Params holds parameters for adding a unit. Params AddUnitParams // contains filtered or unexported fields }
AddUnitChange holds a change for adding an application unit.
func (*AddUnitChange) GUIArgs ¶
func (ch *AddUnitChange) GUIArgs() []interface{}
GUIArgs implements Change.GUIArgs.
type AddUnitParams ¶
type AddUnitParams struct { // Application holds the application placeholder name for which a unit is added. Application string // To holds the optional location where to add the unit, as a placeholder // pointing to another unit change or to a machine change. To string }
AddUnitParams holds parameters for adding an application unit.
type Change ¶
type Change interface { // Id returns the unique identifier for this change. Id() string // Requires returns the ids of all the changes that must // be applied before this one. Requires() []string // Method returns the action to be performed to apply this change. Method() string // GUIArgs returns positional arguments to pass to the method, suitable for // being JSON-serialized and sent to the Juju GUI. GUIArgs() []interface{} // contains filtered or unexported methods }
Change holds a single change required to deploy a bundle.
type EntityType ¶
type EntityType string
EntityType holds entity types ("application" or "machine").
const ( ApplicationType EntityType = "application" MachineType EntityType = "machine" )
type ExposeChange ¶
type ExposeChange struct { // Params holds parameters for exposing an application. Params ExposeParams // contains filtered or unexported fields }
ExposeChange holds a change for exposing an application.
func (*ExposeChange) GUIArgs ¶
func (ch *ExposeChange) GUIArgs() []interface{}
GUIArgs implements Change.GUIArgs.
type ExposeParams ¶
type ExposeParams struct { // Application holds the placeholder name of the application that must be exposed. Application string }
ExposeParams holds parameters for exposing an application.
type SetAnnotationsChange ¶
type SetAnnotationsChange struct { // Params holds parameters for setting annotations. Params SetAnnotationsParams // contains filtered or unexported fields }
SetAnnotationsChange holds a change for setting application and machine annotations.
func (*SetAnnotationsChange) GUIArgs ¶
func (ch *SetAnnotationsChange) GUIArgs() []interface{}
GUIArgs implements Change.GUIArgs.
func (*SetAnnotationsChange) Id ¶
func (ch *SetAnnotationsChange) Id() string
Id implements Change.Id.
type SetAnnotationsParams ¶
type SetAnnotationsParams struct { // Id is the placeholder for the application or machine change corresponding to // the entity to be annotated. Id string // EntityType holds the type of the entity, "application" or "machine". EntityType EntityType // Annotations holds the annotations as key/value pairs. Annotations map[string]string }
SetAnnotationsParams holds parameters for setting annotations.