agenttools

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentToolsAPI

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

AgentToolsAPI implements the API used by the machine model worker.

func NewAgentToolsAPI

func NewAgentToolsAPI(
	modelGetter ModelGetter,
	newEnviron func() (environs.Environ, error),
	findTools toolsFinder,
	envVersionUpdate func(*state.Model, version.Number) error,
	authorizer facade.Authorizer,
) (*AgentToolsAPI, error)

NewAgentToolsAPI creates a new instance of the Model API.

func NewFacade

func NewFacade(st *state.State, resources facade.Resources, authorizer facade.Authorizer) (*AgentToolsAPI, error)

NewFacade is used to register the facade.

func (*AgentToolsAPI) UpdateToolsAvailable

func (api *AgentToolsAPI) UpdateToolsAvailable() error

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

type ModelGetter

type ModelGetter interface {
	Model() (*state.Model, error)
}

ModelGetter represents a struct that can provide a state.Model.

Jump to

Keyboard shortcuts

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