Documentation ¶
Index ¶
- type CPI
- type Disks
- func (a Disks) AttachDisk(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) error
- func (a Disks) AttachDiskV2(vmCID apiv1.VMCID, diskCID apiv1.DiskCID) (apiv1.DiskHint, 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)
- func (a Disks) ResizeDisk(cid apiv1.DiskCID, size int) error
- func (a Disks) SetDiskMetadata(cid apiv1.DiskCID, meta apiv1.DiskMeta) error
- type Factory
- type FactoryOpts
- type Misc
- type Snapshots
- type Stemcells
- type VMs
- func (a VMs) CalculateVMCloudProperties(res apiv1.VMResources) (apiv1.VMCloudProps, error)
- func (a VMs) CreateVM(agentID apiv1.AgentID, stemcellCID apiv1.StemcellCID, ...) (apiv1.VMCID, error)
- func (a VMs) CreateVMV2(agentID apiv1.AgentID, stemcellCID apiv1.StemcellCID, ...) (apiv1.VMCID, apiv1.Networks, 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) AttachDiskV2 ¶ added in v0.1.0
func (Disks) CreateDisk ¶
func (Disks) ResizeDisk ¶ added in v0.1.0
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 Snapshots ¶ added in v0.1.0
type Snapshots struct{}
func NewSnapshots ¶ added in v0.1.0
func NewSnapshots() Snapshots
func (Snapshots) DeleteSnapshot ¶ added in v0.1.0
func (s Snapshots) DeleteSnapshot(cid apiv1.SnapshotCID) error
func (Snapshots) SnapshotDisk ¶ added in v0.1.0
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
type VMs ¶
type VMs struct {
// contains filtered or unexported fields
}
func (VMs) CalculateVMCloudProperties ¶ added in v0.1.0
func (a VMs) CalculateVMCloudProperties(res apiv1.VMResources) (apiv1.VMCloudProps, error)
func (VMs) CreateVMV2 ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.