juju: github.com/juju/juju/apiserver/facades/agent/upgrader Index | Files

package upgrader

import "github.com/juju/juju/apiserver/facades/agent/upgrader"

Index

Package Files

unitupgrader.go upgrader.go

type UnitUpgraderAPI Uses

type UnitUpgraderAPI struct {
    *common.ToolsSetter
    // contains filtered or unexported fields
}

UnitUpgraderAPI provides access to the UnitUpgrader API facade.

func NewUnitUpgraderAPI Uses

func NewUnitUpgraderAPI(
    st *state.State,
    resources facade.Resources,
    authorizer facade.Authorizer,
) (*UnitUpgraderAPI, error)

NewUnitUpgraderAPI creates a new server-side UnitUpgraderAPI facade.

func (*UnitUpgraderAPI) DesiredVersion Uses

func (u *UnitUpgraderAPI) DesiredVersion(args params.Entities) (params.VersionResults, error)

DesiredVersion reports the Agent Version that we want that unit to be running. The desired version is what the unit's assigned machine is running.

func (*UnitUpgraderAPI) Tools Uses

func (u *UnitUpgraderAPI) Tools(args params.Entities) (params.ToolsResults, error)

Tools finds the tools necessary for the given agents.

func (*UnitUpgraderAPI) WatchAPIVersion Uses

func (u *UnitUpgraderAPI) WatchAPIVersion(args params.Entities) (params.NotifyWatchResults, error)

WatchAPIVersion starts a watcher to track if there is a new version of the API that we want to upgrade to. The watcher tracks changes to the unit's assigned machine since that's where the required agent version is stored.

type Upgrader Uses

type Upgrader interface {
    WatchAPIVersion(args params.Entities) (params.NotifyWatchResults, error)
    DesiredVersion(args params.Entities) (params.VersionResults, error)
    Tools(args params.Entities) (params.ToolsResults, error)
    SetTools(args params.EntitiesVersion) (params.ErrorResults, error)
}

func NewUpgraderFacade Uses

func NewUpgraderFacade(st *state.State, resources facade.Resources, auth facade.Authorizer) (Upgrader, error)

NewUpgraderFacade provides the signature required for facade registration.

type UpgraderAPI Uses

type UpgraderAPI struct {
    *common.ToolsGetter
    *common.ToolsSetter
    // contains filtered or unexported fields
}

UpgraderAPI provides access to the Upgrader API facade.

func NewUpgraderAPI Uses

func NewUpgraderAPI(
    st *state.State,
    resources facade.Resources,
    authorizer facade.Authorizer,
) (*UpgraderAPI, error)

NewUpgraderAPI creates a new server-side UpgraderAPI facade.

func (*UpgraderAPI) DesiredVersion Uses

func (u *UpgraderAPI) DesiredVersion(args params.Entities) (params.VersionResults, error)

DesiredVersion reports the Agent Version that we want that agent to be running

func (*UpgraderAPI) WatchAPIVersion Uses

func (u *UpgraderAPI) WatchAPIVersion(args params.Entities) (params.NotifyWatchResults, error)

WatchAPIVersion starts a watcher to track if there is a new version of the API that we want to upgrade to

Package upgrader imports 13 packages (graph) and is imported by 3 packages. Updated 2019-09-26. Refresh now. Tools for package owners.