builds

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildService

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

func (*BuildService) AwaitEmptyList

func (s *BuildService) AwaitEmptyList(waitTime time.Duration) error

func (*BuildService) Create

func (s *BuildService) Create(b dto.BuildCreationData) (string, error)

func (*BuildService) Delete

func (s *BuildService) Delete(id string) error

func (*BuildService) Find

func (s *BuildService) Find(filter *build.Filter) (*build.Build, error)

func (*BuildService) GetBuildLogReader

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

func (*BuildService) List

func (s *BuildService) List(filter *build.Filter) ([]*build.Build, error)

func (*BuildService) MarkForDeletion

func (s *BuildService) MarkForDeletion(filter *build.Filter, force bool) []error

type BuildServiceConfig

type BuildServiceConfig struct {
	BuildStore    build.Store
	LoggerFactory logs.LoggerFactory
}

type IBuildService

type IBuildService interface {
	Create(dto.BuildCreationData) (string, error)
	Find(filter *build.Filter) (*build.Build, error)
	List(filter *build.Filter) ([]*build.Build, error)
	MarkForDeletion(filter *build.Filter, force bool) []error
	Delete(id string) error
	AwaitEmptyList(time.Duration) error
	GetBuildLogReader(buildId string) (io.Reader, error)
}

func NewBuildService

func NewBuildService(config BuildServiceConfig) IBuildService

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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