preferences

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2026 License: BSD-3-Clause Imports: 9 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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