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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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