vslm

package
v0.20.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package vslm provides access to the vSphere Storage Lifecycle Management service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectManager

type ObjectManager struct {
	types.ManagedObjectReference
	// contains filtered or unexported fields
}

ObjectManager wraps VStorageObjectManagerBase.

func NewObjectManager

func NewObjectManager(client *vim25.Client, ref ...types.ManagedObjectReference) *ObjectManager

NewObjectManager returns an ObjectManager referencing the VcenterVStorageObjectManager singleton when connected to vCenter or the HostVStorageObjectManager singleton when connected to an ESX host. The optional ref param can be used to specify a ESX host instead, when connected to vCenter.

func (ObjectManager) AttachTag

func (m ObjectManager) AttachTag(ctx context.Context, id string, tag types.VslmTagEntry) error

func (ObjectManager) Clone

func (ObjectManager) CreateDisk

func (m ObjectManager) CreateDisk(ctx context.Context, spec types.VslmCreateSpec) (*object.Task, error)

func (ObjectManager) CreateSnapshot

func (m ObjectManager) CreateSnapshot(ctx context.Context, ds mo.Reference, id, desc string) (*object.Task, error)

func (ObjectManager) Delete

func (m ObjectManager) Delete(ctx context.Context, ds mo.Reference, id string) (*object.Task, error)

func (ObjectManager) DeleteSnapshot

func (m ObjectManager) DeleteSnapshot(ctx context.Context, ds mo.Reference, id, sid string) (*object.Task, error)

func (ObjectManager) DetachTag

func (m ObjectManager) DetachTag(ctx context.Context, id string, tag types.VslmTagEntry) error

func (ObjectManager) List

func (m ObjectManager) List(ctx context.Context, ds mo.Reference) ([]types.ID, error)

func (ObjectManager) ListAttachedObjects

func (m ObjectManager) ListAttachedObjects(ctx context.Context, category, tag string) ([]types.ID, error)

func (ObjectManager) ListAttachedTags

func (m ObjectManager) ListAttachedTags(ctx context.Context, id string) ([]types.VslmTagEntry, error)

func (ObjectManager) PlaceDisk

PlaceDisk uses StorageResourceManager datastore placement recommendations to choose a Datastore from a Datastore cluster. If the given spec backing Datastore field is not that of type StoragePod, the spec is unmodifed. Otherwise, the backing Datastore field is replaced with a Datastore suggestion.

func (ObjectManager) RegisterDisk

func (m ObjectManager) RegisterDisk(ctx context.Context, path, name string) (*types.VStorageObject, error)

func (ObjectManager) Rename

func (m ObjectManager) Rename(ctx context.Context, ds mo.Reference, id, name string) error

func (ObjectManager) Retrieve

func (ObjectManager) RetrieveSnapshotInfo

func (m ObjectManager) RetrieveSnapshotInfo(ctx context.Context, ds mo.Reference, id string) (*types.VStorageObjectSnapshotInfo, error)

Jump to

Keyboard shortcuts

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