Documentation ¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_LOG_LEVEL = "info"
)
Variables ¶
This section is empty.
Functions ¶
func NewErrUnknownLogLevel ¶
Types ¶
type Config ¶
type Config struct { LogLevel string `yaml:"logLevel,omitempty"` Kubeconfig string `yaml:"kubeconfig,omitempty"` Server *server.ServerConfig `yaml:"server,omitempty"` Storage lockmanager.StorageConfig `yaml:"storage,omitempty"` Groups lockmanager.Groups `yaml:"groups,omitempty"` }
func DefaultConfig ¶
func DefaultConfig() *Config
func LoadConfig ¶
Loads the config from the given path. When path is empty, returns default config. Returns error when the given config is invalid.
type ErrUnknownLogLevel ¶
type ErrUnknownLogLevel struct {
// contains filtered or unexported fields
}
func (*ErrUnknownLogLevel) Error ¶
func (e *ErrUnknownLogLevel) Error() string
Click to show internal directories.
Click to hide internal directories.