Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Todo: check error HomePath, _ = utils.Home() LazykubeHomePath = path.Join(HomePath, ".lazykube/") Conf = &Config{} DefaultConfig = &Config{ GuiConfig: &GuiConfig{ Highlight: true, Cursor: false, FgColor: gocui.ColorWhite, SelFgColor: gocui.ColorGreen, Mouse: true, InputEsc: true, }, LogConfig: &LogConfig{ Path: path.Join(LazykubeHomePath, "log/"), Level: logrus.InfoLevel, }, UserConfig: &UserConfig{ CustomResourcePanels: []string{}, History: &History{ ImageHistory: []string{}, CommandHistory: []string{}, }, }, } )
Functions ¶
Types ¶
type Config ¶ added in v0.8.0
type Config struct { GuiConfig *GuiConfig `yaml:"gui_config"` LogConfig *LogConfig `yaml:"log_config"` UserConfig *UserConfig `yaml:"user_config"` }
type GuiConfig ¶
type GuiConfig struct { Highlight bool `yaml:"highlight"` Cursor bool `yaml:"cursor"` FgColor gocui.Attribute `yaml:"fg_color"` BgColor gocui.Attribute `yaml:"bg_color"` SelBgColor gocui.Attribute `yaml:"sel_bg_color"` SelFgColor gocui.Attribute `yaml:"sel_fg_color"` Mouse bool `yaml:"mouse"` InputEsc bool `yaml:"input_esc"` }
GuiConfig GuiConfig
type History ¶ added in v0.8.0
type History struct { ImageHistory []string `yaml:"image_history"` CommandHistory []string `yaml:"command_history"` PodNameHistory []string `yaml:"pod_name_history"` }
func (*History) AddCommandHistory ¶ added in v0.8.0
func (*History) AddImageHistory ¶ added in v0.8.0
func (*History) AddPodNameHistory ¶ added in v0.8.0
type UserConfig ¶ added in v0.8.0
func (*UserConfig) AddCustomResourcePanels ¶ added in v0.8.0
func (c *UserConfig) AddCustomResourcePanels(resources ...string)
func (*UserConfig) DeleteCustomResourcePanels ¶ added in v0.8.0
func (c *UserConfig) DeleteCustomResourcePanels(resources ...string)
Click to show internal directories.
Click to hide internal directories.