types

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 6 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) ToString

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

ToString renders the cloud configuration as string.

type GlobalOpts

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

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

type RawConfig

type RawConfig struct {
	ServiceAccount types.ConfigVarString `json:"serviceAccount,omitempty"`
	Zone           types.ConfigVarString `json:"zone"`
	Network        types.ConfigVarString `json:"network"`
	Subnetwork     types.ConfigVarString `json:"subnetwork"`
	Tags           []string              `json:"tags,omitempty"`
	MultiZone      types.ConfigVarBool   `json:"multizone"`
	Regional       types.ConfigVarBool   `json:"regional"`
}

RawConfig is a direct representation of an GCE machine object's configuration

Jump to

Keyboard shortcuts

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