Documentation ¶
Index ¶
- type IProjectConfigService
- type ProjectConfigService
- func (s *ProjectConfigService) Delete(projectConfigName string, force bool) []error
- func (s *ProjectConfigService) DeletePrebuild(projectConfigName string, id string, force bool) []error
- func (s *ProjectConfigService) EnforceRetentionPolicy() error
- func (s *ProjectConfigService) Find(filter *config.ProjectConfigFilter) (*config.ProjectConfig, error)
- func (s *ProjectConfigService) FindPrebuild(projectConfigFilter *config.ProjectConfigFilter, ...) (*dto.PrebuildDTO, error)
- func (s *ProjectConfigService) List(filter *config.ProjectConfigFilter) ([]*config.ProjectConfig, error)
- func (s *ProjectConfigService) ListPrebuilds(projectConfigFilter *config.ProjectConfigFilter, ...) ([]*dto.PrebuildDTO, error)
- func (s *ProjectConfigService) ProcessGitEvent(data gitprovider.GitEventData) error
- func (s *ProjectConfigService) Save(projectConfig *config.ProjectConfig) error
- func (s *ProjectConfigService) SetDefault(projectConfigName string) error
- func (s *ProjectConfigService) SetPrebuild(projectConfigName string, createPrebuildDto dto.CreatePrebuildDTO) (*dto.PrebuildDTO, error)
- func (s *ProjectConfigService) StartRetentionPoller() error
- type ProjectConfigServiceConfig
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 (s *ProjectConfigService) Find(filter *config.ProjectConfigFilter) (*config.ProjectConfig, error)
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 (s *ProjectConfigService) List(filter *config.ProjectConfigFilter) ([]*config.ProjectConfig, error)
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 }
Click to show internal directories.
Click to hide internal directories.