Help us shape the future of Go! Take the 2026 Go Developer Survey

charts

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL