Documentation ¶
Index ¶
- Variables
- type CertRequest
- type Cluster
- type Config
- func (c *Config) CSR(name string) *CertRequest
- func (c *Config) Cluster(name string) *Cluster
- func (c *Config) ConfigTemplate(name string) *Template
- func (c *Config) Group(name string) *Group
- func (c *Config) Host(name string) *Host
- func (c *Config) HostByIP(ip string) *Host
- func (c *Config) HostByMAC(mac string) *Host
- func (c *Config) SaveTo(path string) error
- func (c *Config) StaticPodsTemplate(name string) *Template
- type Defaults
- type Group
- type Host
- type Rev
- type Template
- type Vars
- type WithRev
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug = false
Debug enables debug logs from this package.
Functions ¶
This section is empty.
Types ¶
type CertRequest ¶
type Cluster ¶
type Cluster struct { WithRev Name string Labels map[string]string Annotations map[string]string Domain string Addons string BootstrapPods string `yaml:"bootstrap_pods"` Subnets struct { Services string Pods string } Vars Vars }
Cluster represents a cluster of hosts, allowing for cluster-wide variables.
func (*Cluster) KubernetesSvcIP ¶
type Config ¶
type Config struct { Hosts []*Host Groups []*Group Clusters []*Cluster Configs []*Template StaticPods []*Template `yaml:"static_pods"` BootstrapPods map[string][]*Template `yaml:"bootstrap_pods"` Addons map[string][]*Template SSLConfig string `yaml:"ssl_config"` CertRequests []*CertRequest `yaml:"cert_requests"` }
func (*Config) CSR ¶
func (c *Config) CSR(name string) *CertRequest
func (*Config) ConfigTemplate ¶
func (*Config) StaticPodsTemplate ¶
type Defaults ¶
type Defaults struct {
// contains filtered or unexported fields
}
func NewDefaults ¶
type Group ¶
type Group struct { WithRev Name string Labels map[string]string Annotations map[string]string Master bool IPXE string Kernel string Initrd string BootstrapConfig string `yaml:"bootstrap_config"` Config string StaticPods string `yaml:"static_pods"` Versions map[string]string Vars Vars }
Group represents a group of hosts and provides their configuration.
type Host ¶
type Host struct { WithRev Name string Labels map[string]string Annotations map[string]string MAC string IP string IPs []string Cluster string Group string Vars Vars }
Host represents a host served by this server.
Click to show internal directories.
Click to hide internal directories.