config

package
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL