Documentation ¶ Index ¶ type Node func ParseNodeSet(hosts string, port int, identity string) ([]Node, error) func (n Node) Addr() string func (n Node) HasTag(tag string) bool func (n Node) HasTags(tags []string) bool func (n Node) Label() string type NodeHW type Scope Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Node ¶ type Node struct { Name string Host string Port int Tags []string HW NodeHW Identity string } func ParseNodeSet ¶ func ParseNodeSet(hosts string, port int, identity string) ([]Node, error) func (Node) Addr ¶ func (n Node) Addr() string func (Node) HasTag ¶ func (n Node) HasTag(tag string) bool func (Node) HasTags ¶ func (n Node) HasTags(tags []string) bool func (Node) Label ¶ func (n Node) Label() string type NodeHW ¶ type NodeHW struct { Cores int Memory int // In megabyte } type Scope ¶ type Scope struct { Spec *spec.Spec Nodes []Node Identity string } Source Files ¶ View all Source files node.goscope.go Click to show internal directories. Click to hide internal directories.