juju: github.com/juju/juju/apiserver/facades/controller/agenttools Index | Files

package agenttools

import "github.com/juju/juju/apiserver/facades/controller/agenttools"


Package Files


type AgentToolsAPI Uses

type AgentToolsAPI struct {
    // contains filtered or unexported fields

AgentToolsAPI implements the API used by the machine model worker.

func NewAgentToolsAPI Uses

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 Uses

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

NewFacade is used to register the facade.

func (*AgentToolsAPI) UpdateToolsAvailable Uses

func (api *AgentToolsAPI) UpdateToolsAvailable() error

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

type ModelGetter Uses

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

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

Package agenttools imports 11 packages (graph) and is imported by 4 packages. Updated 2020-07-31. Refresh now. Tools for package owners.