mod_storage_hdl

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 16 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(workspacePath string, modFileHandler handler.ModFileHandler) *Handler

func (*Handler) Add

func (h *Handler) Add(_ context.Context, mod model.Module, modDir dir_fs.DirFS, modFile string) error

func (*Handler) Delete

func (h *Handler) Delete(_ context.Context, mID string) error

func (*Handler) Get

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

func (*Handler) GetDir

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

func (*Handler) Init

func (h *Handler) Init(perm fs.FileMode) error

func (*Handler) List

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

func (*Handler) Update

func (h *Handler) Update(_ context.Context, mod model.Module, modDir dir_fs.DirFS, modFile string) error

Jump to

Keyboard shortcuts

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