Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler handles a list request swagger:operation GET /clusters/{cluster}/namespaces/{namespace}/releases/{release_name} release statusOperation
--- summary: List the helm releases for the cluster produces: - application/json parameters:
- name: cluster in: path required: true default: minikube type: string format: string
- name: namespace in: path required: true default: default type: string format: string
- name: release_name in: path required: true default: mysql type: string format: string
- name: revision in: query type: number
schemes: - http responses:
'200': schema: $ref: "#/definitions/statusOkResponse" '400': schema: $ref: "#/definitions/statusErrorResponse" '404': description: Release not found '500': schema: $ref: "#/definitions/statusErrorResponse"
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
ErrorResponse is the body of /list swagger:model statusErrorResponse
type Release ¶
type Release struct { // example: mysql-5.7 Name string `json:"name"` // example: default Namespace string `json:"namespace"` // example: 1 Version int `json:"version"` // example: 2021-03-24T12:24:18.450869+05:30 Updated time.Time `json:"updated_at,omitempty"` // example: deployed Status release.Status `json:"status"` // example: mysql Chart string `json:"chart"` // example: 5.7.30 AppVersion string `json:"app_version"` }
Release is the response of a successful status request
type Request ¶
type Request struct { Version int `schema:"revision"` flags.GlobalFlags // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.