api

package
v0.0.0-...-53bcd79 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AllowCommand           = "/allow-build"
	SkipCI                 = "[skip ci]"
	BuildConfigurationFile = "build.star"
	BazelVersionFile       = ".bazelversion"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	*http.Server
	// contains filtered or unexported fields
}

func NewApi

func NewApi(addr string, builder Builder, dao dao.Options, ghClient *github.Client, stClient *storage.MinIO, bazelMirrorPrefix string) (*Api, error)

type Builder

type Builder interface {
	Build(ctx context.Context, repo *database.SourceRepository, job *config.Job, revision, bazelVersion, command string, targets, platforms []string, via string, isMainBranch bool) ([]*database.Task, error)
}

type ReadinessResponse

type ReadinessResponse struct {
	Versions []string `json:"versions"`
}

type RunResponse

type RunResponse struct {
	TaskId int32 `json:"task_id"`
}

Jump to

Keyboard shortcuts

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