types

package
v1.58.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const (
	VMKind      = "vm"
	ProjectKind = "project"
	ClusterKind = "cluster"
	SubnetKind  = "subnet"
	DiskKind    = "disk"
	ImageKind   = "image"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	APIVersion  string             `json:"api_version"`
	Kind        string             `json:"kind"`
	State       string             `json:"state"`
	MessageList []ErrorResponseMsg `json:"message_list"`
	Code        int32              `json:"code"`
}

type ErrorResponseMsg

type ErrorResponseMsg struct {
	Message string `json:"message"`
	Reason  string `json:"reason"`
}

type RawConfig

type RawConfig struct {
	Endpoint      providerconfigtypes.ConfigVarString `json:"endpoint"`
	Port          providerconfigtypes.ConfigVarString `json:"port"`
	Username      providerconfigtypes.ConfigVarString `json:"username"`
	Password      providerconfigtypes.ConfigVarString `json:"password"`
	AllowInsecure providerconfigtypes.ConfigVarBool   `json:"allowInsecure"`
	ProxyURL      providerconfigtypes.ConfigVarString `json:"proxyURL,omitempty"`

	ClusterName           providerconfigtypes.ConfigVarString  `json:"clusterName"`
	ProjectName           *providerconfigtypes.ConfigVarString `json:"projectName,omitempty"`
	SubnetName            providerconfigtypes.ConfigVarString  `json:"subnetName"`
	AdditionalSubnetNames []string                             `json:"additionalSubnetNames,omitempty"`
	ImageName             providerconfigtypes.ConfigVarString  `json:"imageName"`

	// VM sizing configuration
	CPUs           int64  `json:"cpus"`
	CPUCores       *int64 `json:"cpuCores,omitempty"`
	CPUPassthrough *bool  `json:"cpuPassthrough,omitempty"`
	MemoryMB       int64  `json:"memoryMB"`
	DiskSize       *int64 `json:"diskSize,omitempty"`

	// Metadata related configuration
	Categories map[string]string `json:"categories,omitempty"`
}

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