application

package
v1.32.2-hotfix.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: BSD-2-Clause Imports: 12 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionBase        string
	VersionShortCommit string
	VersionFullCommit  string
)

Functions

func NewVersionReporter added in v1.27.0

func NewVersionReporter() (version.Reporter, error)

func Run

func Run(runner Runner, provider Provider) error

func RunAndExit added in v1.27.0

func RunAndExit(runner Runner, scopes ...string)

Types

type Application

type Application struct {
	Provider
}

func New

func New() *Application

func (*Application) Initialize

func (a *Application) Initialize(provider Provider) error

func (*Application) Terminate

func (a *Application) Terminate()

type Provider added in v1.27.0

type Provider interface {
	VersionReporter() version.Reporter
	ConfigReporter() config.Reporter
	Logger() log.Logger
	Prefix() string
	Name() string
	UserAgent() string
}

type ProviderImpl added in v1.27.0

type ProviderImpl struct {
	// contains filtered or unexported fields
}

func NewProvider added in v1.27.0

func NewProvider(prefix string, scopes ...string) (*ProviderImpl, error)

func (*ProviderImpl) ConfigReporter added in v1.27.0

func (p *ProviderImpl) ConfigReporter() config.Reporter

func (*ProviderImpl) Logger added in v1.27.0

func (p *ProviderImpl) Logger() log.Logger

func (*ProviderImpl) Name added in v1.27.0

func (p *ProviderImpl) Name() string

func (*ProviderImpl) Prefix added in v1.27.0

func (p *ProviderImpl) Prefix() string

func (*ProviderImpl) UserAgent added in v1.27.0

func (p *ProviderImpl) UserAgent() string

func (*ProviderImpl) VersionReporter added in v1.27.0

func (p *ProviderImpl) VersionReporter() version.Reporter

type Runner

type Runner interface {
	Initialize(provider Provider) error
	Terminate()

	Run() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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