Documentation ¶
Index ¶
- Constants
- func GetSystemUUID() (string, error)
- type VsphereClient
- func (c *VsphereClient) AttachVolume(ctx context.Context, volumeID, nodeID string) (string, error)
- func (c *VsphereClient) CreateVolume(ctx context.Context, volumeName string, capacityInMb int64) (string, error)
- func (c *VsphereClient) DeleteVolume(ctx context.Context, volumeID string) error
- func (c *VsphereClient) DetachVolume(ctx context.Context, volumeID, nodeID string) error
- func (c *VsphereClient) GetVMByUUID(ctx context.Context, uuid string) (*object.VirtualMachine, error)
Constants ¶
View Source
const (
UUIDPrefix = "VMware-"
)
Variables ¶
This section is empty.
Functions ¶
func GetSystemUUID ¶
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 (*VsphereClient) CreateVolume ¶
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)
Click to show internal directories.
Click to hide internal directories.