Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPIHandler ¶
func NewAPIHandler(store *charmstore.Store, config charmstore.ServerParams) http.Handler
NewAPIHandler returns a new Handler as an http Handler. It is defined for the convenience of callers that require a charmstore.NewAPIHandlerFunc.
func ResolveURL ¶
func ResolveURL(store *charmstore.Store, url *charm.Reference) error
ResolveURL resolves the series and revision of the given URL if either is unspecified by filling them out with information retrieved from the store.
Types ¶
type Handler ¶
func New ¶
func New(store *charmstore.Store, config charmstore.ServerParams) *Handler
New returns a new instance of the v4 API handler.
type PublishedResponse ¶
Click to show internal directories.
Click to hide internal directories.