Documentation ¶
Index ¶
Constants ¶
View Source
const ( VMNotFoundError = "Bosh::Cloud::VMNotFound" DiskNotFoundError = "Bosh::Cloud::DiskNotFound" StemcellNotFoundError = "Bosh::Cloud::StemcellNotFound" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CPI ¶
func (CPI) ExecutablePath ¶
type CPICmdRunner ¶
type CPICmdRunner interface {
Run(context CmdContext, method string, args ...interface{}) (CmdOutput, error)
}
func NewCPICmdRunner ¶
type Cloud ¶
type Cloud interface { CreateStemcell(imagePath string, cloudProperties biproperty.Map) (stemcellCID string, err error) DeleteStemcell(stemcellCID string) error HasVM(vmCID string) (bool, error) CreateVM( agentID string, stemcellCID string, cloudProperties biproperty.Map, networksInterfaces map[string]biproperty.Map, env biproperty.Map, ) (vmCID string, err error) DeleteVM(vmCID string) error CreateDisk(size int, cloudProperties biproperty.Map, vmCID string) (diskCID string, err error) AttachDisk(vmCID, diskCID string) error DetachDisk(vmCID, diskCID string) error DeleteDisk(diskCID string) error fmt.Stringer }
type CmdContext ¶
type CmdContext struct {
DirectorID string `json:"director_uuid"`
}
func (CmdContext) String ¶
func (c CmdContext) String() string
type CmdError ¶
type CmdInput ¶
type CmdInput struct { Method string `json:"method"` Arguments []interface{} `json:"arguments"` Context CmdContext `json:"context"` }
type Error ¶
func NewCPIError ¶
Click to show internal directories.
Click to hide internal directories.