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 Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func New ¶
func New(dependencies Dependencies) (*Handler, error)
type ReadRepository ¶
type ReadRepository interface {
GetJob(context.Context, string) (jobcontract.Snapshot, error)
GetJobSpec(context.Context, string) (jobcontract.JobSpec, error)
JobEvents(context.Context, string, uint64, uint32) (jobhost.EventPage, error)
ReadPerformanceResult(context.Context, string) (jobhost.PerformanceResultDocument, error)
ListJobs(context.Context, jobhost.JobListQuery) (jobhost.JobPage, error)
ReadRunReport(context.Context, string, string) (jobhost.RunReportDocument, error)
ReadPerformanceArchive(context.Context, string, string) (jobhost.PerformanceArchiveDocument, error)
}
Click to show internal directories.
Click to hide internal directories.