manifest

package
v0.0.3-0...-f8a205e Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AZChanger

type AZChanger struct {
	InstanceGroup string
	AZs           []string
	// contains filtered or unexported fields
}

func (*AZChanger) Apply

func (a *AZChanger) Apply(dm *enaml.DeploymentManifest) error

type Cloner

type Cloner struct {
	InstanceGroup string // IG to clone
	Clone         string // name for the copy
}

Cloner is a transformation that clones an instance group.

func (*Cloner) Apply

func (c *Cloner) Apply(dm *enaml.DeploymentManifest) error

type NetworkMover

type NetworkMover struct {
	InstanceGroup string
	Network       string
	StaticIPs     []string
	// contains filtered or unexported fields
}

NetworkMover is a transformation that changes which network an instance group is placed in.

func (*NetworkMover) Apply

type ScaleInstance

type ScaleInstance struct {
	InstanceGroup string
	Scale         int
}

ScaleInstance Scale instance type stores what instance group and how much to scale it

func (*ScaleInstance) Apply

Apply apply the scale

type TagAdder

type TagAdder struct {
	Args []string
}

func (*TagAdder) Apply

func (t *TagAdder) Apply(dm *enaml.DeploymentManifest) error

type Transformation

type Transformation interface {
	Apply(*enaml.DeploymentManifest) error
}

Transformation is an action applied to a manifest.

func AddTagsTransformation

func AddTagsTransformation(args []string) (Transformation, error)

func AddVMExtensionTransformation

func AddVMExtensionTransformation(args []string) (Transformation, error)

AddVMExtensionTransformation is a TransformationBuilder that builds the 'add-vm-extension' transformation.

func ChangeAZTransformation

func ChangeAZTransformation(args []string) (Transformation, error)

func ChangeNetworkTransformation

func ChangeNetworkTransformation(args []string) (Transformation, error)

ChangeNetworkTransformation is a TransformationBuilder that builds the 'change-network' transformation.

func CloneTransformation

func CloneTransformation(args []string) (Transformation, error)

CloneTransformation is a TransformationBuilder that builds the 'clone' transformation.

func ScaleInstanceTransform

func ScaleInstanceTransform(args []string) (Transformation, error)

ScaleInstanceTransform Function to scale the instances in the group.

type TransformationBuilder

type TransformationBuilder func(args []string) (Transformation, error)

TransformationBuilder is a function that builds a transformation from a CLI context.

type VMExtension

type VMExtension struct {
	Name          string
	InstanceGroup string
	Extensions    []string
}

VMExtension is a transformation that adds a vm extension to the given instance group

func (*VMExtension) Apply

func (ve *VMExtension) Apply(dm *enaml.DeploymentManifest) error

Jump to

Keyboard shortcuts

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