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

package charmrevisionmanifold

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


Package Files


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 {

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). Updated 2020-08-15. Refresh now. Tools for package owners.