lib

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCmdFinishedNoError = errors.New("command has finished without error")
View Source
var ErrForceStop = errors.New("command has been forced to stop")

Functions

func Auth

func Auth(ctx context.Context, authType, address, path, tok, username, password string, logger *zap.SugaredLogger) (*api.Client, error)

func CheckHealth

func CheckHealth(ctx context.Context, client *api.Client) error

func ExecCmd

func ExecCmd(ctx context.Context, args []string, results map[string]string, genv []string, l *zap.SugaredLogger) error

func ForwardEnv

func ForwardEnv(forward string) []string

func GetSecrets

func GetSecrets(ctx context.Context, clt *api.Client, prefix, up, once bool, keys []string, l *zap.SugaredLogger, results chan map[string]string) (e error)

func GlobalContext

func GlobalContext() (context.Context, context.CancelFunc)

func Input

func Input(text string, password bool) ([]byte, error)

func Logger

func Logger(level string) (*zap.SugaredLogger, error)

func Sanitize added in v0.1.7

func Sanitize(s string) string

Types

type ExpiredSecretError

type ExpiredSecretError struct {
	Err error
	Key string
}

func (ExpiredSecretError) Error

func (e ExpiredSecretError) Error() string

type TokenNotRenewedError

type TokenNotRenewedError struct {
	Err error
}

func (TokenNotRenewedError) Error

func (e TokenNotRenewedError) Error() string

Jump to

Keyboard shortcuts

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