mod_hdl

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 13 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 {
	// contains filtered or unexported fields
}

func New

func New(storageHandler handler.ModStorageHandler, cewClient client.CewClient, httpTimeout time.Duration) *Handler

func (*Handler) Add

func (h *Handler) Add(ctx context.Context, mod *module.Module, modDir dir_fs.DirFS, modFile string, indirect bool) error

func (*Handler) Delete

func (h *Handler) Delete(ctx context.Context, mID string, force bool) error

func (*Handler) Get

func (h *Handler) Get(ctx context.Context, mID string) (model.Module, error)

func (*Handler) GetDir added in v0.3.0

func (h *Handler) GetDir(ctx context.Context, mID string) (dir_fs.DirFS, error)

func (*Handler) GetReq

func (h *Handler) GetReq(ctx context.Context, mID string) (model.Module, map[string]model.Module, error)

func (*Handler) List

func (h *Handler) List(ctx context.Context, filter model.ModFilter) ([]model.Module, error)

func (*Handler) Update

func (h *Handler) Update(ctx context.Context, mod *module.Module, modDir dir_fs.DirFS, modFile string, indirect bool) error

Jump to

Keyboard shortcuts

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