workers

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore interface {
	// SetCharmStoreResources sets the "polled from the charm store"
	// resources for the application to the provided values.
	SetCharmStoreResources(applicationID string, info []charmresource.Resource, lastPolled time.Time) error
}

DataStore exposes the functionality of Juju state needed here.

type LatestCharmHandler

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

LatestCharmHandler implements apiserver/charmrevisionupdater.LatestCharmHandler.

func NewLatestCharmHandler

func NewLatestCharmHandler(store DataStore) *LatestCharmHandler

NewLatestCharmHandler returns a LatestCharmHandler that uses the given data store.

func (LatestCharmHandler) HandleLatest

func (handler LatestCharmHandler) HandleLatest(applicationID names.ApplicationTag, info charmstore.CharmInfo) error

HandleLatest implements apiserver/charmrevisionupdater.LatestCharmHandler by storing the charm's resources in state.

Jump to

Keyboard shortcuts

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