openstackinit

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlavorsList         datastructures.FlavorList
	NetworkUUID         string
	CoolDownTime        time.Duration
	IgnoreNamespaceList map[string]bool
	MinNodeCount        int
	MaxNodeCount        int
	ImageName           string
	SecurityGroupName   string
	IdentityEndpoint    string
	Username            string
	Password            string
	TenantID            string
	DomainName          string
	ProjectName         string
	ClientSecret        string
	ClientID            string
	AWSRegion           string
	AuthFile            string
)

FlavorsList, and other list og global variables

Functions

func GetOpenstackToken

func GetOpenstackToken() *gophercloud.ServiceClient

GetOpenstackToken authenticate OpenStack cloud

func ReadConfig

func ReadConfig() string

ReadConfig read and configure starup variables from the config.yml

Types

type AuthOptions

type AuthOptions struct {
	IdentityEndpoint string `yaml:"IdentityEndpoint"`
	Username         string `yaml:"Username"`
	Password         string `yaml:"Password"`
	TenantID         string `yaml:"TenantID"`
	DomainName       string `yaml:"DomainName"`
	ProjectName      string `yaml:"ProjectName"`
	ClientSecret     string `yaml:"ClientSecret"`
	ClientID         string `yaml:"ClientId"`
	AWSRegion        string `yaml:"AWSRegion"`
	AuthFile         string `yaml:"AuthFile"`
}

AuthOptions list of credentials to authenticate cloud infrastructure

type ConfigYaml

type ConfigYaml struct {
	CloudType          string            `yaml:"CloudType"`
	AuthOptions        AuthOptions       `yaml:"AuthOptions"`
	Network            Network           `yaml:"Network"`
	WorkerImageName    string            `yaml:"WorkerImageName"`
	CoolDownTime       int               `yaml:"CoolDownTime"`
	MinNodeCount       int               `yaml:"MinNodeCount"`
	MaxNodeCount       int               `yaml:"MaxNodeCount"`
	OpenStackFlavours  OpenStackFlavours `yaml:"OpenStackFlavours"`
	PassConfigToPlugin bool              `yaml:"PassConfigToPlugin"`
}

ConfigYaml used to decode the configuration file

type Flavours

type Flavours struct {
	Name   string `yaml:"Name"`
	VCPU   int64  `yaml:"VCPU"`
	Memory int64  `yaml:"Memory"`
}

Flavours configured in config.yml

type Network

type Network struct {
	SecurityGroupName string `yaml:"SecurityGroupName"`
	NetworkUUID       string `yaml:"NetworkUUID"`
}

Network OpenStack network configuration to used when creating worker nodes

type OpenStackFlavours

type OpenStackFlavours struct {
	DefaultFlavour string     `yaml:"DefaultFlavour"`
	Flavours       []Flavours `yaml:"Flavours"`
}

OpenStackFlavours user configured Open Stack Flavours in the config file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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