core

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package core implements cross-functional features used across the application.

Includes default configuration settings.

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthorName  = "Jack Sullivan"
	AuthorEmail = "jack@divergent.codes"
	Version     = "dev-snapshot"
	Commit      = "unspecified"
	Date        = "unspecified"
	BuiltBy     = "unspecified"
)

Build-time variables that can be overridden by LDFLAGS.

View Source
var (
	OptStr_Config  = "config"
	OptStr_Debug   = "debug"
	OptStr_OutJSON = "out-json"
	OptStr_Quiet   = "quiet"
	OptStr_Verbose = "verbose"
)

Global configuration options (viper lookup strings).

View Source
var (
	OptStr_NoConflict = "no-conflict"
	OptStr_OutFile    = "outfile.path"
	OptStr_FileMode   = "outfile.mode"

	OptStr_AWS_Region            = "aws.region"
	OptStr_AWS_SsmParameterStore = "aws.ssm_param"
	OptStr_AWS_SecretManager     = "aws.sm_secret" //#nosec
)

Fetch configuration options

Functions

func InitConfigDefaults

func InitConfigDefaults()

InitConfigDefaults intializes the default configuration settings for the program.

func InitConfigInstance added in v0.0.4

func InitConfigInstance()

func PrintAlways

func PrintAlways(message string)

Always print message, even when --quiet is passed.

func PrintDebug

func PrintDebug(message string)

Only print message when --debug is passed.

func PrintFatal

func PrintFatal(message string, exitCode int)

Print message and immediately exit with exitCode.

func PrintNormal

func PrintNormal(message string)

Always print message, except when --quiet is passed.

func PrintVerbose

func PrintVerbose(message string)

Only print message when --verbose or --debug is passed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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