projectconfig

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProjectConfigService

type IProjectConfigService interface {
	Save(projectConfig *config.ProjectConfig) error
	Find(filter *config.ProjectConfigFilter) (*config.ProjectConfig, error)
	List(filter *config.ProjectConfigFilter) ([]*config.ProjectConfig, error)
	SetDefault(projectConfigName string) error
	Delete(projectConfigName string, force bool) []error

	SetPrebuild(projectConfigName string, createPrebuildDto dto.CreatePrebuildDTO) (*dto.PrebuildDTO, error)
	FindPrebuild(projectConfigFilter *config.ProjectConfigFilter, prebuildFilter *config.PrebuildFilter) (*dto.PrebuildDTO, error)
	ListPrebuilds(projectConfigFilter *config.ProjectConfigFilter, prebuildFilter *config.PrebuildFilter) ([]*dto.PrebuildDTO, error)
	DeletePrebuild(projectConfigName string, id string, force bool) []error

	StartRetentionPoller() error
	EnforceRetentionPolicy() error
	ProcessGitEvent(gitprovider.GitEventData) error
}

func NewProjectConfigService added in v0.26.0

func NewProjectConfigService(config ProjectConfigServiceConfig) IProjectConfigService

type ProjectConfigService

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

func (*ProjectConfigService) Delete

func (s *ProjectConfigService) Delete(projectConfigName string, force bool) []error

func (*ProjectConfigService) DeletePrebuild added in v0.26.0

func (s *ProjectConfigService) DeletePrebuild(projectConfigName string, id string, force bool) []error

func (*ProjectConfigService) EnforceRetentionPolicy added in v0.26.0

func (s *ProjectConfigService) EnforceRetentionPolicy() error

Marks the [retention] oldest published builds for deletion for each prebuild

func (*ProjectConfigService) Find

func (*ProjectConfigService) FindPrebuild added in v0.26.0

func (s *ProjectConfigService) FindPrebuild(projectConfigFilter *config.ProjectConfigFilter, prebuildFilter *config.PrebuildFilter) (*dto.PrebuildDTO, error)

func (*ProjectConfigService) List

func (*ProjectConfigService) ListPrebuilds added in v0.26.0

func (s *ProjectConfigService) ListPrebuilds(projectConfigFilter *config.ProjectConfigFilter, prebuildFilter *config.PrebuildFilter) ([]*dto.PrebuildDTO, error)

func (*ProjectConfigService) ProcessGitEvent added in v0.26.0

func (s *ProjectConfigService) ProcessGitEvent(data gitprovider.GitEventData) error

func (*ProjectConfigService) Save

func (s *ProjectConfigService) Save(projectConfig *config.ProjectConfig) error

func (*ProjectConfigService) SetDefault

func (s *ProjectConfigService) SetDefault(projectConfigName string) error

func (*ProjectConfigService) SetPrebuild added in v0.26.0

func (s *ProjectConfigService) SetPrebuild(projectConfigName string, createPrebuildDto dto.CreatePrebuildDTO) (*dto.PrebuildDTO, error)

func (*ProjectConfigService) StartRetentionPoller added in v0.26.0

func (s *ProjectConfigService) StartRetentionPoller() error

type ProjectConfigServiceConfig

type ProjectConfigServiceConfig struct {
	PrebuildWebhookEndpoint string
	ConfigStore             config.Store
	BuildService            builds.IBuildService
	GitProviderService      gitproviders.IGitProviderService
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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