generator

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDashboard added in v0.8.0

func GenDashboard(p cli.GrafanaParams) (*dashboard.Builder, error)

func GenUtilsFile added in v0.8.0

func GenUtilsFile() string

func SyncDashboard added in v0.8.0

func SyncDashboard(
	ctx context.Context, p cli.GrafanaParams, builder *dashboard.Builder,
) error

Types

type Generator added in v0.8.0

type Generator struct {
	Mach *am.Machine

	Name string
	// N is the first letter of Name
	N           string
	States      []string
	StatesAuto  []string
	StatesMulti []string
	Groups      []string
	// State1 -> Rel -> State2,State3
	Relations [][3]string
}

func NewSFGenerator added in v0.8.0

func NewSFGenerator(
	ctx context.Context, param cli.SFParams,
) (*Generator, error)

func (*Generator) GroupsEnter added in v0.8.0

func (g *Generator) GroupsEnter(e *am.Event) bool

func (*Generator) InheritEnter added in v0.8.0

func (g *Generator) InheritEnter(e *am.Event) bool

func (*Generator) Output added in v0.8.0

func (g *Generator) Output() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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