Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KonfID ¶
type KonfID string
ID unifies ID and File management that konf uses Currently an ID is defined by the context and clustername of the config, separated by an underscore I have chosen this combination as it is fairly unique among multiple configs. I decided against using just context.name as a lot of times the context is just called "default", which results in lots of naming collisions Some special characters that are reserved by the filesystem, will be replaced by a "-" character
func IDFromClusterAndContext ¶
IDFromClusterAndContext creates an id based on the cluster and context It escapes any illegal file characters and is filesafe
func IDFromFileInfo ¶
IDFromFileInfo creates an ID from the name of a file
func IDFromProcessID ¶
IDFromProcessID creates a KonfID based on the supplied processID
func (KonfID) ActivePath ¶
ActivePath creates a valid filepath inside the configured activeDir
type Konfig ¶
func KonfsFromKubeconfig ¶
KonfsFromKubeconfig takes in the content of a kubeconfig and splits it into one or multiple konfs.
No error is being returned if the kubeconfig contains no contexts, instead konfs is simply an empty slice