config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 4 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"
}()

User is the user running the application

View Source
var VAULTURL = "https://127.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

func Usage added in v1.0.1

func Usage()

this function will return how build a configuration file

Types

This section is empty.

Jump to

Keyboard shortcuts

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