node

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeBaseOS                 = "BASE_OS"
	NodeArch                   = "ARCH"
	NodeGroupRandomOnePerGroup = "random-one-per-group"
)

Variables

This section is empty.

Functions

func AddNodeToFile

func AddNodeToFile(filepath, name, user, address, baseos, arch, sshpasswd, privatekeyfile string, tags []string, port int, group string) error

Types

type Node

type Node struct {
	Name        string   `json:"name"`
	User        string   `json:"user"`
	Address     string   `json:"address"`
	Port        int      `json:"port,omitempty"`
	BaseOS      string   `json:"baseos"`
	Arch        string   `json:"arch"`
	SSHPassword string   `json:"password"`
	SSHKey      string   `json:"privatekey"`
	Tags        []string `json:"tags"`
	Group       string   `json:"group"`
}

type NodeList

type NodeList struct {
	Nodes []Node `json:"nodes"`
}

func NodesFromFile

func NodesFromFile(filepath string) (*NodeList, error)

func NodesFromFiles

func NodesFromFiles(files []string) (*NodeList, error)

func NodesFromJson

func NodesFromJson(nodejson []byte) (*NodeList, error)

func (*NodeList) ProcessNodeGroup added in v0.1.2

func (nl *NodeList) ProcessNodeGroup(processkind string)

Jump to

Keyboard shortcuts

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