internal

package
v0.0.0-...-e665c52 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagExported = 1 << iota
	FlagTerminator

	FlagNone Flag = 0
)

Variables

View Source
var SSMStates = make([]Connectable, 0)

SSMStates is a static slice containing the states in the SSM package. They get parsed dynamically at module.init() time

Functions

func FindValidTargets

func FindValidTargets(args ...string) []string

Types

type Connectable

type Connectable interface {
	Children() []Connectable
	Match(group, name string) bool
	Equals(n Connectable) bool
	Append(n ...Connectable)
}

Connectable is a dot.Node or a *internal.StateNode

func LoadStates

func LoadStates(targets ...string) ([]Connectable, error)

type Flag

type Flag int8

type StateNode

type StateNode struct {
	Name       string
	Group      string
	Flags      Flag
	InStates   []Connectable
	NextStates []Connectable
}

func (*StateNode) Append

func (s *StateNode) Append(n ...Connectable)

func (*StateNode) Children

func (s *StateNode) Children() []Connectable

func (*StateNode) Equals

func (s *StateNode) Equals(ss Connectable) bool

func (*StateNode) Match

func (s *StateNode) Match(group, name string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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