Documentation ¶
Index ¶
- type ContainerView
- func (v ContainerView) Destroy(ctx context.Context) error
- func (v ContainerView) Find(ctx context.Context, kind []string, filter property.Filter) ([]types.ManagedObjectReference, error)
- func (v ContainerView) Retrieve(ctx context.Context, kind []string, ps []string, dst interface{}) error
- func (v ContainerView) RetrieveWithFilter(ctx context.Context, kind []string, ps []string, dst interface{}, ...) error
- type ListView
- func (v ListView) Add(ctx context.Context, refs []types.ManagedObjectReference) error
- func (v ListView) Destroy(ctx context.Context) error
- func (v ListView) Remove(ctx context.Context, refs []types.ManagedObjectReference) error
- func (v ListView) Reset(ctx context.Context, refs []types.ManagedObjectReference) error
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerView ¶ added in v0.13.0
func NewContainerView ¶ added in v0.13.0
func NewContainerView(c *vim25.Client, ref types.ManagedObjectReference) *ContainerView
func (ContainerView) Destroy ¶ added in v0.13.0
func (v ContainerView) Destroy(ctx context.Context) error
func (ContainerView) Find ¶ added in v0.14.0
func (v ContainerView) Find(ctx context.Context, kind []string, filter property.Filter) ([]types.ManagedObjectReference, error)
Find returns object references for entities of type kind, matching the given filter.
func (ContainerView) Retrieve ¶ added in v0.14.0
func (v ContainerView) Retrieve(ctx context.Context, kind []string, ps []string, dst interface{}) error
Retrieve populates dst as property.Collector.Retrieve does, for all entities in the view of types specified by kind.
func (ContainerView) RetrieveWithFilter ¶ added in v0.14.0
func (v ContainerView) RetrieveWithFilter(ctx context.Context, kind []string, ps []string, dst interface{}, filter property.Filter) error
RetrieveWithFilter populates dst as Retrieve does, but only for entities matching the given filter.
type ListView ¶
func NewListView ¶
func NewListView(c *vim25.Client, ref types.ManagedObjectReference) *ListView
type Manager ¶
func NewManager ¶
func (Manager) CreateContainerView ¶ added in v0.13.0
func (m Manager) CreateContainerView(ctx context.Context, container types.ManagedObjectReference, managedObjectTypes []string, recursive bool) (*ContainerView, error)
func (Manager) CreateListView ¶
Click to show internal directories.
Click to hide internal directories.