action

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2014 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConcreteFactory

func NewConcreteFactory(softLayerClient sl.Client, options ConcreteFactoryOptions, logger boshlog.Logger) concreteFactory

Types

type Action

type Action interface {
}

type AttachDisk

type AttachDisk struct {
	// contains filtered or unexported fields
}

func NewAttachDisk

func NewAttachDisk(vmFinder bslcvm.Finder, diskFinder bslcdisk.Finder) AttachDisk

func (AttachDisk) Run

func (a AttachDisk) Run(vmCID VMCID, diskCID DiskCID) (interface{}, error)

type ConcreteFactoryOptions

type ConcreteFactoryOptions struct {
	StemcellsDir string

	Agent bslcvm.AgentOptions
}

func (ConcreteFactoryOptions) Validate

func (o ConcreteFactoryOptions) Validate() error

type ConfigureNetworks

type ConfigureNetworks struct {
	// contains filtered or unexported fields
}

func NewConfigureNetworks

func NewConfigureNetworks(vmFinder bslcvm.Finder) ConfigureNetworks

func (ConfigureNetworks) Run

func (a ConfigureNetworks) Run(vmCID VMCID, networks bslcvm.Networks) (interface{}, error)

type CreateDisk

type CreateDisk struct {
	// contains filtered or unexported fields
}

func NewCreateDisk

func NewCreateDisk(diskCreator bslcdisk.Creator) CreateDisk

func (CreateDisk) Run

func (a CreateDisk) Run(size int, _ VMCID) (DiskCID, error)

type CreateStemcell

type CreateStemcell struct {
	// contains filtered or unexported fields
}

func NewCreateStemcell

func NewCreateStemcell(stemcellFinder bslcstem.Finder) CreateStemcell

func (CreateStemcell) Run

func (a CreateStemcell) Run(imagePath string, stemcellCloudProps CreateStemcellCloudProps) (StemcellCID, error)

type CreateStemcellCloudProps

type CreateStemcellCloudProps struct {
	Id             int    `json:"virtual-disk-image-id"`
	Uuid           string `json:"virtual-disk-image-uuid"`
	DatacenterName string `json:"datacenter-name"`
}

type CreateVM

type CreateVM struct {
	// contains filtered or unexported fields
}

func NewCreateVM

func NewCreateVM(stemcellFinder bslcstem.Finder, vmCreator bslcvm.Creator) CreateVM

func (CreateVM) Run

func (a CreateVM) Run(agentID string, stemcellCID StemcellCID, cloudProps bslcvm.VMCloudProperties, networks Networks, diskIDs []DiskCID, env Environment) (VMCID, error)

type DeleteDisk

type DeleteDisk struct {
	// contains filtered or unexported fields
}

func NewDeleteDisk

func NewDeleteDisk(diskFinder bslcdisk.Finder) DeleteDisk

func (DeleteDisk) Run

func (a DeleteDisk) Run(diskCID DiskCID) (interface{}, error)

type DeleteStemcell

type DeleteStemcell struct {
	// contains filtered or unexported fields
}

func NewDeleteStemcell

func NewDeleteStemcell(stemcellFinder bslcstem.Finder) DeleteStemcell

func (DeleteStemcell) Run

func (a DeleteStemcell) Run(stemcellCID StemcellCID) (interface{}, error)

type DeleteVM

type DeleteVM struct {
	// contains filtered or unexported fields
}

func NewDeleteVM

func NewDeleteVM(vmFinder bslcvm.Finder) DeleteVM

func (DeleteVM) Run

func (a DeleteVM) Run(vmCID VMCID) (interface{}, error)

type DetachDisk

type DetachDisk struct {
	// contains filtered or unexported fields
}

func NewDetachDisk

func NewDetachDisk(vmFinder bslcvm.Finder, diskFinder bslcdisk.Finder) DetachDisk

func (DetachDisk) Run

func (a DetachDisk) Run(vmCID VMCID, diskCID DiskCID) (interface{}, error)

type DiskCID

type DiskCID int

func (DiskCID) MarshalJSON

func (diskCID DiskCID) MarshalJSON() ([]byte, error)

func (*DiskCID) UnmarshalJSON

func (diskCID *DiskCID) UnmarshalJSON(data []byte) error

type Environment

type Environment map[string]interface{}

type Factory

type Factory interface {
	Create(method string) (Action, error)
}

type HasVM

type HasVM struct {
	// contains filtered or unexported fields
}

func NewHasVM

func NewHasVM(vmFinder bslcvm.Finder) HasVM

func (HasVM) Run

func (a HasVM) Run(vmCID VMCID) (bool, error)

type Network

type Network struct {
	Type string `json:"type"`

	IP      string `json:"ip"`
	Netmask string `json:"netmask"`
	Gateway string `json:"gateway"`

	DNS     []string `json:"dns"`
	Default []string `json:"default"`

	MAC string `json:"mac"`

	CloudProperties map[string]interface{} `json:"cloud_properties"`
}

type Networks

type Networks map[string]Network

func (Networks) AsVMNetworks

func (ns Networks) AsVMNetworks() bslcvm.Networks

type RebootVM

type RebootVM struct {
	// contains filtered or unexported fields
}

func NewRebootVM

func NewRebootVM(vmFinder bslcvm.Finder) RebootVM

func (RebootVM) Run

func (a RebootVM) Run(vmCID VMCID) (interface{}, error)

type SetVMMetadata

type SetVMMetadata struct {
	// contains filtered or unexported fields
}

func NewSetVMMetadata

func NewSetVMMetadata(vmFinder bslcvm.Finder) SetVMMetadata

func (SetVMMetadata) Run

func (a SetVMMetadata) Run(vmCID VMCID, metadata bslcvm.VMMetadata) (interface{}, error)

type StemcellCID

type StemcellCID int

func (StemcellCID) MarshalJSON

func (stemcellCID StemcellCID) MarshalJSON() ([]byte, error)

func (*StemcellCID) UnmarshalJSON

func (stemcellCID *StemcellCID) UnmarshalJSON(data []byte) error

type VMCID

type VMCID int

func (VMCID) MarshalJSON

func (vmCID VMCID) MarshalJSON() ([]byte, error)

func (*VMCID) UnmarshalJSON

func (vmCID *VMCID) UnmarshalJSON(data []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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