registration

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TAG = logging.NewTag("plugins")

Functions

func RegisterBlobHandlerByName

func RegisterBlobHandlerByName(ctx internal.Context, name string, config BlobHandlerConfig, opts ...BlobHandlerOption) error

func RegisterDownloadHandler

func RegisterDownloadHandler(ctx internal.Context, hdlr download.Handler, olist ...BlobHandlerOption) error

func RegisterExtensions

func RegisterExtensions(ctx ocm.Context) error

RegisterExtensions registers all the extension provided the found plugin at the given context. If no context is given, the cache context is used.

Types

type BlobHandlerConfig

type BlobHandlerConfig = internal.BlobHandlerConfig

type BlobHandlerOption

type BlobHandlerOption = internal.BlobHandlerOption

func ForArtifactType

func ForArtifactType(t string) BlobHandlerOption

func ForMimeType

func ForMimeType(t string) BlobHandlerOption

func WithPrio

func WithPrio(prio int) BlobHandlerOption

type BlobHandlerOptions

type BlobHandlerOptions = internal.BlobHandlerOptions

Jump to

Keyboard shortcuts

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