charmrevisionmanifold

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

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

Types

type Facade

type Facade interface {
	charmrevision.RevisionUpdater
}

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

func NewAPIFacade

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

NewAPIFacade returns a Facade backed by the supplied APICaller.

type ManifoldConfig

type ManifoldConfig struct {

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

	// 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL