config

package
v8.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AppName = "t3c-check-refs"
View Source
const ArgFilesAddingInput = "input"

ArgFilesAddingInput is the value of the --files-adding flag to indicate to the input (file or stdin, depending whether a filename argument was passed) is a t3cutil.CheckRefsInputFileAndAdding JSON object.

Variables

This section is empty.

Functions

func ArgToFilesAdding

func ArgToFilesAdding(filesAddingVal string) map[string]struct{}

ArgToFilesAdding converts a comma-delimited list of files being added to a set.

func Usage

func Usage()

Usage() writes command line options and usage to 'stderr'

Types

type Cfg

type Cfg struct {
	CommandArgs            []string
	LogLocationDebug       string
	LogLocationWarn        string
	LogLocationError       string
	LogLocationInfo        string
	TrafficServerConfigDir string
	TrafficServerPluginDir string
	FilesAdding            map[string]struct{}
	FilesAddingInput       bool
	Version                string
	GitRevision            string
}

func InitConfig

func InitConfig(appVersion string, gitRevision string) (Cfg, error)

InitConfig() intializes the configuration variables and loggers.

func (Cfg) AppVersion

func (cfg Cfg) AppVersion() string

func (Cfg) DebugLog

func (cfg Cfg) DebugLog() log.LogLocation

func (Cfg) ErrorLog

func (cfg Cfg) ErrorLog() log.LogLocation

func (Cfg) EventLog

func (cfg Cfg) EventLog() log.LogLocation

func (Cfg) InfoLog

func (cfg Cfg) InfoLog() log.LogLocation

func (Cfg) WarningLog

func (cfg Cfg) WarningLog() log.LogLocation

Jump to

Keyboard shortcuts

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