Documentation ¶
Overview ¶
Package config contains all global configuration parameters.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBaseUrl ¶
func GetBaseUrl() string
func GetProtocol ¶
func GetProtocol() string
Types ¶
type OperatorConfig ¶
type OperatorConfig struct { CaCert string `mapstructure:"CA_CERT"` NetboxHost string `mapstructure:"NETBOX_HOST"` AuthToken string `mapstructure:"AUTH_TOKEN"` HttpsEnable bool `mapstructure:"HTTPS_ENABLE"` DebugEnable bool `mapstructure:"DEBUG_ENABLE"` NetboxRestorationHashFieldName string `mapstructure:"NETBOX_RESTORATION_HASH_FIELD_NAME"` // contains filtered or unexported fields }
func GetOperatorConfig ¶
func GetOperatorConfig() *OperatorConfig
func (*OperatorConfig) LoadCaCert ¶
func (c *OperatorConfig) LoadCaCert() (cert []byte, err error)
Click to show internal directories.
Click to hide internal directories.