Documentation ¶
Overview ¶
Package config implements the config file logic.
Index ¶
Constants ¶
View Source
const (
// OmniConfigEnvVar is the environment variable to override the default config path.
OmniConfigEnvVar = "OMNICONFIG"
)
View Source
const PlaceholderURL = "<placeholder_url>"
PlaceholderURL is a placeholder url.
Variables ¶
View Source
var ( // DefaultContext is the context with the default values. DefaultContext = Context{ URL: "grpc://127.0.0.1:8080", } )
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { // Deprecated: basic auth is not supported, and setting this field has no effect. Basic string `yaml:"basic,omitempty"` SideroV1 SideroV1 `yaml:"siderov1,omitempty"` }
Auth contains the authentication configuration for a context.
type Config ¶
type Config struct { Contexts map[string]*Context `yaml:"contexts"` Context string `yaml:"context"` Path string `yaml:"-"` }
Config represents the omni configuration.
func (*Config) GetContext ¶
GetContext returns the context with the given name. If empty, it will return the selected context in the config file.
Click to show internal directories.
Click to hide internal directories.