updater

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TotalErrorCounterName    = "updater_error_count"
	MetadataErrorCounterName = "updater_error_metadata_count"
	OwnerErrorCounterName    = "updater_error_owner_count"
	ServiceErrorCounterName  = "updater_error_service_count"
	RepoErrorCounterName     = "updater_error_repo_count"
)
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,
	kafka repository.Kafka,
	notifier repository.Notifier,
	mapper service.Mapper,
	cache repository.Cache,
) service.Updater

Types

type Impl

type Impl struct {
	Configuration       librepo.Configuration
	CustomConfiguration config.CustomConfiguration
	Logging             librepo.Logging
	Timestamp           librepo.Timestamp
	Kafka               repository.Kafka
	Notifier            repository.Notifier
	Mapper              service.Mapper
	Cache               repository.Cache
	// contains filtered or unexported fields
}

func (*Impl) CanDeleteOwner

func (s *Impl) CanDeleteOwner(ctx context.Context, ownerAlias string) bool

func (*Impl) CanMoveOrDeleteRepository

func (s *Impl) CanMoveOrDeleteRepository(ctx context.Context, key string) (bool, error)

func (*Impl) DeleteOwner

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

func (*Impl) DeleteRepository

func (s *Impl) DeleteRepository(ctx context.Context, key string, deletionInfo openapi.DeletionDto) error

func (*Impl) DeleteService

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

func (*Impl) IsUpdater

func (s *Impl) IsUpdater() bool

func (*Impl) PerformFullUpdate

func (s *Impl) PerformFullUpdate(ctx context.Context) error

func (*Impl) PerformFullUpdateWithNotifications

func (s *Impl) PerformFullUpdateWithNotifications(ctx context.Context) error

func (*Impl) RefreshRepository

func (s *Impl) RefreshRepository(ctx context.Context, key string) error

func (*Impl) RefreshService

func (s *Impl) RefreshService(ctx context.Context, serviceName string) error

func (*Impl) Setup

func (s *Impl) Setup() error

func (*Impl) SetupUpdater added in v0.33.0

func (s *Impl) SetupUpdater(ctx context.Context) error

func (*Impl) StartReceivingEvents

func (s *Impl) StartReceivingEvents(ctx context.Context) error

func (*Impl) WithMetadataLock

func (s *Impl) WithMetadataLock(ctx context.Context, closure func(context.Context) error) 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, key 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)

Jump to

Keyboard shortcuts

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