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.
Click to show internal directories.
Click to hide internal directories.