app

package
v0.0.0-...-9d58fce Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloneURLEnvKey = "CI_CLONE_URL"
	RefEnvKey      = "CI_REF"
)

Variables

This section is empty.

Functions

func GenerateCreateCheckRunOptions

func GenerateCreateCheckRunOptions(baseURL string, sha string, option *RenderCheckRunOptions) (github.CreateCheckRunOptions, error)

func GenerateUpdateCheckRunOptions

func GenerateUpdateCheckRunOptions(baseURL string, option *RenderCheckRunOptions) (github.UpdateCheckRunOptions, error)

Types

type App

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

func NewApp

func NewApp(ghClient *ghclient.Client, runnerClient api.ServerClient, baseURL string, dbCli *db.Client, cloneStep []string) *App

func (*App) GetLogHandler

func (h *App) GetLogHandler(ctx *gin.Context)

func (*App) GetRunnerHandler

func (h *App) GetRunnerHandler(ctx context.Context) (gin.HandlerFunc, error)

func (*App) Handle

func (h *App) Handle(ctx context.Context, eventType, deliveryID string, payload []byte) error

func (*App) Handles

func (h *App) Handles() []string

func (*App) RefreshJobExecution

func (h *App) RefreshJobExecution(ctx context.Context, id int64) error

type GetLogRequest

type GetLogRequest struct {
	JobExecutionID int64  `path:"job_execution_id"`
	LogName        string `path:"log_name"`
	Offset         int64  `query:"offset"`
}

type GetLogResponse

type GetLogResponse struct {
	Logs []*api.LogLine `json:"logs"`
}

type RenderCheckRunOptions

type RenderCheckRunOptions struct {
	RunnerJob *api.JobExecution
	RenderJob *RenderJob
}

type RenderJob

type RenderJob struct {
	UID   string
	Name  string
	Steps []*RenderStep
}

type RenderStep

type RenderStep struct {
	Name string
}

Jump to

Keyboard shortcuts

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