vsphere

package
v0.0.0-...-d403590 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UUIDPrefix = "VMware-"
)

Variables

This section is empty.

Functions

func GetSystemUUID

func GetSystemUUID() (string, error)

GetSystemUUID returns the UUID used to identify node vm

Types

type VsphereClient

type VsphereClient struct {
	// contains filtered or unexported fields
}

func NewVsphereClient

func NewVsphereClient(vcHost, vcUser, vcPassword, vcDatacenter, vcDatastore string) (*VsphereClient, error)

func (*VsphereClient) AttachVolume

func (c *VsphereClient) AttachVolume(ctx context.Context, volumeID, nodeID string) (string, error)

func (*VsphereClient) CreateVolume

func (c *VsphereClient) CreateVolume(ctx context.Context, volumeName string, capacityInMb int64) (string, error)

func (*VsphereClient) DeleteVolume

func (c *VsphereClient) DeleteVolume(ctx context.Context, volumeID string) error

func (*VsphereClient) DetachVolume

func (c *VsphereClient) DetachVolume(ctx context.Context, volumeID, nodeID string) error

func (*VsphereClient) GetVMByUUID

func (c *VsphereClient) GetVMByUUID(ctx context.Context, uuid string) (*object.VirtualMachine, error)

Jump to

Keyboard shortcuts

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