cache

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() auacornapi.Acorn

Types

type Impl

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

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

func (*Impl) AcornName

func (s *Impl) AcornName() string

func (*Impl) AssembleAcorn

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

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(_ context.Context) error

func (*Impl) SetupAcorn

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

func (*Impl) TeardownAcorn

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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