exec

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFetchTimeout = time.Minute
)

Variables

View Source
var (
	ErrNoProviders = errors.New("no config providers were online")
	ErrTimeout     = errors.New("timed out while waiting for a config provider to come online")
)

Functions

This section is empty.

Types

type Engine

type Engine struct {
	ConfigCache  string
	FetchTimeout time.Duration
	Logger       log.Logger
	Root         string
	// contains filtered or unexported fields
}

Engine represents the entity that fetches and executes a configuration.

func (*Engine) AddProvider

func (e *Engine) AddProvider(provider providers.Provider)

AddProvider registers a configuration provider with the engine.

func (Engine) GetProvider

func (e Engine) GetProvider(name string) providers.Provider

GetProvider returns the specified provider.

func (Engine) Init

func (e Engine) Init() Engine

func (Engine) Providers

func (e Engine) Providers() []providers.Provider

Providers returns a list of the registered providers in alphabetical order.

func (Engine) Run

func (e Engine) Run(stageName string) bool

Run executes the stage of the given name. It returns true if the stage successfully ran and false if there were any errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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