request

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 2 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 Master

type Master struct {
	AWS     aws.Master   `json:"aws"`
	Azure   azure.Master `json:"azure"`
	CPU     CPU          `json:"cpu"`
	ID      string       `json:"id"`
	Memory  Memory       `json:"memory"`
	Storage Storage      `json:"storage"`
}

Master configures the Kubernetes master nodes.

func DefaultMaster

func DefaultMaster() Master

DefaultMaster provides a default master configuration 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 Scaling

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

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 {
	AWS     aws.Worker        `json:"aws"`
	Azure   azure.Worker      `json:"azure"`
	CPU     CPU               `json:"cpu"`
	ID      string            `json:"id"`
	Labels  map[string]string `json:"labels"`
	Memory  Memory            `json:"memory"`
	Storage Storage           `json:"storage"`
}

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