model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compute

type Compute struct {
	Status    string
	Metadata  *ComputeMetadata
	Nodeagent *operator.NodeAgentCurrent `yaml:"-"`
}

type ComputeMetadata

type ComputeMetadata struct {
	Tier     Tier
	Provider string
	Pool     string
	Group    string `yaml:",omitempty"`
}

type Config

type Config struct {
	Spec      UserSpec
	Params    Parameters
	NodeAgent func(cmp infra.Compute) *operator.NodeAgentCurrent
}

type Current

type Current struct {
	Status   string
	Computes map[string]*Compute `yaml:"computes"`
}

type Parameters

type Parameters struct {
	Logger           logging.Logger
	ID               string
	RepoURL          string
	RepoKey          string
	MasterKey        string
	OrbiterVersion   string
	CurrentFile      string
	SecretsFile      string
	SelfAbsolutePath []string
}

type Pool

type Pool struct {
	UpdatesDisabled bool
	Provider        string
	Nodes           int
	Pool            string
}

type Tier

type Tier string
const (
	Controlplane Tier = "controlplane"
	Workers      Tier = "workers"
)

type UserSpec

type UserSpec struct {
	Destroyed bool
	Verbose   bool
	Versions  struct {
		Kubernetes string
		Orbiter    string
		Boom       string
	}
	Networking struct {
		DNSDomain   string
		Network     string
		ServiceCidr string
		PodCidr     string
	}
	ControlPlane *Pool
	Workers      map[string]*Pool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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