Documentation ¶
Overview ¶
Package vslm provides access to the vSphere Storage Lifecycle Management service.
Index ¶
- type ObjectManager
- func (m ObjectManager) AttachTag(ctx context.Context, id string, tag types.VslmTagEntry) error
- func (m ObjectManager) Clone(ctx context.Context, ds mo.Reference, id string, spec types.VslmCloneSpec) (*object.Task, error)
- func (m ObjectManager) CreateDisk(ctx context.Context, spec types.VslmCreateSpec) (*object.Task, error)
- func (m ObjectManager) CreateSnapshot(ctx context.Context, ds mo.Reference, id, desc string) (*object.Task, error)
- func (m ObjectManager) Delete(ctx context.Context, ds mo.Reference, id string) (*object.Task, error)
- func (m ObjectManager) DeleteSnapshot(ctx context.Context, ds mo.Reference, id, sid string) (*object.Task, error)
- func (m ObjectManager) DetachTag(ctx context.Context, id string, tag types.VslmTagEntry) error
- func (m ObjectManager) List(ctx context.Context, ds mo.Reference) ([]types.ID, error)
- func (m ObjectManager) ListAttachedObjects(ctx context.Context, category, tag string) ([]types.ID, error)
- func (m ObjectManager) ListAttachedTags(ctx context.Context, id string) ([]types.VslmTagEntry, error)
- func (m ObjectManager) PlaceDisk(ctx context.Context, spec *types.VslmCreateSpec, ...) error
- func (m ObjectManager) RegisterDisk(ctx context.Context, path, name string) (*types.VStorageObject, error)
- func (m ObjectManager) Rename(ctx context.Context, ds mo.Reference, id, name string) error
- func (m ObjectManager) Retrieve(ctx context.Context, ds mo.Reference, id string) (*types.VStorageObject, error)
- func (m ObjectManager) RetrieveSnapshotInfo(ctx context.Context, ds mo.Reference, id string) (*types.VStorageObjectSnapshotInfo, error)
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) CreateDisk ¶
func (m ObjectManager) CreateDisk(ctx context.Context, spec types.VslmCreateSpec) (*object.Task, error)
func (ObjectManager) CreateSnapshot ¶
func (ObjectManager) DeleteSnapshot ¶
func (ObjectManager) DetachTag ¶
func (m ObjectManager) DetachTag(ctx context.Context, id string, tag types.VslmTagEntry) error
func (ObjectManager) ListAttachedObjects ¶
func (ObjectManager) ListAttachedTags ¶
func (m ObjectManager) ListAttachedTags(ctx context.Context, id string) ([]types.VslmTagEntry, error)
func (ObjectManager) PlaceDisk ¶
func (m ObjectManager) PlaceDisk(ctx context.Context, spec *types.VslmCreateSpec, pool types.ManagedObjectReference) error
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) Retrieve ¶
func (m ObjectManager) Retrieve(ctx context.Context, ds mo.Reference, id string) (*types.VStorageObject, error)
func (ObjectManager) RetrieveSnapshotInfo ¶
func (m ObjectManager) RetrieveSnapshotInfo(ctx context.Context, ds mo.Reference, id string) (*types.VStorageObjectSnapshotInfo, error)