Documentation ¶
Index ¶
- Constants
- type Handler
- func (h *Handler) CreateRepository(ctx context.Context, properties *apiv1.RepositoryProperties) (err error)
- func (h *Handler) DeleteRepository(_ context.Context) (err error)
- func (h *Handler) GetRepository(ctx context.Context) (properties *apiv1.RepositoryProperties, err error)
- func (h *Handler) GetRepositoryPackage(ctx context.Context, id string) (repositoryPackage *apiv1.RepositoryPackage, err error)
- func (h *Handler) GetRepositorySyncStatus(context.Context) (syncStatus *apiv1.SyncStatus, err error)
- func (h *Handler) ListRepositoryLogs(ctx context.Context, _ *apiv1.Page) (logs []apiv1.RepositoryLog, err error)
- func (h *Handler) ListRepositoryPackages(ctx context.Context, _ *apiv1.Page) (repositoryPackages []*apiv1.RepositoryPackage, err error)
- func (h *Handler) QueueEvent(event *eventv1.EventPayload, store bool) error
- func (h *Handler) RemoveRepositoryPackage(_ context.Context, _ string) (err error)
- func (h *Handler) Started() bool
- func (h *Handler) Stop()
- func (h *Handler) SyncRepository(context.Context) (err error)
- func (h *Handler) UpdateRepository(ctx context.Context, properties *apiv1.RepositoryProperties) (err error)
- type HandlerParams
Constants ¶
View Source
const RepomdXMLTag = "repomdxml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(logger *slog.Logger, repository string, params *HandlerParams) *Handler
func (*Handler) CreateRepository ¶
func (*Handler) DeleteRepository ¶
func (*Handler) GetRepository ¶
func (*Handler) GetRepositoryPackage ¶
func (*Handler) GetRepositorySyncStatus ¶
func (*Handler) ListRepositoryLogs ¶
func (*Handler) ListRepositoryPackages ¶
func (*Handler) QueueEvent ¶
func (h *Handler) QueueEvent(event *eventv1.EventPayload, store bool) error
func (*Handler) RemoveRepositoryPackage ¶
func (*Handler) UpdateRepository ¶
Click to show internal directories.
Click to hide internal directories.