Documentation
¶
Index ¶
- Variables
- func DeleteT[T PatchDtos](ctx context.Context, s *Impl, resultPtr *T, fullPath string, ...) error
- func GetT[T Dtos](_ context.Context, s *Impl, resultPtr *T, fullPath string) error
- func Move(ctx context.Context, s *Impl, v interface{}, oldFullPath string, ...) error
- func New(configuration librepo.Configuration, customConfig config.CustomConfiguration, ...) service.Mapper
- func SetCommitHash(dto interface{}, commitHash string)
- func SetJiraIssue(dto interface{}, commitMessage string)
- func SetTimeStamp(dto interface{}, rawTimeStamp time.Time)
- func Unique[T comparable](sliceList []T) []T
- func WriteT[T Dtos](ctx context.Context, s *Impl, resultPtr *T, path string, fileNameNoPath string, ...) error
- type Dtos
- type Impl
- func (s *Impl) ContainsNewInformation(_ context.Context, event repository.UpdateEvent) bool
- func (s *Impl) DeleteOwner(ctx context.Context, ownerAlias string, jiraIssue string) (openapi.OwnerPatchDto, error)
- func (s *Impl) DeleteRepository(ctx context.Context, repoKey string, jiraIssue string) (openapi.RepositoryPatchDto, error)
- func (s *Impl) DeleteService(ctx context.Context, serviceName string, jiraIssue string) (openapi.ServicePatchDto, error)
- func (s *Impl) GetOwner(ctx context.Context, ownerAlias string) (openapi.OwnerDto, error)
- func (s *Impl) GetRepository(ctx context.Context, repoKey string) (openapi.RepositoryDto, error)
- func (s *Impl) GetService(ctx context.Context, serviceName string) (openapi.ServiceDto, error)
- func (s *Impl) GetSortedOwnerAliases(_ context.Context) ([]string, error)
- func (s *Impl) GetSortedRepositoryKeys(ctx context.Context) ([]string, error)
- func (s *Impl) GetSortedServiceNames(ctx context.Context) ([]string, error)
- func (s *Impl) IsMapper() bool
- func (s *Impl) IsOwnerEmpty(_ context.Context, ownerAlias string) bool
- func (s *Impl) RefreshMetadata(ctx context.Context) ([]repository.UpdateEvent, error)
- func (s *Impl) Setup() error
- func (s *Impl) SetupMapper(_ context.Context) error
- func (s *Impl) WriteOwner(ctx context.Context, ownerAlias string, owner openapi.OwnerDto) (openapi.OwnerDto, error)
- func (s *Impl) WriteRepository(ctx context.Context, repoKey string, repository openapi.RepositoryDto) (openapi.RepositoryDto, error)
- func (s *Impl) WriteRepositoryWithChangedOwner(ctx context.Context, repoKey string, repository openapi.RepositoryDto) (openapi.RepositoryDto, error)
- func (s *Impl) WriteService(ctx context.Context, serviceName string, service openapi.ServiceDto) (openapi.ServiceDto, error)
- func (s *Impl) WriteServiceWithChangedOwner(ctx context.Context, serviceName string, service openapi.ServiceDto) (openapi.ServiceDto, error)
- type PatchDtos
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeStampFormat = "2006-01-02T15:04:05Z"
Functions ¶
func New ¶
func New( configuration librepo.Configuration, customConfig config.CustomConfiguration, logging librepo.Logging, timestamp librepo.Timestamp, metadata repository.Metadata, vcsPlatforms map[string]vcswebhookshandler.VCSPlatform) service.Mapper
func SetCommitHash ¶
func SetCommitHash(dto interface{}, commitHash string)
func SetJiraIssue ¶
func SetJiraIssue(dto interface{}, commitMessage string)
func SetTimeStamp ¶
func Unique ¶ added in v0.39.0
func Unique[T comparable](sliceList []T) []T
Types ¶
type Impl ¶
type Impl struct { Configuration librepo.Configuration CustomConfiguration config.CustomConfiguration Logging librepo.Logging Metadata repository.Metadata VcsPlatforms map[string]vcswebhookshandler.VCSPlatform Timestamp librepo.Timestamp // contains filtered or unexported fields }
func (*Impl) ContainsNewInformation ¶
func (s *Impl) ContainsNewInformation(_ context.Context, event repository.UpdateEvent) bool
func (*Impl) DeleteOwner ¶
func (*Impl) DeleteRepository ¶
func (*Impl) DeleteService ¶
func (*Impl) GetRepository ¶
func (*Impl) GetService ¶
func (*Impl) GetSortedOwnerAliases ¶
func (*Impl) GetSortedRepositoryKeys ¶
func (*Impl) GetSortedServiceNames ¶
func (*Impl) RefreshMetadata ¶
func (s *Impl) RefreshMetadata(ctx context.Context) ([]repository.UpdateEvent, error)
func (*Impl) WriteOwner ¶
func (*Impl) WriteRepository ¶
func (*Impl) WriteRepositoryWithChangedOwner ¶
func (*Impl) WriteService ¶
Click to show internal directories.
Click to hide internal directories.