Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
Handler handles an uninstall request swagger:operation DELETE /clusters/{cluster}/namespaces/{namespace}/releases/{release_name} release uninstallOperation
--- summary: Uninstall a helm release 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 type: string format: string default: mysql-final
- name: dry_run in: query type: boolean default: false
- name: keep_history in: query type: boolean default: false
- name: disable_hooks in: query type: boolean default: false
- name: timeout in: query type: integer default: 300
schemes: - http responses:
'200': "$ref": "#/responses/uninstallResponse" '400': schema: $ref: "#/definitions/uninstallErrorResponse" '404': schema: $ref: "#/definitions/uninstallErrorResponse" '500': "$ref": "#/responses/uninstallResponse"
Types ¶
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 contains metadata about a helm release object swagger:model uninstallRelease
type Request ¶
type Request struct { DryRun bool `json:"dry_run" schema:"dry_run"` KeepHistory bool `json:"keep_history" schema:"keep_history"` DisableHooks bool `json:"disable_hooks" schema:"disable_hooks"` Timeout int `json:"timeout" schema:"timeout"` flags.GlobalFlags // contains filtered or unexported fields }
type Response ¶
type Response struct { // Error error message, field is available only when status code is non 2xx Error string `json:"error,omitempty"` // Status status of the release, field is available only when status code is 2xx // example: uninstalled Status string `json:"status,omitempty"` // Release release meta data, field is available only when status code is 2xx Release *Release `json:"release,omitempty"` }
Response is the body of uninstall route swagger:model uninstallResponseBody
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
NewService returns an uninstall service.
Click to show internal directories.
Click to hide internal directories.