Documentation
¶
Index ¶
- type CPI
- type Disks
- func (a Disks) AttachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error
- func (a Disks) CreateDisk(size int, _ apiv1.DiskCloudProps, _ *apiv1.VMCID) (apiv1.DiskCID, error)
- func (a Disks) DeleteDisk(cid apiv1.DiskCID) error
- func (a Disks) DetachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error
- func (a Disks) HasDisk(cid apiv1.DiskCID) (bool, error)
- type Factory
- type FactoryOpts
- type Misc
- type Stemcells
- type VMs
- func (a VMs) CreateVM(agentID apiv1.AgentID, stemcellCID apiv1.StemcellCID, ...) (apiv1.VMCID, error)
- func (a VMs) DeleteVM(cid apiv1.VMCID) error
- func (a VMs) GetDisks(cid apiv1.VMCID) ([]apiv1.DiskCID, error)
- func (a VMs) HasVM(cid apiv1.VMCID) (bool, error)
- func (a VMs) RebootVM(cid apiv1.VMCID) error
- func (a VMs) SetVMMetadata(cid apiv1.VMCID, metadata apiv1.VMMeta) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disks ¶
type Disks struct {
// contains filtered or unexported fields
}
func (Disks) CreateDisk ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory( fs boshsys.FileSystem, cmdRunner boshsys.CmdRunner, uuidGen boshuuid.Generator, compressor boshcmd.Compressor, opts FactoryOpts, logger boshlog.Logger, ) Factory
type FactoryOpts ¶
type FactoryOpts struct {
Host string
Username string
PrivateKey string
BinPath string
StoreDir string
StorageController string
AutoEnableNetworks bool
Agent apiv1.AgentOptions
}
func (FactoryOpts) DisksDir ¶
func (o FactoryOpts) DisksDir() string
func (FactoryOpts) StemcellsDir ¶
func (o FactoryOpts) StemcellsDir() string
func (FactoryOpts) VMsDir ¶
func (o FactoryOpts) VMsDir() string
func (FactoryOpts) Validate ¶
func (o FactoryOpts) Validate() error
type Stemcells ¶
type Stemcells struct {
// contains filtered or unexported fields
}
func (Stemcells) CreateStemcell ¶
func (a Stemcells) CreateStemcell( imagePath string, _ apiv1.StemcellCloudProps) (apiv1.StemcellCID, error)
func (Stemcells) DeleteStemcell ¶
func (a Stemcells) DeleteStemcell(cid apiv1.StemcellCID) error
Click to show internal directories.
Click to hide internal directories.