status

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(s service) http.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
}

type Service

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

func NewService

func NewService(cli helmcli.Client) Service

func (Service) Status

func (s Service) Status(ctx context.Context, req Request) (*Release, error)

Jump to

Keyboard shortcuts

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