juju: github.com/stgraber/juju/api/upgrader Index | Files

package upgrader

import "github.com/stgraber/juju/api/upgrader"

Index

Package Files

upgrader.go

type State Uses

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

State provides access to an upgrader worker's view of the state.

func NewState Uses

func NewState(caller base.APICaller) *State

NewState returns a version of the state that provides functionality required by the upgrader worker.

func (*State) DesiredVersion Uses

func (st *State) DesiredVersion(tag string) (version.Number, error)

func (*State) SetVersion Uses

func (st *State) SetVersion(tag string, v version.Binary) error

SetVersion sets the tools version associated with the entity with the given tag, which must be the tag of the entity that the upgrader is running on behalf of.

func (*State) Tools Uses

func (st *State) Tools(tag string) (tools.List, error)

Tools returns the agent tools that should run on the given entity, along with a flag whether to disable SSL hostname verification.

func (*State) WatchAPIVersion Uses

func (st *State) WatchAPIVersion(agentTag string) (watcher.NotifyWatcher, error)

Package upgrader imports 7 packages (graph). Updated 2017-05-25. Refresh now. Tools for package owners. This is a quick bug-fix fork (has fewer than three commits, and only during the week it was created).