model

package
v0.0.0-...-2083380 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assets

type Assets struct {
	EtcdCACert []byte
	EtcdCAKey  []byte
	KubeCACert []byte
	KubeCAKey  []byte
}

Assets is a representation of asset files as byte arrays.

type Cluster

type Cluster struct {
	ResourceMeta
	MasterPool   MasterPool
	ComputePools []ComputePool
	DNSZone      string
	KubeAPIURL   string
	Status
}

Cluster is a representation of a single cluster.

type ComputePool

type ComputePool struct {
	NodePool
}

ComputePool is a representation of a compute node pool.

type KubeArgs

type KubeArgs struct {
	KubeletExtraArgs           string
	APIServerExtraArgs         string
	ControllerManagerExtraArgs string
	SchedulerExtraArgs         string
}

KubeArgs represents the optional extra flags for Kubernetes components.

type Labels

type Labels map[string]string

Labels a map of labels.

type MasterPool

type MasterPool struct {
	NodePool
}

MasterPool is a representation of a master control plane node pool.

type NodeData

type NodeData struct {
	KubeAPIURL  string
	ClusterName string
	KubeVersion string
	KubeArgs
	Labels
	Taints
}

NodeData contains cloud Node related data.

type NodePool

type NodePool struct {
	ResourceMeta
	NodePoolSpec
	Status
}

NodePool is a representation of a single node pool.

type NodePoolSpec

type NodePoolSpec struct {
	KubeVersion   string   `json:"kube_version,omitempty"`
	MachineType   string   `json:"machine_type,omitempty"`
	CoreOSVersion string   `json:"coreos_version,omitempty"`
	SSHKey        string   `json:"ssh_key,omitempty"`
	DiskSize      int      `json:"disk_size,omitempty"`
	Size          int      `json:"size,omitempty"`
	Networks      []string `json:"networks,omitempty"`
	UserData      []byte   `json:"user_data,omitempty"`
	Taints        `json:"taints,omitempty"`
	KubeArgs      `json:"kube_args,omitempty"`
}

NodePoolSpec represent a node pool.

type ResourceMeta

type ResourceMeta struct {
	Name        string `json:"name,omitempty"`
	ID          string `json:"id,omitempty"`
	ClusterName string `json:"cluster_name,omitempty"`
	Labels      `json:"labels,omitempty"`
	Internal    bool `json:"internal,omitempty"`
}

ResourceMeta is a resource metadata.

type Status

type Status struct {
	Created  int64  `json:"created,omitempty"`
	Upgraded int64  `json:"upgraded,omitempty"`
	State    string `json:"state,omitempty"`
}

Status is the observed status of a resource.

type Taints

type Taints map[string]string

Taints is map of kubelet taints.

Jump to

Keyboard shortcuts

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