config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 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 CPU

type CPU struct {
	Cores int `json:"cores"`
}

CPU configures the machine CPU.

func DefaultCPU

func DefaultCPU() CPU

DefaultCPU provides a default CPU configuration by best effort.

type Cluster

type Cluster struct {
	ID    string `json:"id"`
	Patch Patch  `json:"patch"`
}

Cluster is the cluster specific configuration.

func DefaultCluster

func DefaultCluster() Cluster

DefaultCluster provides a default cluster by best effort.

type Memory

type Memory struct {
	SizeGB float64 `json:"size_gb"`
}

Memory configures the machine memory.

func DefaultMemory

func DefaultMemory() Memory

DefaultMemory provides a default ram configuration by best effort.

type Patch

type Patch struct {
	Name           string                 `json:"name"`
	Owner          string                 `json:"owner"`
	ReleaseVersion string                 `json:"release_version,omitempty"`
	Scaling        Scaling                `json:"scaling,omitempty"`
	VersionBundles []versionbundle.Bundle `json:"version_bundles,omitempty"`
	Workers        []Worker               `json:"workers,omitempty"`
}

Patch is the cluster specific configuration.

func DefaultPatch

func DefaultPatch() Patch

DefaultPatch provides a default patch by best effort.

type Scaling

type Scaling struct {
	Max int `json:"max"`
	Min int `json:"min"`
}

type Storage

type Storage struct {
	SizeGB float64 `json:"size_gb"`
}

Storage configures the machine storage.

func DefaultStorage

func DefaultStorage() Storage

DefaultStorage provides a default storage configuration by best effort.

type Worker

type Worker struct {
	CPU     CPU               `json:"cpu"`
	Labels  map[string]string `json:"labels"`
	Memory  Memory            `json:"memory"`
	Storage Storage           `json:"storage"`
	AWS     aws.Worker        `json:"aws"`
	Azure   azure.Worker      `json:"azure"`
}

Worker configures the Kubernetes worker nodes.

func DefaultWorker

func DefaultWorker() Worker

DefaultWorker provides a default worker configuration by best effort.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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