Documentation
¶
Index ¶
- Constants
- func Client(cred nutanixClient.Credentials, options ClientOptions) (*nutanixClientV3.Client, error)
- func GetConnectionInfo(client ctrlClient.Client, ctx context.Context, ...) (*nutanixClient.Credentials, error)
- func GetCredentialRefForCluster(nutanixCluster *infrav1.NutanixCluster) (*infrav1.NutanixCredentialReference, error)
- func GetTaskState(client *nutanixClientV3.Client, taskUUID string) (string, error)
- func Retry(initialInterval float64, maxInterval float64, numTries uint, ...) error
- func WaitForGetSubnetComplete(conn *nutanixClientV3.Client, imageUUID string) error
- func WaitForGetSubnetDelete(conn *nutanixClientV3.Client, imageUUID string) error
- func WaitForGetVMComplete(conn *nutanixClientV3.Client, vmUUID string) error
- func WaitForGetVMDelete(conn *nutanixClientV3.Client, vmUUID string) error
- func WaitForTaskCompletion(conn *nutanixClientV3.Client, uuid string) error
- type ClientOptions
- type RetryableFunc
Constants ¶
View Source
const (
ProviderName = "nutanix"
)
Variables ¶
This section is empty.
Functions ¶
func Client ¶
func Client(cred nutanixClient.Credentials, options ClientOptions) (*nutanixClientV3.Client, error)
func GetConnectionInfo ¶
func GetConnectionInfo(client ctrlClient.Client, ctx context.Context, nutanixCluster *infrav1.NutanixCluster) (*nutanixClient.Credentials, error)
func GetCredentialRefForCluster ¶
func GetCredentialRefForCluster(nutanixCluster *infrav1.NutanixCluster) (*infrav1.NutanixCredentialReference, error)
func GetTaskState ¶
func GetTaskState(client *nutanixClientV3.Client, taskUUID string) (string, error)
func Retry ¶
func Retry(initialInterval float64, maxInterval float64, numTries uint, function RetryableFunc) error
Retry retries a function up to numTries times with exponential backoff. If numTries == 0, retry indefinitely. If interval == 0, Retry will not delay retrying and there will be no exponential backoff. If maxInterval == 0, maxInterval is set to +Infinity. Intervals are in seconds. Returns an error if initial > max intervals, if retries are exhausted, or if the passed function returns an error.
func WaitForGetSubnetComplete ¶
func WaitForGetSubnetComplete(conn *nutanixClientV3.Client, imageUUID string) error
func WaitForGetSubnetDelete ¶
func WaitForGetSubnetDelete(conn *nutanixClientV3.Client, imageUUID string) error
func WaitForGetVMComplete ¶
func WaitForGetVMComplete(conn *nutanixClientV3.Client, vmUUID string) error
func WaitForGetVMDelete ¶
func WaitForGetVMDelete(conn *nutanixClientV3.Client, vmUUID string) error
func WaitForTaskCompletion ¶
func WaitForTaskCompletion(conn *nutanixClientV3.Client, uuid string) error
Types ¶
type ClientOptions ¶
type ClientOptions struct {
Debug bool
}
type RetryableFunc ¶
RetryableFunc performs an action and returns a bool indicating whether the function is done, or if it should keep retrying, and an error which will abort the retry and be returned by the Retry function. The 0-indexed attempt is passed with each call.
Click to show internal directories.
Click to hide internal directories.