node

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModuleType    NodeType = "module"
	WeightType    NodeType = "weight"
	TypeAttribute string   = "type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ModuleInterface

type ModuleInterface interface {
	RunEnabledScript(string, []string, map[string]string) (bool, error)
	GetName() string
	GetOrder() uint32
	GetPath() string
}

type Node

type Node struct {
	// contains filtered or unexported fields
}

func NewNode

func NewNode() *Node

func (Node) GetModule

func (n Node) GetModule() ModuleInterface

func (Node) GetName

func (n Node) GetName() string

func (Node) GetType

func (n Node) GetType() NodeType

func (Node) GetUpdatedBy

func (n Node) GetUpdatedBy() string

func (Node) GetWeight

func (n Node) GetWeight() NodeWeight

func (Node) IsEnabled added in v1.6.0

func (n Node) IsEnabled() bool

func (*Node) SetState

func (n *Node) SetState(enabled bool)

func (*Node) SetUpdatedBy

func (n *Node) SetUpdatedBy(updatedBy string)

func (*Node) WithModule

func (n *Node) WithModule(module ModuleInterface) *Node

func (*Node) WithName

func (n *Node) WithName(name string) *Node

func (*Node) WithType

func (n *Node) WithType(typ NodeType) *Node

func (*Node) WithWeight

func (n *Node) WithWeight(order uint32) *Node

type NodeType

type NodeType string

type NodeWeight

type NodeWeight uint32

func (NodeWeight) Int

func (weight NodeWeight) Int() int

func (NodeWeight) String

func (weight NodeWeight) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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