ui

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditConfigData

type EditConfigData struct {
	ConfigText string
	Output     string
}

type OpUI

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

func NewHTMLUI

func NewHTMLUI(cr *utils.ConfigReader, graphEngine *freepsgraph.GraphEngine) *OpUI

NewHTMLUI creates a UI interface based on the inline template above

func (*OpUI) Execute

func (o *OpUI) Execute(ctx *base.Context, fn string, fa base.FunctionArguments, input *base.OperatorIO) *base.OperatorIO

func (*OpUI) ExecuteOld added in v1.4.0

func (o *OpUI) ExecuteOld(ctx *base.Context, fn string, args map[string]string, input *base.OperatorIO) *base.OperatorIO

func (*OpUI) GetArgSuggestions

func (o *OpUI) GetArgSuggestions(fn string, arg string, otherArgs map[string]string) map[string]string

func (*OpUI) GetFunctions

func (o *OpUI) GetFunctions() []string

func (*OpUI) GetHook

func (o *OpUI) GetHook() interface{}

GetHook (noOp)

func (*OpUI) GetName

func (o *OpUI) GetName() string

GetName returns the name of the operator

func (*OpUI) GetPossibleArgs

func (o *OpUI) GetPossibleArgs(fn string) []string

func (*OpUI) Shutdown

func (o *OpUI) Shutdown(ctx *base.Context)

Shutdown (noOp)

func (*OpUI) StartListening

func (o *OpUI) StartListening(ctx *base.Context)

StartListening (noOp)

type ShowGraphsData

type ShowGraphsData struct {
	Graphs    []string
	GraphJSON string
	Output    string
}

type TemplateData

type TemplateData struct {
	Args                 map[string]string
	OpSuggestions        map[string]bool
	FnSuggestions        map[string]bool
	ArgSuggestions       map[string]map[string]string
	TagSuggestions       map[string]string
	InputFromSuggestions []string
	GraphName            string
	GraphDesc            *freepsgraph.GraphDesc
	GraphJSON            string
	Output               string
	Numop                int
	Quicklink            string
	Error                string
}

Jump to

Keyboard shortcuts

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