Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Kubernetes bool `yaml: "kubernetes,omitempty"` Token string `yaml: "token"` State string `yaml: "state"` Nodes []Node `yaml: "nodes"` Units []Unit `yaml: "units"` }
This struct represents configs for a new Cluster
type Config ¶
type Config struct {
Cluster Cluster
}
func (*Config) GetClusterNodes ¶
func (*Config) GetClusterState ¶
func (*Config) GetClusterToken ¶
func (*Config) GetSystemdUnits ¶
func (*Config) GetUseKubernetes ¶
type Node ¶
type Node struct { Name string `yaml: "name"` Ip string `yaml: "ip"` Interface string `yaml: "interface"` }
Node is a machine in the cluster
func (*Node) GetNodeInterface ¶
func (*Node) GetNodeName ¶
type Unit ¶
type Unit struct { Name string `yaml: "name"` Content string `yaml: "content,omitempty"` Command string `yaml: "command"` }
Systemd unit
func (*Unit) GetUnitCommand ¶
func (*Unit) GetUnitContentPath ¶
func (*Unit) GetUnitName ¶
Click to show internal directories.
Click to hide internal directories.