handlers

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLivez

func GetLivez(c *gin.Context)

func LintRelease

func LintRelease(c *gin.Context)

LintRelease http handler for linting a release

Types

type LintReleaseParameters

type LintReleaseParameters struct {
	// Lint release parameters
	// In: body
	Body struct {
		// The spec to lint
		Spec string `json:"spec"`
	}
}

LintReleaseParameters contains parameters to lint a release for an app

func (*LintReleaseParameters) Bind

func (p *LintReleaseParameters) Bind(c *gin.Context) (err error)

Bind binds the gin context to the path parameters.

type LintReleaseResponse

type LintReleaseResponse struct {
	// JSON payload
	// Required: true
	// In: body
	Body struct {
		LintExpressions   []kots.LintExpression `json:"lintExpressions"`
		IsLintingComplete bool                  `json:"isLintingComplete"`
	}
	Error struct {
		Message string `json:"message"`
	}
}

LintReleaseResponse contains the release properties

func (LintReleaseResponse) JSON

func (r LintReleaseResponse) JSON(c *gin.Context)

JSON serializes the AppResponse.Body as JSON into the response body. TODO: abstract this out

Jump to

Keyboard shortcuts

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