diskmanagers

package
v1.1.0-alpha.1....-acf7b57 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 8 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) error

Create gets appropriate disk manager and calls respective create method

func (*VirtualDisk) Delete

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

Delete gets appropriate disk manager and calls respective delete method

type VirtualDiskProvider

type VirtualDiskProvider interface {
	Create(ctx context.Context, datastore *vclib.Datastore) error
	Delete(ctx context.Context, datastore *vclib.Datastore) 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