Пример #1
0
func registerChartRepoRoutes(c *router.Context, h *router.Handler) {
	h.Add("GET /repositories", listChartReposHandlerFunc)
	h.Add("GET /repositories/*", getChartRepoHandlerFunc)
	h.Add("GET /repositories/*/charts", listRepoChartsHandlerFunc)
	h.Add("GET /repositories/*/charts/*", getRepoChartHandlerFunc)
	h.Add("POST /repositories", addChartRepoHandlerFunc)
	h.Add("DELETE /repositories/*", removeChartRepoHandlerFunc)
}
Пример #2
0
func registerDeploymentRoutes(c *router.Context, h *router.Handler) {
	h.Add("GET /healthz", healthz)
	h.Add("GET /deployments", listDeploymentsHandlerFunc)
	h.Add("GET /deployments/*", getDeploymentHandlerFunc)
	h.Add("POST /deployments", createDeploymentHandlerFunc)
	h.Add("DELETE /deployments/*", deleteDeploymentHandlerFunc)
	h.Add("PUT /deployments/*", putDeploymentHandlerFunc)
	h.Add("GET /deployments/*/manifests", listManifestsHandlerFunc)
	h.Add("GET /deployments/*/manifests/*", getManifestHandlerFunc)
	h.Add("POST /expand", expandHandlerFunc)
	h.Add("GET /charts", listChartsHandlerFunc)
	h.Add("GET /charts/*/instances", listChartInstancesHandlerFunc)
	h.Add("GET /charts/*/repository", getRepoForChartHandlerFunc)
	h.Add("GET /charts/*/metadata", getMetadataForChartHandlerFunc)
	h.Add("GET /charts/*", getChartHandlerFunc)
	h.Add("POST /credentials/*", createCredentialHandlerFunc)
	h.Add("GET /credentials/*", getCredentialHandlerFunc)
}