api

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveBackportGetHandler added in v0.18.0

func ArchiveBackportGetHandler(appCtx *appctx.Context) http.Handler

ArchiveBackportGetHandler returns a handler that returns an ArchiveBackport

func ArchiveUpgradeGetHandler added in v0.11.0

func ArchiveUpgradeGetHandler(appCtx *appctx.Context) http.Handler

ArchiveUpgradeGetHandler returns a handler that returns an archive upgrade

func ArchiveUpgradeJobsGetHandler added in v0.13.0

func ArchiveUpgradeJobsGetHandler(appCtx *appctx.Context) http.Handler

ArchiveUpgradeJobsGetHandler returns a handler that lists all jobs for an ArchiveUpgrade

func ArtifactContentGetHandler

func ArtifactContentGetHandler(appCtx *appctx.Context) http.Handler

ArtifactContentGetHandler returns the content of a job's artifact

func ArtifactGetHandler

func ArtifactGetHandler(appCtx *appctx.Context) http.Handler

ArtifactGetHandler returns a handler that returns an artifact

func JSONError

func JSONError(message string) string

JSONError creates a JSON Error object from the input message. If the message cannot be encoded, it will be returned as-is so that we still can return something to the user.

func JobArtifactGetHandler

func JobArtifactGetHandler(appCtx *appctx.Context) http.Handler

JobArtifactGetHandler returns a handler that retrieves the artifact of a job

func JobArtifactPostHandler

func JobArtifactPostHandler(appCtx *appctx.Context) http.Handler

JobArtifactPostHandler returns a handler that saves job artifacts

func JobArtifactsGetHandler

func JobArtifactsGetHandler(appCtx *appctx.Context) http.Handler

JobArtifactsGetHandler returns a handler that prints all artifacts of a job

func JobGetHandler

func JobGetHandler(appCtx *appctx.Context) http.Handler

JobGetHandler returns a handler that returns a job

func JobLogPostHandler

func JobLogPostHandler(appCtx *appctx.Context) http.Handler

JobLogPostHandler returns a handler that saves a log for a job

func JobLogTxtGetHandler

func JobLogTxtGetHandler(appCtx *appctx.Context) http.Handler

JobLogTxtGetHandler returns a handler that retrieves the log of a job

func JobStatusPostHandler

func JobStatusPostHandler(appCtx *appctx.Context) http.Handler

JobStatusPostHandler returns a handler that sets the job status

func JobsNextPostHandler

func JobsNextPostHandler(appCtx *appctx.Context) http.Handler

JobsNextPostHandler returns a handler that find the next job to run

func JobsPostHandler added in v0.11.0

func JobsPostHandler(appCtx *appctx.Context) http.Handler

JobsPostHandler returns a handler that creates a new job

func UploadChangesGetHandler

func UploadChangesGetHandler(appCtx *appctx.Context) http.Handler

UploadChangesGetHandler returns handler the DSC of the upload

func UploadDSCGetHandler

func UploadDSCGetHandler(appCtx *appctx.Context) http.Handler

UploadDSCGetHandler returns handler the DSC of the upload

func UploadFileGetHandler

func UploadFileGetHandler(appCtx *appctx.Context) http.Handler

UploadFileGetHandler returns a handler that returns upload files

func UploadFilesGetHandler

func UploadFilesGetHandler(appCtx *appctx.Context) http.Handler

UploadFilesGetHandler returns a handler that lists all files for an upload

func UploadGetHandler

func UploadGetHandler(appCtx *appctx.Context) http.Handler

UploadGetHandler returns a handler that returns an upload

func UserGetHandler

func UserGetHandler(appCtx *appctx.Context) http.Handler

UserGetHandler returns a handler returns the current user

Types

type Error

type Error struct {
	Message string `json:"message"`
}

Error is the error format that is returned to the user

func ErrorFromJSON

func ErrorFromJSON(b []byte) (*Error, error)

ErrorFromJSON returns an Error from json

Jump to

Keyboard shortcuts

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