config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LastNamespace    string   `json:"last_namespace"`
	LastContext      string   `json:"last_context"`
	LastResourceType string   `json:"last_resource_type"`
	FavoriteItems    []string `json:"favorite_items"`
	LogLineLimit     int      `json:"log_line_limit"`
	RefreshInterval  int      `json:"refresh_interval_seconds"`
	Theme            string   `json:"theme"`
}

func DefaultConfig

func DefaultConfig() *Config

func Load

func Load() (*Config, error)

func (*Config) AddFavorite

func (c *Config) AddFavorite(item string)

func (*Config) IsFavorite

func (c *Config) IsFavorite(item string) bool

func (*Config) RemoveFavorite

func (c *Config) RemoveFavorite(item string)

func (*Config) Save

func (c *Config) Save() error

func (*Config) SetLastContext

func (c *Config) SetLastContext(ctx string)

func (*Config) SetLastNamespace

func (c *Config) SetLastNamespace(ns string)

func (*Config) SetLastResourceType

func (c *Config) SetLastResourceType(rt string)

Jump to

Keyboard shortcuts

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