Documentation ¶
Index ¶
- func NewBuildService(config BuildServiceConfig) services.IBuildService
- type BuildService
- func (s *BuildService) Create(ctx context.Context, b services.CreateBuildDTO) (string, error)
- func (s *BuildService) Delete(ctx context.Context, filter *services.BuildFilter, force bool) []error
- func (s *BuildService) Find(ctx context.Context, filter *services.BuildFilter) (*services.BuildDTO, error)
- func (s *BuildService) GetBuildLogReader(ctx context.Context, buildId string) (io.Reader, error)
- func (s *BuildService) GetBuildLogWriter(ctx context.Context, buildId string) (io.WriteCloser, error)
- func (s *BuildService) HandleSuccessfulRemoval(ctx context.Context, id string) error
- func (s *BuildService) List(ctx context.Context, filter *services.BuildFilter) ([]*services.BuildDTO, error)
- func (s *BuildService) UpdateLastJob(ctx context.Context, buildId, jobId string) error
- type BuildServiceConfig
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 (s *BuildService) Create(ctx context.Context, b services.CreateBuildDTO) (string, error)
func (*BuildService) Delete ¶
func (s *BuildService) Delete(ctx context.Context, filter *services.BuildFilter, force bool) []error
func (*BuildService) Find ¶
func (s *BuildService) Find(ctx context.Context, filter *services.BuildFilter) (*services.BuildDTO, error)
func (*BuildService) GetBuildLogReader ¶
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 }
Click to show internal directories.
Click to hide internal directories.