scope

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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