mapper

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeStampFormat = "2006-01-02T15:04:05Z"

Functions

func DeleteT

func DeleteT[T PatchDtos](ctx context.Context, s *Impl, resultPtr *T, fullPath string, description string, jiraIssue string) error

func GetT

func GetT[T Dtos](_ context.Context, s *Impl, resultPtr *T, fullPath string) error

func Move

func Move(ctx context.Context, s *Impl, v interface{}, oldFullPath string, newPath string, newFileNameNoPath string) error

func New

func New() auacornapi.Acorn

func SetCommitHash

func SetCommitHash(dto interface{}, commitHash string)

func SetJiraIssue

func SetJiraIssue(dto interface{}, commitMessage string)

func SetTimeStamp

func SetTimeStamp(dto interface{}, rawTimeStamp time.Time)

func WriteT

func WriteT[T Dtos](ctx context.Context, s *Impl, resultPtr *T, path string, fileNameNoPath string, description string, jiraIssue string) error

Types

type Dtos

type Dtos interface {
	openapi.OwnerDto | openapi.ServiceDto | openapi.RepositoryDto
}

type Impl

type Impl struct {
	Configuration       librepo.Configuration
	CustomConfiguration config.CustomConfiguration
	Logging             librepo.Logging
	Metadata            repository.Metadata

	Now func() time.Time
	// contains filtered or unexported fields
}

func (*Impl) AcornName

func (s *Impl) AcornName() string

func (*Impl) AssembleAcorn

func (s *Impl) AssembleAcorn(registry auacornapi.AcornRegistry) error

func (*Impl) ContainsNewInformation

func (s *Impl) ContainsNewInformation(_ context.Context, event repository.UpdateEvent) bool

func (*Impl) DeleteOwner

func (s *Impl) DeleteOwner(ctx context.Context, ownerAlias string, jiraIssue string) (openapi.OwnerPatchDto, error)

func (*Impl) DeleteRepository

func (s *Impl) DeleteRepository(ctx context.Context, repoKey string, jiraIssue string) (openapi.RepositoryPatchDto, error)

func (*Impl) DeleteService

func (s *Impl) DeleteService(ctx context.Context, serviceName string, jiraIssue string) (openapi.ServicePatchDto, error)

func (*Impl) GetOwner

func (s *Impl) GetOwner(ctx context.Context, ownerAlias string) (openapi.OwnerDto, error)

func (*Impl) GetRepository

func (s *Impl) GetRepository(ctx context.Context, repoKey string) (openapi.RepositoryDto, error)

func (*Impl) GetService

func (s *Impl) GetService(ctx context.Context, serviceName string) (openapi.ServiceDto, error)

func (*Impl) GetSortedOwnerAliases

func (s *Impl) GetSortedOwnerAliases(_ context.Context) ([]string, error)

func (*Impl) GetSortedRepositoryKeys

func (s *Impl) GetSortedRepositoryKeys(ctx context.Context) ([]string, error)

func (*Impl) GetSortedServiceNames

func (s *Impl) GetSortedServiceNames(ctx context.Context) ([]string, error)

func (*Impl) IsMapper

func (s *Impl) IsMapper() bool

func (*Impl) IsOwnerEmpty

func (s *Impl) IsOwnerEmpty(_ context.Context, ownerAlias string) bool

func (*Impl) RefreshMetadata

func (s *Impl) RefreshMetadata(ctx context.Context) ([]repository.UpdateEvent, error)

func (*Impl) Setup

func (s *Impl) Setup(_ context.Context) error

func (*Impl) SetupAcorn

func (s *Impl) SetupAcorn(registry auacornapi.AcornRegistry) error

func (*Impl) TeardownAcorn

func (s *Impl) TeardownAcorn(_ auacornapi.AcornRegistry) error

func (*Impl) WriteOwner

func (s *Impl) WriteOwner(ctx context.Context, ownerAlias string, owner openapi.OwnerDto) (openapi.OwnerDto, error)

func (*Impl) WriteRepository

func (s *Impl) WriteRepository(ctx context.Context, repoKey string, repository openapi.RepositoryDto) (openapi.RepositoryDto, error)

func (*Impl) WriteRepositoryWithChangedOwner

func (s *Impl) WriteRepositoryWithChangedOwner(ctx context.Context, repoKey string, repository openapi.RepositoryDto) (openapi.RepositoryDto, error)

func (*Impl) WriteService

func (s *Impl) WriteService(ctx context.Context, serviceName string, service openapi.ServiceDto) (openapi.ServiceDto, error)

func (*Impl) WriteServiceWithChangedOwner

func (s *Impl) WriteServiceWithChangedOwner(ctx context.Context, serviceName string, service openapi.ServiceDto) (openapi.ServiceDto, error)

Jump to

Keyboard shortcuts

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