repository

package
v0.0.0-...-c6cf541 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Name                 string          `json:"name"`
	KubernetesVersion    string          `json:"kubernetesVersion"`
	CNIVersion           string          `json:"cniVersion"`
	CoreOSVersion        string          `json:"coreOSVersion"`
	CoreOSChannel        string          `json:"coreOSChannel"`
	Nodes                map[string]Node `json:"nodes"` //map[NODE_NAME]NODE
	Network              Network         `json:"network"`
	StoragePool          string          `json:"storagePool"`
	BackingStorageVolume string          `json:"backingStorageVolume"`
	CACertificate        []byte          `json:"caCertificate"`
	CAPrivateKey         []byte          `json:"caPrivateKey"`
	DNSDomain            string          `json:"dnsDomain"`
	ServerURL            string          `json:"ServerUrl"`
}

func (*Cluster) Validate

func (c *Cluster) Validate() error

type ClusterRepository

type ClusterRepository interface {
	Current() (*Cluster, error)
	SetCurrent(name string) error
	Load(name string) (*Cluster, error)
	LoadAll() ([]*Cluster, error)
	Save(cluster Cluster) error
	Remove(name string) error
	Exists(name string) (bool, error)
}

func New

func New(path string) (ClusterRepository, error)

type Network

type Network struct {
	Name     string `json:"name"`
	IPv4CIDR string `json:"ipv4cidr"`
}

type Node

type Node struct {
	Name                 string `json:"name"`
	IsMaster             bool   `json:"isMaster"`
	Domain               string `json:"domain"`
	MemoryMiB            uint   `json:"memory"`
	CPUs                 uint   `json:"cpus"`
	VolumeCapacityGiB    uint   `json:"volumeCapacity"`
	StoragePool          string `json:"storagePool"`
	BackingStorageVolume string `json:"backingStorageVolume"`
	StorageVolume        string `json:"storageVolume"`
	DNSName              string `json:"dnsName"`
}

func (*Node) Validate

func (n *Node) Validate() error

Jump to

Keyboard shortcuts

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