service

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataService

type DataService struct {
	Registry registryInterface
	Storage  engine.Interface
	// contains filtered or unexported fields
}

DataService is service which allow manipulation entries of registry such repositories or tags

func (*DataService) RepositoriesMaintenance

func (ds *DataService) RepositoriesMaintenance(ctx context.Context, timeout int64)

RepositoriesMaintenance check repositories for outdated or updated data in repository storage with 'lastSyncDate' value. Timestamp field update at every sync call in repository storage and compare with 'lastSyncDate' variable. If values above is different garbage collector will remove all outdated entries

func (*DataService) RepositoryEventsProcessing

func (ds *DataService) RepositoryEventsProcessing(ctx context.Context, envelope notifications.Envelope) (err error)

RepositoryEventsProcessing used for processing notification events from registry service

func (*DataService) SyncExistedRepositories

func (ds *DataService) SyncExistedRepositories(ctx context.Context) error

SyncExistedRepositories will check existed entries at a registry service and synchronize it

Jump to

Keyboard shortcuts

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