config

package
v0.0.0-...-77fb227 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyConsentTelemetry configKey = "consent_telemetry"
	KeyBackendHost      configKey = "crda_backend_host"
	KeySnykToken        configKey = "crda_snyk_token"
)

keys added here, should also be added to the following KnownConfigKeyStrings slice

Variables

View Source
var KnownConfigKeyStrings = []string{
	KeyConsentTelemetry.ToString(),
	KeyBackendHost.ToString(),
	KeySnykToken.ToString(),
}

Functions

func GetConfigDirectoryPath

func GetConfigDirectoryPath() string

GetConfigDirectoryPath is used to get the configuration folder for crda $HOME/.crda

func Load

func Load(configDirectory string) error

Load is used for loading crda config from either the environment variables or from the $HOME/.crda/config.yaml returns error when failed loading/populating the config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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