params

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

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

func LoggingHandler

func LoggingHandler(out io.Writer, h http.Handler) http.Handler

Types

type CLIContext

type CLIContext interface {
	VaultAddress() string
	VaultToken() string
	VaultAuthMethod() string
	VaultAuthPath() string
	VaultUsername() string
	VaultPassword() string
	VaultSSHMount() string
	VaultSSHRole() string
	SSHHost() string
	SSHCommand() []string
	SSHLogin() string
	SSHPort() int
	SSHPassword() bool
	SSHAgent() bool
	SSHInsecure() bool
	HTTPProxy() string
	PrivateKey() string
	VPrivateKey() string
	ForceTerminal() bool
}

func NewCliContext

func NewCliContext(ctx *cli.Context) CLIContext

type LogFormatterParams

type LogFormatterParams struct {
	Request    *http.Request
	URL        url.URL
	TimeStamp  time.Time
	StatusCode int
	Size       int
}

type Params

type Params struct {
	LogLevel string
	Upcase   bool
	Prefix   bool
}

type SSHParams

type SSHParams struct {
	Port      int
	Insecure  bool
	LoginName string
	Host      string
	Commands  []string
	HTTPProxy *url.URL
	UseAgent  bool
}

func GetSSHParams

func GetSSHParams(c CLIContext) (p SSHParams, err error)

type VaultParams

type VaultParams struct {
	Address    string
	Token      string
	AuthMethod string
	AuthPath   string
	Username   string
	Password   string
	SSHMount   string
	SSHRole    string
}

Jump to

Keyboard shortcuts

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