Documentation ¶
Index ¶
- Constants
- func ClearCache(sessionKey string)
- func GetVmwareUserPrivileges(userPrincipal string, groupPrincipals []string, ...) (map[string]bool, error)
- type HostDateInfo
- type Session
- type VSphereCloudDriver
- func (v *VSphereCloudDriver) CreateVSphereVMFolder(ctx context.Context, datacenter string, folders []string) error
- func (v *VSphereCloudDriver) FolderExists(ctx context.Context, finder *find.Finder, datacenter, folderName string) (bool, error)
- func (v *VSphereCloudDriver) GetClusterIfExists(ctx context.Context, finder *find.Finder, datacenter, clusterName string) (bool, *object.ClusterComputeResource, error)
- func (v *VSphereCloudDriver) GetCurrentVmwareUser(ctx context.Context) (string, error)
- func (v *VSphereCloudDriver) GetDatacenterIfExists(ctx context.Context, finder *find.Finder, datacenter string) (bool, *object.Datacenter, error)
- func (v *VSphereCloudDriver) GetFinderWithDatacenter(ctx context.Context, datacenter string) (*find.Finder, string, error)
- func (v *VSphereCloudDriver) GetFolderIfExists(ctx context.Context, finder *find.Finder, datacenter, folderName string) (bool, *object.Folder, error)
- func (v *VSphereCloudDriver) GetFolderNameByID(ctx context.Context, datacenter, id string) (string, error)
- func (v *VSphereCloudDriver) GetHostIfExists(ctx context.Context, finder *find.Finder, ...) (bool, *object.HostSystem, error)
- func (v *VSphereCloudDriver) GetResourcePoolIfExists(ctx context.Context, finder *find.Finder, ...) (bool, *object.ResourcePool, error)
- func (v *VSphereCloudDriver) GetVAppIfExists(ctx context.Context, finder *find.Finder, datacenter, vAppName string) (bool, *object.VirtualApp, error)
- func (v *VSphereCloudDriver) GetVMIfExists(ctx context.Context, finder *find.Finder, datacenter, cluster, vmName string) (bool, *object.VirtualMachine, error)
- func (v *VSphereCloudDriver) GetVSphereResourcePools(ctx context.Context, datacenter string, cluster string) (resourcePools []string, err error)
- func (v *VSphereCloudDriver) ValidateHostNTPSettings(ctx context.Context, finder *find.Finder, datacenter, clusterName string, ...) (bool, []string, error)
- func (v *VSphereCloudDriver) ValidateUserPrivilegeOnEntities(ctx context.Context, authManager *object.AuthorizationManager, ...) (isValid bool, failures []string, err error)
- type VsphereCloudAccount
Constants ¶
View Source
const KeepAliveIntervalInMinute = 10
Variables ¶
This section is empty.
Functions ¶
func ClearCache ¶
func ClearCache(sessionKey string)
func GetVmwareUserPrivileges ¶
Types ¶
type HostDateInfo ¶
type HostDateInfo struct { HostName string NtpServers []string types.HostDateTimeInfo Service *types.HostService Current *time.Time ClientStatus string ServiceStatus string }
type VSphereCloudDriver ¶
type VSphereCloudDriver struct { VCenterServer string VCenterUsername string VCenterPassword string Datacenter string Client *govmomi.Client RestClient *rest.Client }
func NewVSphereDriver ¶
func NewVSphereDriver(VCenterServer, VCenterUsername, VCenterPassword, datacenter string) (*VSphereCloudDriver, error)
func (*VSphereCloudDriver) CreateVSphereVMFolder ¶
func (*VSphereCloudDriver) FolderExists ¶
func (*VSphereCloudDriver) GetClusterIfExists ¶
func (v *VSphereCloudDriver) GetClusterIfExists(ctx context.Context, finder *find.Finder, datacenter, clusterName string) (bool, *object.ClusterComputeResource, error)
func (*VSphereCloudDriver) GetCurrentVmwareUser ¶
func (v *VSphereCloudDriver) GetCurrentVmwareUser(ctx context.Context) (string, error)
func (*VSphereCloudDriver) GetDatacenterIfExists ¶
func (v *VSphereCloudDriver) GetDatacenterIfExists(ctx context.Context, finder *find.Finder, datacenter string) (bool, *object.Datacenter, error)
func (*VSphereCloudDriver) GetFinderWithDatacenter ¶
func (*VSphereCloudDriver) GetFolderIfExists ¶
func (*VSphereCloudDriver) GetFolderNameByID ¶
func (*VSphereCloudDriver) GetHostIfExists ¶
func (v *VSphereCloudDriver) GetHostIfExists(ctx context.Context, finder *find.Finder, datacenter, clusterName, hostName string) (bool, *object.HostSystem, error)
func (*VSphereCloudDriver) GetResourcePoolIfExists ¶
func (v *VSphereCloudDriver) GetResourcePoolIfExists(ctx context.Context, finder *find.Finder, datacenter, cluster, resourcePoolName string) (bool, *object.ResourcePool, error)
func (*VSphereCloudDriver) GetVAppIfExists ¶
func (v *VSphereCloudDriver) GetVAppIfExists(ctx context.Context, finder *find.Finder, datacenter, vAppName string) (bool, *object.VirtualApp, error)
func (*VSphereCloudDriver) GetVMIfExists ¶
func (v *VSphereCloudDriver) GetVMIfExists(ctx context.Context, finder *find.Finder, datacenter, cluster, vmName string) (bool, *object.VirtualMachine, error)
func (*VSphereCloudDriver) GetVSphereResourcePools ¶
func (*VSphereCloudDriver) ValidateHostNTPSettings ¶
func (*VSphereCloudDriver) ValidateUserPrivilegeOnEntities ¶
type VsphereCloudAccount ¶
type VsphereCloudAccount struct { // Insecure is a flag that controls whether to validate the vSphere server's certificate. Insecure bool `json:"insecure"` // password // Required: true Password string `json:"password"` // username // Required: true Username string `json:"username"` // VcenterServer is the address of the vSphere endpoint // Required: true VcenterServer string `json:"vcenterServer"` }
Click to show internal directories.
Click to hide internal directories.