plugin

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(p plugin.Plugin, name string, config []byte) (download.Handler, error)

func RegisterDownloadHandler

func RegisterDownloadHandler(ctx cpi.Context, pname, name string, config []byte, olist ...download.HandlerOption) error

func ValidateConfig added in v0.3.0

func ValidateConfig(schemadata, configdata []byte) error

Types

type Config added in v0.3.0

type Config = json.RawMessage

type RegistrationHandler added in v0.3.0

type RegistrationHandler struct{}

func (*RegistrationHandler) GetHandlers added in v0.3.0

func (*RegistrationHandler) RegisterByName added in v0.3.0

func (r *RegistrationHandler) RegisterByName(handler string, ctx cpi.Context, config download.HandlerConfig, olist ...download.HandlerOption) (bool, error)

Jump to

Keyboard shortcuts

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