vcd

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDisk added in v0.3.0

func DeleteDisk(vcdClient *vcdsdk.Client, disk *types.Disk) error

func DetachFromAllVms added in v0.3.0

func DetachFromAllVms(vcdClient *vcdsdk.Client, vAppName string, disk *types.Disk, log logr.Logger) error

func GetCursor added in v0.2.0

func GetCursor(resp *http.Response) (string, error)

GetCursor handles the paging mechanism for queries that may return a lot of items https://github.com/vmware/cloud-provider-for-cloud-director/blob/v1.2.0/pkg/vcdsdk/gateway.go#L199

func GetDiskByHref added in v0.3.0

func GetDiskByHref(vcdClient *vcdsdk.Client, diskHref string) (*types.Disk, error)

func GetDiskRecordsOfClusterByDescription added in v0.3.0

func GetDiskRecordsOfClusterByDescription(vcdClient *vcdsdk.Client, clusterId string) ([]*types.DiskRecordType, error)

func GetGateway added in v0.2.0

func GetGateway(ctx context.Context, vcdClient *vcdsdk.Client, vcdCluster *capvcd.VCDCluster) (*vcdsdk.GatewayManager, error)

GetGateway a helper function that creates and returns GatewayManager

func GetVCDClient

func GetVCDClient(ctx context.Context, c client.Client, vcdCluster *capvcd.VCDCluster, log logr.Logger) (*vcdsdk.Client, error)

GetVCDClient a helper function for initializing vcd api client, it gets the credentials from the k8s secret

Types

This section is empty.

Jump to

Keyboard shortcuts

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