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 ¶
MarshalBinary interface implementation
func (*Config) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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 ¶
MarshalBinary interface implementation
func (*Info) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Worker) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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