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"` }
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 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"` }
Click to show internal directories.
Click to hide internal directories.