Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v1.42.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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"`
	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"`
}

Jump to

Keyboard shortcuts

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