navigator

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowArgs

type AllowArgs struct {
	Group     bool
	Parameter bool
	Rule      bool
}

type Group

type Group struct {
	entKb.BaseInfo
	Parent     *Group
	Groups     []*Group
	Parameters []*Parameter
	Rules      []*Rule
}
type Navigator struct {
	Allow            AllowArgs
	Show             ShowArgs
	TimeFormat       string
	TableHeight      int
	BaseStyle        lipgloss.Style
	HeaderStyle      lipgloss.Style
	SelectedStyle    lipgloss.Style
	Columns          []table.Column
	ChosenUUID       string
	ChosenObjectType TypeObject
	// contains filtered or unexported fields
}

func New

func New(root *Group, allow AllowArgs, show ShowArgs) *Navigator
func (nav *Navigator) Back() bool
func (nav Navigator) Build() table.Model
func (nav *Navigator) Choose(r table.Row) bool
func (nav *Navigator) Open(r table.Row) bool
func (nav Navigator) Render(t table.Model) string

type Parameter

type Parameter struct {
	entKb.BaseInfo
}

type Rule

type Rule struct {
	entKb.BaseInfo
}

type ShowArgs

type ShowArgs struct {
	Parameter bool
	Rule      bool
}

type TypeObject

type TypeObject int
const (
	GroupType     TypeObject = 1
	ParameterType TypeObject = 2
	RuleType      TypeObject = 3
)

Jump to

Keyboard shortcuts

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