server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func New

func New(artifactory *artifactory.Artifactory) *Application

func (*Application) Start

func (application *Application) Start(port int) error

func (*Application) Stop

func (application *Application) Stop(ctx context.Context) error

type CreateBuildJobRequest

type CreateBuildJobRequest struct {
	CommitHash string               `json:"commit_hash"`
	Flags      []firmware.BuildFlag `json:"flags"`
}

func (*CreateBuildJobRequest) Validate

func (req *CreateBuildJobRequest) Validate() []error

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

func NewErrorResponse

func NewErrorResponse(message string) *ErrorResponse

type GetBuildStatusRequest

type GetBuildStatusRequest struct {
	CommitHash string               `json:"commit_hash"`
	Flags      []firmware.BuildFlag `json:"flags"`
}

func (*GetBuildStatusRequest) Validate

func (req *GetBuildStatusRequest) Validate() []error

type ValidationErrorResponse

type ValidationErrorResponse struct {
	Error            string   `json:"error"`
	ValidationErrors []string `json:"validation_errors"`
}

func NewValidationErrorResponse

func NewValidationErrorResponse(message string, errs []error) *ValidationErrorResponse

Jump to

Keyboard shortcuts

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