environment

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironGetter

type EnvironGetter interface {
	Environment() (*state.Environment, error)
}

EnvironGetter represents a struct that can provide a state.Environment.

type EnvironTools

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

EnvironTools holds the required tools for an environ facade.

func NewEnvironTools

func NewEnvironTools(st EnvironGetter, authorizer common.Authorizer) *EnvironTools

NewEnvironTools returns a new environ tools pointer with the passed attributes and some defaults that are only for changed during tests.

func (*EnvironTools) UpdateToolsAvailable

func (e *EnvironTools) UpdateToolsAvailable() error

UpdateToolsAvailable invokes a lookup and further update in environ for new patches of the current tool versions.

type EnvironmentAPI

type EnvironmentAPI struct {
	*common.EnvironWatcher
	*EnvironTools
}

EnvironmentAPI implements the API used by the machine environment worker.

func NewEnvironmentAPI

func NewEnvironmentAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) (*EnvironmentAPI, error)

NewEnvironmentAPI creates a new instance of the Environment API.

Jump to

Keyboard shortcuts

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