Documentation
¶
Index ¶
Constants ¶
View Source
const EnvNamePrefix = "HEGEL"
EnvNamePrefix defines the environment variable prefix required for all environment configuration.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootCommand ¶
type RootCommand struct { *cobra.Command Opts RootCommandOptions // contains filtered or unexported fields }
RootCommand is the root command that represents the entrypoint to Hegel.
func NewRootCommand ¶
func NewRootCommand() (*RootCommand, error)
NewRootCommand creates new RootCommand instance.
type RootCommandOptions ¶
type RootCommandOptions struct { TrustedProxies string `mapstructure:"trusted-proxies"` HTTPAddr string `mapstructure:"http-addr"` Backend string `mapstructure:"backend"` KubernetesAPIServer string `mapstructure:"kubernetes-apiserver"` KubernetesKubeconfig string `mapstructure:"kubernetes-kubeconfig"` KubernetesNamespace string `mapstructure:"kubernetes-namespace"` FlatfilePath string `mapstructure:"flatfile-path"` Debug bool `mapstructure:"debug"` // Hidden CLI flags. HegelAPI bool `mapstructure:"hegel-api"` }
RootCommandOptions encompasses all the configurability of the RootCommand.
Click to show internal directories.
Click to hide internal directories.