workers

package
v0.0.0-...-4bd6544 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 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