config

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APPNAME = "myapp"
View Source
var SecretFieldNames = []string{"Username", "Credential", "URL", "LastUpdate", "LastUpdateBy", "Comment"}
View Source
var SecretHumanFieldNames = []string{"Username", "Credential", "URL", "Comment"}
View Source
var User = func() string {
	if os.Getenv("USER") != "" {
		return os.Getenv("USER")
	}
	return "unknown"
}()
View Source
var VAULTURL = "https://172.0.0.1:8200"

Functions

func ReadAPPNAME

func ReadAPPNAME() string

read APPNAME from environment variable, configuration file or use default

func ReadCertificateName

func ReadCertificateName() string

read certificate name from environment variable, configuration file or use default

func ReadMountPath

func ReadMountPath() string

read mountpath from environment variable, configuration file or use default

func ReadVaultURL

func ReadVaultURL() string

read VAULTURL from environment variable, configuration file or use default

Types

This section is empty.

Jump to

Keyboard shortcuts

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