steps

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckTargetImage

type CheckTargetImage struct{}

CheckTargetImage is the step that ensures the target image does not already exist in CloudControl.

func (*CheckTargetImage) Cleanup

func (step *CheckTargetImage) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*CheckTargetImage) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type CloneServer

type CloneServer struct{}

CloneServer is the step that clones the target server in CloudControl.

func (*CloneServer) Cleanup

func (step *CloneServer) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*CloneServer) Run

func (step *CloneServer) Run(stateBag multistep.StateBag) multistep.StepAction

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type ConvertVMXToOVF

type ConvertVMXToOVF struct {
	// Delete the output directory (and its contents) when the Cleanup function is called?
	CleanupOVF bool

	// The base name for .ovf package files.
	PackageName string

	// The output directory for the OVF package files.
	//
	// If not specified, a new temporary directory will be created and used.
	OutputDir string

	// The degree of disk compression (1-9, where 1 is minimum compression and 9 is maximum compression).
	DiskCompression int

	// The path to the VMWare "ovftool" executable.
	OVFExecutable string
}

ConvertVMXToOVF is the step that converts a .vmx artifact from the VMWare builder to a .ovf artifact (for uploading to CloudControl).

func (*ConvertVMXToOVF) Cleanup

func (step *ConvertVMXToOVF) Cleanup(stateBag multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*ConvertVMXToOVF) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type CreateFirewallRule

type CreateFirewallRule struct{}

CreateFirewallRule is the step that exposes the target server using a firewall rule.

The server's associated NAT rule must already have been created.

func (*CreateFirewallRule) Cleanup

func (step *CreateFirewallRule) Cleanup(stateBag multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*CreateFirewallRule) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type CreateNATRule

type CreateNATRule struct{}

CreateNATRule is the step that exposes the target server using a NAT rule.

func (*CreateNATRule) Cleanup

func (step *CreateNATRule) Cleanup(stateBag multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*CreateNATRule) Run

func (step *CreateNATRule) Run(stateBag multistep.StateBag) multistep.StepAction

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type DeployServer

type DeployServer struct{}

DeployServer is the step that deploys the target server in CloudControl.

func (*DeployServer) Cleanup

func (step *DeployServer) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*DeployServer) Run

func (step *DeployServer) Run(stateBag multistep.StateBag) multistep.StepAction

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type ExportCustomerImage

type ExportCustomerImage struct{}

ExportCustomerImage is the step that exports a customer image to an OVF package.

func (*ExportCustomerImage) Cleanup

func (step *ExportCustomerImage) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*ExportCustomerImage) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type ImportCustomerImage

type ImportCustomerImage struct {
	// The name of the target image to create.
	TargetImageName string

	// The Id of the datacenter where the customer image will be created.
	DatacenterID string

	// The prefix for the OVF package files.
	OVFPackagePrefix string

	// Configure the customer image to prevent guess OS customisation?
	PreventGuestOSCustomization bool
}

ImportCustomerImage is the step that imports a customer image from an OVF package.

func (*ImportCustomerImage) Cleanup

func (step *ImportCustomerImage) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*ImportCustomerImage) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type ResolveDatacenter

type ResolveDatacenter struct {
	// The Id of the datacenter to resolve.
	DatacenterID string

	// Should the datacenter being resolved be treated as the source datacenter?
	AsSource bool

	// Should the datacenter being resolved be treated as the target datacenter?
	AsTarget bool
}

ResolveDatacenter is the step that resolves the target datacenter from CloudControl.

func (*ResolveDatacenter) Cleanup

func (step *ResolveDatacenter) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*ResolveDatacenter) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type ResolveNetworkDomain

type ResolveNetworkDomain struct{}

ResolveNetworkDomain is the step that resolves the target network domain by name from CloudControl.

func (*ResolveNetworkDomain) Cleanup

func (step *ResolveNetworkDomain) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*ResolveNetworkDomain) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type ResolveSourceImage

type ResolveSourceImage struct {
	// The name of the source image.
	ImageName string

	// The name of the target image.
	DatacenterID string

	// If true, then the source image must be a customer image.
	MustBeCustomerImage bool
}

ResolveSourceImage is the step that resolves the source image from CloudControl.

func (*ResolveSourceImage) Cleanup

func (step *ResolveSourceImage) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*ResolveSourceImage) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type ResolveVLAN

type ResolveVLAN struct{}

ResolveVLAN is the step that resolves the target VLAN by name from CloudControl.

func (*ResolveVLAN) Cleanup

func (step *ResolveVLAN) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*ResolveVLAN) Run

func (step *ResolveVLAN) Run(stateBag multistep.StateBag) multistep.StepAction

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

type UploadOVFPackage

type UploadOVFPackage struct {
	// The path to the "curl" executable.
	CurlExecutable string
}

UploadOVFPackage is the step that uploads the files comprising an OVF package to CloudControl.

Expects:

  • Target data center in state from ResolveDatacenter step.
  • OVF package files from source artifact in state from ConvertVMXToOVF step.

func (*UploadOVFPackage) Cleanup

func (step *UploadOVFPackage) Cleanup(state multistep.StateBag)

Cleanup is called in reverse order of the steps that have run and allow steps to clean up after themselves. Do not assume if this ran that the entire multi-step sequence completed successfully. This method can be ran in the face of errors and cancellations as well.

The parameter is the same "state bag" as Run, and represents the state at the latest possible time prior to calling Cleanup.

func (*UploadOVFPackage) Run

Run is called to perform the step's action.

The return value determines whether multi-step sequences should continue or halt.

Jump to

Keyboard shortcuts

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