staticrepository

package
v0.0.38 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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) DeleteRepository

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

func (*Handler) GetRepositoryFileByName

func (h *Handler) GetRepositoryFileByName(ctx context.Context, name string) (repositoryFile *apiv1.RepositoryFile, err error)

func (*Handler) GetRepositoryFileByTag

func (h *Handler) GetRepositoryFileByTag(ctx context.Context, tag string) (repositoryFile *apiv1.RepositoryFile, err error)

func (*Handler) ListRepositoryFiles

func (h *Handler) ListRepositoryFiles(ctx context.Context, _ *apiv1.Page) (repositoryFiles []*apiv1.RepositoryFile, err error)

func (*Handler) ListRepositoryLogs

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

func (*Handler) QueueEvent

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

func (*Handler) RemoveRepositoryFile

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

func (*Handler) Start

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

Jump to

Keyboard shortcuts

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