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

types

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudConfig

type CloudConfig struct {
	Global GlobalOpts
}

CloudConfig contains only the section global.

func (*CloudConfig) AsString

func (cc *CloudConfig) AsString() (string, error)

AsString renders the cloud configuration as string.

type CloudProviderSpec

type CloudProviderSpec struct {
	ServiceAccount        providerconfigtypes.ConfigVarString `json:"serviceAccount,omitempty"`
	Zone                  providerconfigtypes.ConfigVarString `json:"zone"`
	MachineType           providerconfigtypes.ConfigVarString `json:"machineType"`
	DiskSize              int64                               `json:"diskSize"`
	DiskType              providerconfigtypes.ConfigVarString `json:"diskType"`
	Network               providerconfigtypes.ConfigVarString `json:"network"`
	Subnetwork            providerconfigtypes.ConfigVarString `json:"subnetwork"`
	Preemptible           providerconfigtypes.ConfigVarBool   `json:"preemptible"`
	Labels                map[string]string                   `json:"labels,omitempty"`
	Tags                  []string                            `json:"tags,omitempty"`
	AssignPublicIPAddress *providerconfigtypes.ConfigVarBool  `json:"assignPublicIPAddress,omitempty"`
	MultiZone             providerconfigtypes.ConfigVarBool   `json:"multizone"`
	Regional              providerconfigtypes.ConfigVarBool   `json:"regional"`
}

CloudProviderSpec contains the specification of the cloud provider taken from the provider configuration.

func (*CloudProviderSpec) UpdateProviderSpec

func (cpSpec *CloudProviderSpec) UpdateProviderSpec(spec v1alpha1.ProviderSpec) (*runtime.RawExtension, error)

UpdateProviderSpec updates the given provider spec with changed configuration values.

type GlobalOpts

type GlobalOpts struct {
	ProjectID      string
	LocalZone      string
	NetworkName    string
	SubnetworkName string
	TokenURL       string
	MultiZone      bool
	Regional       bool
	NodeTags       []string
}

GlobalOpts contains the values of the global section of the cloud configuration.

Jump to

Keyboard shortcuts

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