yumrepository

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const RepomdXMLTag = "repomdxml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	*repository.RepoHandler
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(logger *slog.Logger, repoHandler *repository.RepoHandler) *Handler

func (*Handler) CreateRepository

func (h *Handler) CreateRepository(ctx context.Context, properties *apiv1.RepositoryProperties) (err error)

func (*Handler) DeleteRepository

func (h *Handler) DeleteRepository(ctx context.Context, deletePackages bool) (err error)

func (*Handler) GetRepository

func (h *Handler) GetRepository(ctx context.Context) (properties *apiv1.RepositoryProperties, err error)

func (*Handler) GetRepositoryPackage

func (h *Handler) GetRepositoryPackage(ctx context.Context, id string) (repositoryPackage *apiv1.RepositoryPackage, err error)

func (*Handler) GetRepositoryPackageByTag added in v0.0.15

func (h *Handler) GetRepositoryPackageByTag(ctx context.Context, tag string) (repositoryPackage *apiv1.RepositoryPackage, err error)

func (*Handler) GetRepositorySyncStatus

func (h *Handler) GetRepositorySyncStatus(context.Context) (syncStatus *apiv1.SyncStatus, err error)

func (*Handler) ListRepositoryLogs

func (h *Handler) ListRepositoryLogs(ctx context.Context, _ *apiv1.Page) (logs []apiv1.RepositoryLog, err error)

func (*Handler) ListRepositoryPackages

func (h *Handler) ListRepositoryPackages(ctx context.Context, _ *apiv1.Page) (repositoryPackages []*apiv1.RepositoryPackage, err error)

func (*Handler) QueueEvent

func (h *Handler) QueueEvent(event *eventv1.EventPayload, store bool) error

func (*Handler) RemoveRepositoryPackage

func (h *Handler) RemoveRepositoryPackage(ctx context.Context, id string) (err error)

func (*Handler) RemoveRepositoryPackageByTag added in v0.0.15

func (h *Handler) RemoveRepositoryPackageByTag(ctx context.Context, tag string) (err error)

func (*Handler) Start

func (h *Handler) Start(ctx context.Context)

func (*Handler) SyncRepository

func (h *Handler) SyncRepository(_ context.Context, wait bool) (err error)

func (*Handler) SyncRepositoryWithURL added in v0.0.21

func (h *Handler) SyncRepositoryWithURL(_ context.Context, url string, wait bool) (err error)

func (*Handler) UpdateRepository

func (h *Handler) UpdateRepository(ctx context.Context, properties *apiv1.RepositoryProperties) (err error)

Jump to

Keyboard shortcuts

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