types

package
v1.47.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

View Source
const (
	AnxTokenEnv = "ANEXIA_TOKEN"

	CreateRequestTimeout = 15 * time.Minute
	GetRequestTimeout    = 1 * time.Minute
	DeleteRequestTimeout = 1 * time.Minute

	IPStateBound   = "Bound"
	IPStateUnbound = "Unbound"

	VmxNet3NIC       = "vmxnet3"
	MachinePoweredOn = "poweredOn"
)

Variables

View Source
var StatusUpdateFailed = cloudprovidererrors.TerminalError{
	Reason:  common.UpdateMachineError,
	Message: "Unable to update the machine status",
}

Functions

func NewMultiError added in v1.45.4

func NewMultiError(errs ...error) error

Types

type Config added in v1.46.0

type Config struct {
	Token      string
	VlanID     string
	LocationID string
	TemplateID string
	CPUs       int
	Memory     int
	DiskSize   int
}

type MultiError added in v1.45.4

type MultiError []error

MultiError represent multiple errors at the same time.

func (MultiError) Error added in v1.45.4

func (r MultiError) Error() string

type ProviderStatus

type ProviderStatus struct {
	InstanceID       string         `json:"instanceID"`
	ProvisioningID   string         `json:"provisioningID"`
	DeprovisioningID string         `json:"deprovisioningID"`
	ReservedIP       string         `json:"reservedIP"`
	IPState          string         `json:"ipState"`
	Conditions       []v1.Condition `json:"conditions,omitempty"`
}

type RawConfig

type RawConfig struct {
	Token      providerconfigtypes.ConfigVarString `json:"token,omitempty"`
	VlanID     providerconfigtypes.ConfigVarString `json:"vlanID"`
	LocationID providerconfigtypes.ConfigVarString `json:"locationID"`
	TemplateID providerconfigtypes.ConfigVarString `json:"templateID"`
	CPUs       int                                 `json:"cpus"`
	Memory     int                                 `json:"memory"`
	DiskSize   int                                 `json:"diskSize"`
}

func GetConfig added in v1.44.0

func GetConfig(pconfig providerconfigtypes.Config) (*RawConfig, error)

Jump to

Keyboard shortcuts

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