config

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TitleBorderStyle lipgloss.Style
	TitleStyle       lipgloss.Style
	SpinnerStyle     lipgloss.Style
	ListActiveStyle  lipgloss.Style
	ListStyle        lipgloss.Style
	Theme            string
)

Functions

func SetColor

func SetColor(color string)

Types

type Config

type Config struct {
	Color      string   `json:"color,omitempty" toml:"color,omitempty"`
	Command    string   `json:"command,omitempty" toml:"-"`
	Filename   string   `json:"filename,omitempty" toml:"-"`
	Namespaces []string `json:"namespaces,omitempty" toml:"namespaces,omitempty"`
	K8sContext string   `json:"k8sContext,omitempty" toml:"k8sContext,omitempty"`
	Views      []View   `json:"views,omitempty" toml:"views,omitempty"`
}

func (*Config) Save

func (c *Config) Save() error

save into a toml file

type Transform

type Transform struct {
	Field      string `json:"field" toml:"field"`
	Expression string `json:"expression" toml:"expression"`
}

type View

type View struct {
	Name           string      `json:"name" toml:"name"`
	Selector       string      `json:"selector,omitempty" toml:"selector,omitempty"`
	ReturnedFields []string    `json:"returnedFields,omitempty" toml:"returnedFields,omitempty"`
	Filter         string      `json:"filter,omitempty" toml:"filter,omitempty"`
	FilterDefault  bool        `json:"filterDefault,omitempty" toml:"filterDefault,omitempty"`
	Transforms     []Transform `json:"transforms,omitempty" toml:"transforms,omitempty"`
}

func (*View) FilterValue

func (v *View) FilterValue() string

Jump to

Keyboard shortcuts

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