runnerhttp

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package runnerhttp exposes the current private runner management protocol.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid_runner_http_configuration")

Functions

This section is empty.

Types

type ContentStore

type ContentStore interface {
	PutContent(context.Context, jobcontract.ContentIdentity, io.Reader) (bool, error)
}

type Dependencies

type Dependencies struct {
	Host         *jobhost.Host
	Maintenance  *jobhost.Maintenance
	Scheduling   *jobhost.Scheduling
	Repository   ReadRepository
	TokenSHA256  [32]byte
	Capabilities jobcontract.RunnerCapabilities
	Content      ContentStore
}

type ErrorResponse

type ErrorResponse struct {
	Contract  int    `json:"contract"`
	Code      string `json:"code"`
	Message   string `json:"message"`
	Field     string `json:"field,omitempty"`
	Retryable bool   `json:"retryable"`
}

type Handler

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

func New

func New(dependencies Dependencies) (*Handler, error)

func (*Handler) ServeHTTP

func (handler *Handler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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