juju: github.com/wallyworld/juju/worker/toolsversionchecker Index | Files

package toolsversionchecker

import "github.com/wallyworld/juju/worker/toolsversionchecker"


Package Files

manifold.go worker.go


var New = func(api Facade, params *VersionCheckerParams) worker.Worker {
    w := &toolsVersionWorker{
        api:    api,
        params: params,

    f := func(stop <-chan struct{}) error {
        return w.doCheck()
    return jworker.NewPeriodicWorker(f, params.CheckInterval, jworker.NewTimer)

New returns a worker that periodically wakes up to try to find out and record the latest version of the tools so the update possibility can be displayed to the users on status.

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency manifold that runs a toolsversionchecker worker, using the api connection resource named in the supplied config.

type Facade Uses

type Facade interface {
    UpdateToolsVersion() error

type ManifoldConfig Uses

type ManifoldConfig engine.AgentAPIManifoldConfig

ManifoldConfig defines the names of the manifolds on which a Manifold will depend.

type VersionCheckerParams Uses

type VersionCheckerParams struct {
    CheckInterval time.Duration

VersionCheckerParams holds params for the version checker worker..

Package toolsversionchecker imports 11 packages (graph). Updated 2020-08-15. Refresh now. Tools for package owners.