mod_update_hdl

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 8 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(transferHandler handler.ModTransferHandler, modFileHandler handler.ModFileHandler) *Handler

func (*Handler) CancelPending

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

func (*Handler) Check

func (h *Handler) Check(ctx context.Context, modules map[string]*module.Module) error

func (*Handler) Get

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

func (*Handler) GetPending

func (h *Handler) GetPending(_ context.Context, mID string) (handler.Stage, map[string]struct{}, map[string]struct{}, map[string]struct{}, error)

func (*Handler) List

func (h *Handler) List(_ context.Context) (updates map[string]model.ModUpdate)

func (*Handler) Prepare

func (h *Handler) Prepare(ctx context.Context, modules map[string]*module.Module, stage handler.Stage, mID string) error

func (*Handler) Remove

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

Jump to

Keyboard shortcuts

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