Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
*mux.Router
// contains filtered or unexported fields
}
API defines a catalog router.
func (*API) ProfileHandler ¶
func (a *API) ProfileHandler(w http.ResponseWriter, r *http.Request)
ProfileHandler is the handler for /profiles/{catalog}/{profile} requests.
func (*API) ProfileWithVersionHandler ¶ added in v0.0.2
func (a *API) ProfileWithVersionHandler(w http.ResponseWriter, r *http.Request)
ProfileWithVersionHandler is the handler for /profiles/{catalog}/{profile}/{version} requests.
func (*API) ProfilesHandler ¶
func (a *API) ProfilesHandler(w http.ResponseWriter, r *http.Request)
ProfilesHandler is the handler for /profiles requests.
type Catalog ¶
type Catalog interface {
// Get will return a specific profile from the catalog
Get(sourceName, profileName string) *profilesv1.ProfileDescription
// GetWithVersion will return a specific profile from the catalog
GetWithVersion(sourceName, profileName, version string) *profilesv1.ProfileDescription
// Search will return a list of profiles which match query
Search(query string) []profilesv1.ProfileDescription
}
Catalog is an interface for the Catalog
Click to show internal directories.
Click to hide internal directories.