Documentation ¶
Index ¶
- Constants
- func NewVMOMIClientBuilder() *vMOMIClientBuilder
- func NewVMOMIClientBuilderOverride(vfb VMOMIFinderBuilder, gcb VMOMISessionBuilder, ...) *vMOMIClientBuilder
- func NewVMOMIFinderBuilder() *vMOMIFinderBuilder
- func NewvMOMISessionBuilder() *vMOMIClientBuilder
- type VMOMIAuthorizationManager
- type VMOMIAuthorizationManagerBuilder
- type VMOMIClient
- type VMOMIFinder
- type VMOMIFinderBuilder
- type VMOMISessionBuilder
- type VSphereClient
Constants ¶
View Source
const ( VSphereTypeFolder = "Folder" VSphereTypeNetwork = "Network" VSphereTypeResourcePool = "ResourcePool" VSphereTypeDatastore = "Datastore" VSphereTypeVirtualMachine = "VirtualMachine" )
Variables ¶
This section is empty.
Functions ¶
func NewVMOMIClientBuilder ¶
func NewVMOMIClientBuilder() *vMOMIClientBuilder
func NewVMOMIClientBuilderOverride ¶
func NewVMOMIClientBuilderOverride(vfb VMOMIFinderBuilder, gcb VMOMISessionBuilder, amb VMOMIAuthorizationManagerBuilder) *vMOMIClientBuilder
func NewVMOMIFinderBuilder ¶
func NewVMOMIFinderBuilder() *vMOMIFinderBuilder
func NewvMOMISessionBuilder ¶
func NewvMOMISessionBuilder() *vMOMIClientBuilder
Types ¶
type VMOMIAuthorizationManager ¶
type VMOMIAuthorizationManager interface {
FetchUserPrivilegeOnEntities(ctx context.Context, entities []types.ManagedObjectReference, userName string) ([]types.UserPrivilegeResult, error)
}
type VMOMIAuthorizationManagerBuilder ¶
type VMOMIAuthorizationManagerBuilder interface {
Build(c *vim25.Client) *object.AuthorizationManager
}
type VMOMIClient ¶
type VMOMIClient struct { Gcvm *govmomi.Client Finder VMOMIFinder AuthorizationManager VMOMIAuthorizationManager // contains filtered or unexported fields }
func NewVMOMIClientCustom ¶
func NewVMOMIClientCustom(gcvm *govmomi.Client, f VMOMIFinder, username string, am VMOMIAuthorizationManager) *VMOMIClient
func (*VMOMIClient) GetPrivsOnEntity ¶
func (*VMOMIClient) Username ¶
func (vsc *VMOMIClient) Username() string
type VMOMIFinder ¶
type VMOMIFinder interface { Datastore(ctx context.Context, path string) (*object.Datastore, error) Folder(ctx context.Context, path string) (*object.Folder, error) Network(ctx context.Context, path string) (object.NetworkReference, error) ResourcePool(ctx context.Context, path string) (*object.ResourcePool, error) VirtualMachine(ctx context.Context, path string) (*object.VirtualMachine, error) Datacenter(ctx context.Context, path string) (*object.Datacenter, error) SetDatacenter(dc *object.Datacenter) *find.Finder }
type VMOMIFinderBuilder ¶
type VMOMIFinderBuilder interface {
Build(arg0 *vim25.Client, arg1 ...bool) VMOMIFinder
}
type VMOMISessionBuilder ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.