worker

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PullRequestWorkflow string = "create-pull-request"
	StartPullRequest    string = "pull_request:start"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StartPullRequestEvent

type StartPullRequestEvent struct {
	TenantID   string `json:"tenant_id"`
	StepRunID  string `json:"step_run_id"`
	BranchName string `json:"branch_name"`
}

type WorkerImpl

type WorkerImpl struct {
	*worker.Worker
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(fs ...WorkerOpt) (*WorkerImpl, error)

func (*WorkerImpl) Start

func (w *WorkerImpl) Start() (func() error, error)

type WorkerOpt

type WorkerOpt func(*WorkerOpts)

func WithClient

func WithClient(c client.Client) WorkerOpt

func WithLogger added in v0.11.1

func WithLogger(l *zerolog.Logger) WorkerOpt

func WithRepository

func WithRepository(r repository.APIRepository) WorkerOpt

func WithVCSProviders

func WithVCSProviders(vcsProviders map[vcs.VCSRepositoryKind]vcs.VCSProvider) WorkerOpt

type WorkerOpts

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

Jump to

Keyboard shortcuts

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