config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyShutdownTimeout            = "shutdown_timeout"
	KeyInterval                   = "interval"
	KeyLogLevel                   = "log.level"
	KeyLogFormat                  = "log.format"
	KeyLogTimestampEnable         = "log.timestamp.enable"
	KeyLogTimestampFormat         = "log.timestamp.format"
	KeyCertificateRequestsPaths   = "certificateRequests.paths"
	KeyDefaultCountries           = "default.countries"
	KeyDefaultOrganizations       = "default.organizations"
	KeyDefaultOrganizationalUnits = "default.organizationalUnits"
	KeyDefaultLocalities          = "default.localities"
	KeyDefaultProvinces           = "default.provinces"
	KeyDefaultStreetAddresses     = "default.streetAddresses"
	KeyDefaultPostalCodes         = "default.postalCodes"
)

Variables

View Source
var (
	ShutdownTimeout            time.Duration
	Interval                   time.Duration
	CertificateRequestsPaths   []string
	DefaultCountries           []string
	DefaultOrganizations       []string
	DefaultOrganizationalUnits []string
	DefaultLocalities          []string
	DefaultProvinces           []string
	DefaultStreetAddresses     []string
	DefaultPostalCodes         []string

	ErrInvalidExtension = errors.New("invalid extension")
)

Functions

func GetExtension

func GetExtension(configFile string) (string, error)

func Init

func Init()

Types

This section is empty.

Jump to

Keyboard shortcuts

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