metadata

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2016 License: Apache-2.0 Imports: 3 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 {
	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 Build

func Build(bytes []byte) Config

func (*Config) GetClusterNodes

func (config *Config) GetClusterNodes() []Node

func (*Config) GetClusterState

func (config *Config) GetClusterState() string

func (*Config) GetClusterToken

func (config *Config) GetClusterToken() string

func (*Config) GetSystemdUnits

func (config *Config) GetSystemdUnits() []Unit

func (*Config) GetUseKubernetes

func (config *Config) GetUseKubernetes() bool

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 *Node) GetNodeInterface() string

func (*Node) GetNodeIp

func (node *Node) GetNodeIp() string

func (*Node) GetNodeName

func (node *Node) GetNodeName() string

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 *Unit) GetUnitCommand() string

func (*Unit) GetUnitContentPath

func (unit *Unit) GetUnitContentPath() string

func (*Unit) GetUnitName

func (unit *Unit) GetUnitName() string

Jump to

Keyboard shortcuts

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