cache

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	configuration librepo.Configuration,
	logging librepo.Logging,
	timestamp librepo.Timestamp,
) service.Cache

Types

type Impl

type Impl struct {
	Configuration librepo.Configuration
	Logging       librepo.Logging
	Timestamp     librepo.Timestamp

	OwnerCache      cacheable.Cacheable
	ServiceCache    cacheable.Cacheable
	RepositoryCache cacheable.Cacheable
}

func (*Impl) DeleteOwner

func (s *Impl) DeleteOwner(_ context.Context, alias string)

func (*Impl) DeleteRepository

func (s *Impl) DeleteRepository(_ context.Context, key string)

func (*Impl) DeleteService

func (s *Impl) DeleteService(_ context.Context, name string)

func (*Impl) GetOwner

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

func (*Impl) GetOwnerListTimestamp

func (s *Impl) GetOwnerListTimestamp(_ context.Context) string

func (*Impl) GetRepository

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

func (*Impl) GetRepositoryListTimestamp

func (s *Impl) GetRepositoryListTimestamp(_ context.Context) string

func (*Impl) GetService

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

func (*Impl) GetServiceListTimestamp

func (s *Impl) GetServiceListTimestamp(_ context.Context) string

func (*Impl) GetSortedOwnerAliases

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

func (*Impl) GetSortedRepositoryKeys

func (s *Impl) GetSortedRepositoryKeys(_ context.Context) []string

func (*Impl) GetSortedServiceNames

func (s *Impl) GetSortedServiceNames(_ context.Context) []string

func (*Impl) IsCache

func (s *Impl) IsCache() bool

func (*Impl) PutOwner

func (s *Impl) PutOwner(_ context.Context, alias string, entry openapi.OwnerDto)

func (*Impl) PutRepository

func (s *Impl) PutRepository(_ context.Context, key string, entry openapi.RepositoryDto)

func (*Impl) PutService

func (s *Impl) PutService(_ context.Context, name string, entry openapi.ServiceDto)

func (*Impl) SetOwnerListTimestamp

func (s *Impl) SetOwnerListTimestamp(_ context.Context, timestamp string)

func (*Impl) SetRepositoryListTimestamp

func (s *Impl) SetRepositoryListTimestamp(_ context.Context, timestamp string)

func (*Impl) SetServiceListTimestamp

func (s *Impl) SetServiceListTimestamp(_ context.Context, timestamp string)

func (*Impl) Setup

func (s *Impl) Setup() error

func (*Impl) SetupCache added in v0.33.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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