helpers

package
v1.0.1-0...-faaf3d7 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IonosDebug   = "IONOS_DEBUG"
	Ionos        = "ionoscloud"
	DcID         = "datacenter_id"
	ServerID     = "server_id"
	NicID        = "nic_id"
	K8sClusterID = "k8s_cluster_id"

	UsernameArg = "username"
	PasswordArg = "password"
	TokenArg    = "token"
	URLArg      = "url"
	// MaxRetries - number of retries in case of rate-limit
	MaxRetries = 999

	// MaxWaitTime - waits 4 seconds before retry in case of rate limit
	MaxWaitTime = 4 * time.Second
)

Config Constants

View Source
const (
	CredentialsError = "set IONOS_USERNAME and IONOS_PASSWORD or IONOS_TOKEN env var"
)
View Source
const (
	ProviderName = "ionoscloud"
)

Provider Constants

Variables

This section is empty.

Functions

func GetAllDatacenters

func GetAllDatacenters(client ionoscloud.APIClient) ([]ionoscloud.Datacenter, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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