types

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudConfigToString

func CloudConfigToString(c *CloudConfig) (string, error)

Types

type BlockStorageOpts

type BlockStorageOpts struct {
	BSVersion             string `gcfg:"bs-version"`
	TrustDevicePath       bool   `gcfg:"trust-device-path"`
	IgnoreVolumeAZ        bool   `gcfg:"ignore-volume-az"`
	NodeVolumeAttachLimit uint   `gcfg:"node-volume-attach-limit"`
}

type CloudConfig

type CloudConfig struct {
	Global       GlobalOpts
	LoadBalancer LoadBalancerOpts
	BlockStorage BlockStorageOpts
	Version      string
}

CloudConfig is used to read and store information from the cloud configuration file

type GlobalOpts

type GlobalOpts struct {
	AuthURL    string `gcfg:"auth-url"`
	Username   string
	Password   string
	TenantName string `gcfg:"tenant-name"`
	TenantID   string `gcfg:"tenant-id"`
	DomainName string `gcfg:"domain-name"`
	Region     string
}

type LoadBalancerOpts

type LoadBalancerOpts struct {
	LBVersion            string       `gcfg:"lb-version"`
	SubnetID             string       `gcfg:"subnet-id"`
	FloatingNetworkID    string       `gcfg:"floating-network-id"`
	LBMethod             string       `gcfg:"lb-method"`
	LBProvider           string       `gcfg:"lb-provider"`
	CreateMonitor        bool         `gcfg:"create-monitor"`
	MonitorDelay         ini.Duration `gcfg:"monitor-delay"`
	MonitorTimeout       ini.Duration `gcfg:"monitor-timeout"`
	MonitorMaxRetries    uint         `gcfg:"monitor-max-retries"`
	ManageSecurityGroups bool         `gcfg:"manage-security-groups"`
}

type RawConfig

type RawConfig struct {
	// Auth details
	IdentityEndpoint providerconfigtypes.ConfigVarString `json:"identityEndpoint,omitempty"`
	Username         providerconfigtypes.ConfigVarString `json:"username,omitempty"`
	Password         providerconfigtypes.ConfigVarString `json:"password,omitempty"`
	DomainName       providerconfigtypes.ConfigVarString `json:"domainName,omitempty"`
	TenantName       providerconfigtypes.ConfigVarString `json:"tenantName,omitempty"`
	TenantID         providerconfigtypes.ConfigVarString `json:"tenantID,omitempty"`
	TokenID          providerconfigtypes.ConfigVarString `json:"tokenId,omitempty"`
	Region           providerconfigtypes.ConfigVarString `json:"region,omitempty"`

	// Machine details
	Image                 providerconfigtypes.ConfigVarString   `json:"image"`
	Flavor                providerconfigtypes.ConfigVarString   `json:"flavor"`
	SecurityGroups        []providerconfigtypes.ConfigVarString `json:"securityGroups,omitempty"`
	Network               providerconfigtypes.ConfigVarString   `json:"network,omitempty"`
	Subnet                providerconfigtypes.ConfigVarString   `json:"subnet,omitempty"`
	FloatingIPPool        providerconfigtypes.ConfigVarString   `json:"floatingIpPool,omitempty"`
	AvailabilityZone      providerconfigtypes.ConfigVarString   `json:"availabilityZone,omitempty"`
	TrustDevicePath       providerconfigtypes.ConfigVarBool     `json:"trustDevicePath"`
	RootDiskSizeGB        *int                                  `json:"rootDiskSizeGB"`
	NodeVolumeAttachLimit *uint                                 `json:"nodeVolumeAttachLimit"`
	// This tag is related to server metadata, not compute server's tag
	Tags map[string]string `json:"tags,omitempty"`
}

Jump to

Keyboard shortcuts

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