Documentation
¶
Index ¶
- Constants
- type ChartHandlers
- func (c *ChartHandlers) GetAllCharts(w http.ResponseWriter, req *http.Request)
- func (c *ChartHandlers) GetChart(w http.ResponseWriter, req *http.Request, params handlers.Params)
- func (c *ChartHandlers) GetChartVersion(w http.ResponseWriter, req *http.Request, params handlers.Params)
- func (c *ChartHandlers) GetChartVersions(w http.ResponseWriter, req *http.Request, params handlers.Params)
- func (c *ChartHandlers) GetChartsInRepo(w http.ResponseWriter, req *http.Request, params handlers.Params)
- func (c *ChartHandlers) SearchCharts(w http.ResponseWriter, req *http.Request)
Constants ¶
View Source
const ( // ChartResourceName is the resource type string for a chart ChartResourceName = "chart" // ChartVersionResourceName is the resource type string for a chart version ChartVersionResourceName = "chartVersion" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartHandlers ¶ added in v0.5.0
type ChartHandlers struct {
// contains filtered or unexported fields
}
ChartHandlers defines handlers that serve chart data
func NewChartHandlers ¶ added in v0.5.0
func NewChartHandlers(db datastore.Session, ch data.Charts) *ChartHandlers
NewChartHandlers takes a datastore.Session and data.Charts implementation and returns a ChartHandlers struct
func (*ChartHandlers) GetAllCharts ¶ added in v0.5.0
func (c *ChartHandlers) GetAllCharts(w http.ResponseWriter, req *http.Request)
GetAllCharts is the handler for the /charts endpoint
func (*ChartHandlers) GetChart ¶ added in v0.5.0
func (c *ChartHandlers) GetChart(w http.ResponseWriter, req *http.Request, params handlers.Params)
GetChart is the handler for the /charts/{repo}/{name} endpoint
func (*ChartHandlers) GetChartVersion ¶ added in v0.5.0
func (c *ChartHandlers) GetChartVersion(w http.ResponseWriter, req *http.Request, params handlers.Params)
GetChartVersion is the handler for the /charts/{repo}/{name}/versions/{version} endpoint
func (*ChartHandlers) GetChartVersions ¶ added in v0.5.0
func (c *ChartHandlers) GetChartVersions(w http.ResponseWriter, req *http.Request, params handlers.Params)
GetChartVersions is the handler for the /charts/{repo}/{name}/versions endpoint
func (*ChartHandlers) GetChartsInRepo ¶ added in v0.5.0
func (c *ChartHandlers) GetChartsInRepo(w http.ResponseWriter, req *http.Request, params handlers.Params)
GetChartsInRepo is the handler for the /charts/{repo} endpoint
func (*ChartHandlers) SearchCharts ¶ added in v0.5.0
func (c *ChartHandlers) SearchCharts(w http.ResponseWriter, req *http.Request)
SearchCharts is the handler for the /charts/search endpoint
Click to show internal directories.
Click to hide internal directories.