Discover Packages
github.com/orbatschow/kontext
pkg
config
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Apr 21, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
DefaultStateHistoryLimit = 10
DefaultBackupRevisionLimit = 10
)
type Backup struct {
Enabled bool `json:"enabled"`
Directory string `json:"directory,omitempty"`
Revisions int `json:"revisions,omitempty"`
}
type Client struct {
File string
}
Read reads the current config file and serialize it with koanf
type Config struct {
Global Global `json:"global,omitempty"`
Backup Backup `json:"backup,omitempty"`
State State `json:"state,omitempty"`
Groups []Group `json:"groups,omitempty"`
Sources []Source `json:"sources,omitempty"`
}
type Global struct {
Kubeconfig string `json:"kubeconfig,omitempty"`
Verbosity pterm .LogLevel `json:"verbosity,omitempty"`
}
type Group struct {
Name string `json:"name"`
Context string `json:"context,omitempty"`
Sources []string `json:"sources"`
}
type History struct {
Size int `json:"size"`
}
type Source struct {
Name string `json:"name"`
Include []string `json:"include,omitempty"`
Exclude []string `json:"exclude"`
}
type State struct {
File string `json:"file,omitempty"`
History History `json:"history,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.