Documentation ¶
Index ¶
- func New(configuration librepo.Configuration, customConfig config.CustomConfiguration, ...) repository.Cache
- type Impl
- func (s *Impl) DeleteOwner(ctx context.Context, alias string) error
- func (s *Impl) DeleteRepository(ctx context.Context, key string) error
- func (s *Impl) DeleteService(ctx context.Context, name string) error
- func (s *Impl) GetOwner(ctx context.Context, alias string) (openapi.OwnerDto, error)
- func (s *Impl) GetOwnerListTimestamp(ctx context.Context) (string, error)
- func (s *Impl) GetRepository(ctx context.Context, key string) (openapi.RepositoryDto, error)
- func (s *Impl) GetRepositoryListTimestamp(ctx context.Context) (string, error)
- func (s *Impl) GetService(ctx context.Context, name string) (openapi.ServiceDto, error)
- func (s *Impl) GetServiceListTimestamp(ctx context.Context) (string, error)
- func (s *Impl) GetSortedOwnerAliases(ctx 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) IsCache() bool
- func (s *Impl) PutOwner(ctx context.Context, alias string, entry openapi.OwnerDto) error
- func (s *Impl) PutRepository(ctx context.Context, key string, entry openapi.RepositoryDto) error
- func (s *Impl) PutService(ctx context.Context, name string, entry openapi.ServiceDto) error
- func (s *Impl) SetOwnerListTimestamp(ctx context.Context, timestamp string) error
- func (s *Impl) SetRepositoryListTimestamp(ctx context.Context, timestamp string) error
- func (s *Impl) SetServiceListTimestamp(ctx context.Context, timestamp string) error
- func (s *Impl) Setup() error
- func (s *Impl) SetupCache(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( configuration librepo.Configuration, customConfig config.CustomConfiguration, logging librepo.Logging, timestamp librepo.Timestamp, ) repository.Cache
Types ¶
type Impl ¶
type Impl struct { Configuration librepo.Configuration CustomConfiguration config.CustomConfiguration Logging librepo.Logging Timestamp librepo.Timestamp OwnerCache libcache.Cache[openapi.OwnerDto] ServiceCache libcache.Cache[openapi.ServiceDto] RepositoryCache libcache.Cache[openapi.RepositoryDto] TimestampCache libcache.Cache[string] }
func (*Impl) DeleteRepository ¶
func (*Impl) GetOwnerListTimestamp ¶
func (*Impl) GetRepository ¶
func (*Impl) GetRepositoryListTimestamp ¶
func (*Impl) GetService ¶
func (*Impl) GetServiceListTimestamp ¶
func (*Impl) GetSortedOwnerAliases ¶
func (*Impl) GetSortedRepositoryKeys ¶
func (*Impl) GetSortedServiceNames ¶
func (*Impl) PutRepository ¶
func (*Impl) PutService ¶
func (*Impl) SetOwnerListTimestamp ¶
func (*Impl) SetRepositoryListTimestamp ¶
func (*Impl) SetServiceListTimestamp ¶
Click to show internal directories.
Click to hide internal directories.