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.
Click to show internal directories.
Click to hide internal directories.