internal

package
v0.0.0-...-a1948fa Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevels = map[string]logrus.Level{
	"TRACE": logrus.TraceLevel,
	"DEBUG": logrus.DebugLevel,
	"INFO":  logrus.InfoLevel,
	"WARN":  logrus.WarnLevel,
	"ERROR": logrus.ErrorLevel,
	"FATAL": logrus.FatalLevel,
	"PANIC": logrus.PanicLevel,
}

LogLevels - mapping between log level specification strings and logrus Level values

Functions

func GenerateDockerClient

func GenerateDockerClient(log *logrus.Logger) *docker.Client

GenerateDockerClient returns a docker client configured to talk to the API specified by the environment of the executing process

func GenerateLogger

func GenerateLogger() *logrus.Logger

Accepts the following environment variables: + LOG_LEVEL (value should be one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, PANIC)

func OpenStateDB

func OpenStateDB(stateDir string, log *logrus.Logger) *sql.DB

OpenStateDB opens a connection to the state database in the given state directory. If there is an error opening the database, fatally errors out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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