builds

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuildService

func NewBuildService(config BuildServiceConfig) services.IBuildService

Types

type BuildService

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

func (*BuildService) Create

func (*BuildService) Delete

func (s *BuildService) Delete(ctx context.Context, filter *services.BuildFilter, force bool) []error

func (*BuildService) Find

func (*BuildService) GetBuildLogReader

func (s *BuildService) GetBuildLogReader(ctx context.Context, buildId string) (io.Reader, error)

func (*BuildService) GetBuildLogWriter added in v0.52.0

func (s *BuildService) GetBuildLogWriter(ctx context.Context, buildId string) (io.WriteCloser, error)

func (*BuildService) HandleSuccessfulRemoval added in v0.52.0

func (s *BuildService) HandleSuccessfulRemoval(ctx context.Context, id string) error

func (*BuildService) List

func (s *BuildService) List(ctx context.Context, filter *services.BuildFilter) ([]*services.BuildDTO, error)

func (*BuildService) UpdateLastJob added in v0.52.0

func (s *BuildService) UpdateLastJob(ctx context.Context, buildId, jobId string) error

type BuildServiceConfig

type BuildServiceConfig struct {
	BuildStore            stores.BuildStore
	FindWorkspaceTemplate func(ctx context.Context, name string) (*models.WorkspaceTemplate, error)
	GetRepositoryContext  func(ctx context.Context, url, branch string) (*gitprovider.GitRepository, error)
	CreateJob             func(ctx context.Context, buildId string, action models.JobAction) error
	TrackTelemetryEvent   func(event telemetry.Event, clientId string) error
	LoggerFactory         logs.ILoggerFactory
}

Jump to

Keyboard shortcuts

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