preferences

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set added in v0.0.31

func Set(profile string, fn func(prefs *Preferences)) error

func SetGlobal added in v0.0.31

func SetGlobal(fn func(prefs *Preferences)) error

Types

type File added in v0.0.31

type File struct {
	Global     Preferences            `yaml:"global,omitzero"`
	PerProfile map[string]Preferences `yaml:"per_profile,omitzero"`
}

func Load added in v0.0.31

func Load() (File, error)

func (*File) Save added in v0.0.31

func (pf *File) Save() (err error)

type Kube

type Kube struct {
	DefaultProject string `yaml:"default_project,omitempty"`
	DefaultCluster string `yaml:"default_cluster,omitempty"`
}

type Preferences

type Preferences struct {
	Kube Kube `yaml:"kube,omitzero"`
}

func Get added in v0.0.31

func Get(profile string) (Preferences, error)

Jump to

Keyboard shortcuts

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