goflags

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	ConfigPath  string `long:"config" env:"SSOCA_CONFIG" description:"Configuration file path" default:"~/.config/ssoca/config"`
	Environment string `short:"e" long:"environment" env:"SSOCA_ENVIRONMENT" description:"Environment name"`

	LogLevel string `long:"log-level" env:"SSOCA_LOG_LEVEL" description:"Log level" default:"WARN"`

	Version cmd.Version `command:"version" description:"Show the current version"`
	// contains filtered or unexported fields
}

func NewRuntime

func NewRuntime(exec string, version_ version.Version, serviceManager service.Manager, ui boshui.UI, stdin io.Reader, stdout io.Writer, stderr io.Writer, fs boshsys.FileSystem) *Runtime

func (Runtime) GetAuthInterceptClient

func (r Runtime) GetAuthInterceptClient() (httpclient.Client, error)

func (Runtime) GetClient

func (r Runtime) GetClient() (httpclient.Client, error)

func (Runtime) GetConfigManager

func (r Runtime) GetConfigManager() (config.Manager, error)

func (Runtime) GetEnvironment

func (r Runtime) GetEnvironment() (config.EnvironmentState, error)

func (Runtime) GetEnvironmentName

func (r Runtime) GetEnvironmentName() string

func (Runtime) GetExec added in v0.14.0

func (r Runtime) GetExec() string

func (Runtime) GetLogger added in v0.7.0

func (r Runtime) GetLogger() logrus.FieldLogger

func (Runtime) GetStderr

func (r Runtime) GetStderr() io.Writer

func (Runtime) GetStdin

func (r Runtime) GetStdin() io.Reader

func (Runtime) GetStdout

func (r Runtime) GetStdout() io.Writer

func (Runtime) GetUI

func (r Runtime) GetUI() boshui.UI

func (Runtime) GetVersion added in v0.7.0

func (r Runtime) GetVersion() version.Version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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