juju: github.com/juju/juju/worker/charmrevision/charmrevisionmanifold Index | Files

package charmrevisionmanifold

import "github.com/juju/juju/worker/charmrevision/charmrevisionmanifold"

Index

Package Files

manifold.go

func Manifold Uses

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency.Manifold that runs a charm revision worker according to the supplied configuration.

type Facade Uses

type Facade interface {
    charmrevision.RevisionUpdater
}

Facade has all the controller methods used by the charm revision worker.

func NewAPIFacade Uses

func NewAPIFacade(apiCaller base.APICaller) (Facade, error)

NewAPIFacade returns a Facade backed by the supplied APICaller.

type ManifoldConfig Uses

type ManifoldConfig struct {

    // The named dependencies will be exposed to the start func as resources.
    APICallerName string
    Clock         clock.Clock

    // The remaining dependencies will be used with the resources to configure
    // and create the worker. The period must be greater than 0; the NewFacade
    // and NewWorker fields must not be nil. charmrevision.NewWorker, and
    // NewAPIFacade, are suitable implementations for most clients.
    Period    time.Duration
    NewFacade func(base.APICaller) (Facade, error)
    NewWorker func(charmrevision.Config) (worker.Worker, error)
}

ManifoldConfig describes how to create a worker that checks for updates available to deployed charms in an environment.

Package charmrevisionmanifold imports 8 packages (graph) and is imported by 21 packages. Updated 2019-10-09. Refresh now. Tools for package owners.