models

package
v2.2.0-beta.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {

	// cluster name
	ClusterName string `json:"clusterName,omitempty"`

	// ignored node labels
	IgnoredNodeLabels map[string]string `json:"ignoredNodeLabels,omitempty"`

	// kube API host
	KubeAPIHost string `json:"kubeAPIHost,omitempty"`

	// kube API password
	KubeAPIPassword string `json:"kubeAPIPassword,omitempty"`

	// kube API port
	KubeAPIPort string `json:"kubeAPIPort,omitempty"`

	// kube API user
	KubeAPIUser string `json:"kubeAPIUser,omitempty"`

	// machine types
	MachineTypes []string `json:"machineTypes"`

	// master private addr
	MasterPrivateAddr string `json:"masterPrivateAddr,omitempty"`

	// max machine provision time
	MaxMachineProvisionTime string `json:"maxMachineProvisionTime,omitempty"`

	// new node time buffer
	NewNodeTimeBuffer int64 `json:"newNodeTimeBuffer,omitempty"`

	// pause lock
	PauseLock bool `json:"pauseLock,omitempty"`

	// paused
	Paused bool `json:"paused,omitempty"`

	// provider
	Provider map[string]string `json:"provider,omitempty"`

	// provider name
	ProviderName string `json:"providerName,omitempty"`

	// SSH pub key
	SSHPubKey string `json:"sshPubKey,omitempty"`

	// scan interval
	ScanInterval string `json:"scanInterval,omitempty"`

	// workers count max
	WorkersCountMax int64 `json:"workersCountMax,omitempty"`

	// workers count min
	WorkersCountMin int64 `json:"workersCountMin,omitempty"`
}

Config config swagger:model Config

func (*Config) MarshalBinary

func (m *Config) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Config) UnmarshalBinary

func (m *Config) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Config) Validate

func (m *Config) Validate(formats strfmt.Registry) error

Validate validates this config

type Info

type Info struct {

	// build date
	BuildDate string `json:"buildDate,omitempty"`

	// compiler
	Compiler string `json:"compiler,omitempty"`

	// git commit
	GitCommit string `json:"gitCommit,omitempty"`

	// git version
	GitVersion string `json:"gitVersion,omitempty"`

	// go version
	GoVersion string `json:"goVersion,omitempty"`

	// platform
	Platform string `json:"platform,omitempty"`
}

Info Info contains versioning information. swagger:model Info

func (*Info) MarshalBinary

func (m *Info) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Info) UnmarshalBinary

func (m *Info) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Info) Validate

func (m *Info) Validate(formats strfmt.Registry) error

Validate validates this info

type MachineType

type MachineType struct {

	// CPU
	CPU string `json:"cpu,omitempty"`

	// memory
	Memory string `json:"memory,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

MachineType TODO: split string and resource representation swagger:model MachineType

func (*MachineType) MarshalBinary

func (m *MachineType) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MachineType) UnmarshalBinary

func (m *MachineType) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MachineType) Validate

func (m *MachineType) Validate(formats strfmt.Registry) error

Validate validates this machine type

type Worker

type Worker struct {

	// ClusterName is a kubernetes cluster name.
	ClusterName string `json:"clusterName,omitempty"`

	// CreationTimestamp is a timestamp representing a time when this machine was created.
	// Format: date-time
	CreationTimestamp strfmt.DateTime `json:"creationTimestamp,omitempty"`

	// MachineID is a unique id of the provider's virtual machine.
	// Required: true
	MachineID *string `json:"machineID"`

	// MachineName is a human-readable name of virtual machine.
	MachineName string `json:"machineName,omitempty"`

	// MachineState represent a virtual machine state.
	MachineState string `json:"machineState,omitempty"`

	// MachineType is type of virtual machine (eg. 't2.micro' for AWS).
	MachineType string `json:"machineType,omitempty"`

	// NodeLabels represents a labels of the kubernetes node that runs on top of that machine.
	NodeLabels map[string]string `json:"nodeLabels,omitempty"`

	// NodeName represents a name of the kubernetes node that runs on top of that machine.
	NodeName string `json:"nodeName,omitempty"`

	// Reserved is a parameter that is used to prevent downscaling of the worker.
	Reserved bool `json:"reserved,omitempty"`
}

Worker Worker is an abstraction used by kubescaler to manage cluster capacity.

It contains data from a (virtual) machine and a kubernetes node running on it. swagger:model Worker

func (*Worker) MarshalBinary

func (m *Worker) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Worker) UnmarshalBinary

func (m *Worker) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Worker) Validate

func (m *Worker) Validate(formats strfmt.Registry) error

Validate validates this worker

type WorkerList

type WorkerList struct {

	// items
	Items []*Worker `json:"items"`
}

WorkerList worker list swagger:model WorkerList

func (*WorkerList) MarshalBinary

func (m *WorkerList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*WorkerList) UnmarshalBinary

func (m *WorkerList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*WorkerList) Validate

func (m *WorkerList) Validate(formats strfmt.Registry) error

Validate validates this worker list

Jump to

Keyboard shortcuts

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