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 `json:"logLevel,omitempty"`
KubernetesConfig k8s.Config `json:"kubernetes,omitempty"`
Server *server.ServerConfig `json:"server,omitempty"`
Storage lockmanager.StorageConfig `json:"storage,omitempty"`
Groups lockmanager.Groups `json:"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.