view

package
v0.0.0-...-f6b2f6e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	HttpHeaderLocation = "Location"
)

Headers

Variables

View Source
var (
	ErrNotFound = errors.New("Resource not found")
)

Errors

Functions

This section is empty.

Types

type RESTView

type RESTView struct {
}

func (*RESTView) RenderDeploymentLog

func (p *RESTView) RenderDeploymentLog(w rest.ResponseWriter, dlog model.DeploymentLog)

func (*RESTView) RenderEmptySuccessResponse

func (p *RESTView) RenderEmptySuccessResponse(w rest.ResponseWriter)

Success response with no data aka. 204 No Content

func (*RESTView) RenderError

func (p *RESTView) RenderError(
	w rest.ResponseWriter,
	r *rest.Request,
	err error,
	status int,
	l *log.Logger,
)

func (*RESTView) RenderErrorNotFound

func (p *RESTView) RenderErrorNotFound(w rest.ResponseWriter, r *rest.Request, l *log.Logger)

func (*RESTView) RenderInternalError

func (p *RESTView) RenderInternalError(
	w rest.ResponseWriter,
	r *rest.Request,
	err error,
	l *log.Logger,
)

func (*RESTView) RenderNoUpdateForDevice

func (p *RESTView) RenderNoUpdateForDevice(w rest.ResponseWriter)

func (*RESTView) RenderSuccessDelete

func (p *RESTView) RenderSuccessDelete(w rest.ResponseWriter)

func (*RESTView) RenderSuccessGet

func (p *RESTView) RenderSuccessGet(w rest.ResponseWriter, object interface{})

func (*RESTView) RenderSuccessPost

func (p *RESTView) RenderSuccessPost(w rest.ResponseWriter, r *rest.Request, id string)

func (*RESTView) RenderSuccessPut

func (p *RESTView) RenderSuccessPut(w rest.ResponseWriter)

Jump to

Keyboard shortcuts

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