diskmanagers

package
v1.11.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VirtualDiskCreateOperation = "Create"
	VirtualDiskDeleteOperation = "Delete"
)

VirtualDisk Operations Const

Variables

This section is empty.

Functions

func CleanUpDummyVMs

func CleanUpDummyVMs(ctx context.Context, folder *vclib.Folder, dc *vclib.Datacenter) error

CleanUpDummyVMs deletes stale dummyVM's

Types

type VirtualDisk

type VirtualDisk struct {
	DiskPath      string
	VolumeOptions *vclib.VolumeOptions
	VMOptions     *vclib.VMOptions
}

VirtualDisk is for the Disk Management

func (*VirtualDisk) Create

func (virtualDisk *VirtualDisk) Create(ctx context.Context, datastore *vclib.Datastore) (string, error)

Create gets appropriate disk manager and calls respective create method

func (*VirtualDisk) Delete

func (virtualDisk *VirtualDisk) Delete(ctx context.Context, datacenter *vclib.Datacenter) error

Delete gets appropriate disk manager and calls respective delete method

type VirtualDiskProvider

type VirtualDiskProvider interface {
	Create(ctx context.Context, datastore *vclib.Datastore) (string, error)
	Delete(ctx context.Context, datacenter *vclib.Datacenter) error
}

VirtualDiskProvider defines interfaces for creating disk

Jump to

Keyboard shortcuts

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