cmd

package
v2.0.0-...-ec94ed8 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithStopChan

func ContextWithStopChan(ctx context.Context, stopCh <-chan struct{}) context.Context

ContextWithStopChan creates a context canceled when the given stopCh receives a message or get closed.

func NewLogger

func NewLogger(format, level string) (logrus.FieldLogger, error)

NewLogger returns a new field logger with the provided format and level.

Types

type EnvLoader

type EnvLoader struct{}

EnvLoader loads a configuration from all the environment variables.

func (*EnvLoader) Load

func (e *EnvLoader) Load(_ []string, cmd *cli.Command) (bool, error)

Load loads the command's configuration from the environment variables prefixed with "TRAEFIK_MESH_". As it is not possible to have a prefix with multiple "_" everything is normalized to "MESH_" under the hood for the decoding.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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