list

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(service service) http.Handler

Handler handles a list request swagger:operation GET /clusters/{cluster}/releases release listOperation

--- 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: deployed in: query type: boolean default: false
  • name: uninstalled in: query type: boolean default: false
  • name: failed in: query type: boolean default: false
  • name: pending in: query type: boolean default: false
  • name: uninstalling in: query type: boolean default: false

schemes: - http responses:

'200':
 "$ref": "#/responses/listResponse"
'204':
 description: No releases found
'400':
 schema:
  $ref: "#/definitions/listErrorResponse"
'500':
 schema:
  $ref: "#/definitions/listErrorResponse"

Types

type Flags

type Flags struct {
	AllNamespaces bool `schema:"-"`
	Deployed      bool `schema:"deployed"`
	Failed        bool `schema:"failed"`
	Pending       bool `schema:"pending"`
	Uninstalled   bool `schema:"uninstalled"`
	Uninstalling  bool `schema:"uninstalling"`
	flags.GlobalFlags
}

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 wraps a helm release swagger:model listRelease

type Request

type Request struct {
	Flags
}

type Response

type Response struct {
	// Error field is available only when the response status code is non 2xx
	Error    string    `json:"error,omitempty"`
	Releases []Release `json:"releases,omitempty"`
}

Response is the body of /list swagger:model listReponseBody

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(cli helmcli.Client) Service

func (Service) List

func (s Service) List(ctx context.Context, req Request) (Response, error)

Jump to

Keyboard shortcuts

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