juju: github.com/juju/juju/resource/workers Index | Files

package workers

import "github.com/juju/juju/resource/workers"


Package Files


type DataStore Uses

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 Uses

type LatestCharmHandler struct {
    // contains filtered or unexported fields

LatestCharmHandler implements apiserver/facades/controller/charmrevisionupdater.LatestCharmHandler.

func NewLatestCharmHandler Uses

func NewLatestCharmHandler(store DataStore) *LatestCharmHandler

NewLatestCharmHandler returns a LatestCharmHandler that uses the given data store.

func (LatestCharmHandler) HandleLatest Uses

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

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

Package workers imports 5 packages (graph) and is imported by 24 packages. Updated 2020-09-03. Refresh now. Tools for package owners.