repositories

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

Documentation

Index

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,
	cache repository.Cache,
	updater service.Updater,
	owners service.Owners,
) service.Repositories

Types

type Impl

type Impl struct {
	Configuration       librepo.Configuration
	CustomConfiguration config.CustomConfiguration
	Logging             librepo.Logging
	Timestamp           librepo.Timestamp
	Cache               repository.Cache
	Updater             service.Updater
	Owners              service.Owners
}

func (*Impl) CreateRepository

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

func (*Impl) DeleteRepository

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

func (*Impl) GetRepositories

func (s *Impl) GetRepositories(ctx context.Context,
	ownerAliasFilter string, serviceNameFilter string,
	nameFilter string, typeFilter string,
) (openapi.RepositoryListDto, error)

func (*Impl) GetRepository

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

func (*Impl) IsRepositories

func (s *Impl) IsRepositories() bool

func (*Impl) PatchRepository

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

func (*Impl) Setup added in v0.33.0

func (s *Impl) Setup() error

func (*Impl) UpdateRepository

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

func (*Impl) ValidRepositoryKey added in v0.19.1

func (s *Impl) ValidRepositoryKey(ctx context.Context, key string) apierrors.AnnotatedError

Jump to

Keyboard shortcuts

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