plugin

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package plugin maps a Go plugin interface to a technical command line interface. Thereby, it allows to embed plugins and their provided functionality into the library. It is the basis for adapter implementations for accessmethods, downloaders, uploaders and blob handlers. Those adapters can be found in the subpackage "plugin" of their dedicated functional area packages (e.g. pkg/contexts/ocm/accessmethods/plugin).

Index

Constants

View Source
const (
	KIND_PLUGIN       = descriptor.KIND_PLUGIN
	KIND_UPLOADER     = descriptor.KIND_UPLOADER
	KIND_ACCESSMETHOD = descriptor.KIND_ACCESSMETHOD
	KIND_ACTION       = descriptor.KIND_ACTION
)

Variables

Functions

This section is empty.

Types

type AccessDataWriter

type AccessDataWriter struct {
	// contains filtered or unexported fields
}

func NewAccessDataWriter

func NewAccessDataWriter(p Plugin, creds, accspec json.RawMessage) *AccessDataWriter

func (*AccessDataWriter) WriteTo

func (d *AccessDataWriter) WriteTo(w accessio.Writer) (int64, digest.Digest, error)

type AccessMethodDescriptor

type AccessMethodDescriptor = descriptor.AccessMethodDescriptor

type AccessSpecInfo

type AccessSpecInfo = internal.AccessSpecInfo

type ActionDescriptor

type ActionDescriptor = descriptor.ActionDescriptor

type Descriptor

type Descriptor = descriptor.Descriptor

type DownloaderDescriptor

type DownloaderDescriptor = descriptor.DownloaderDescriptor

type DownloaderKey

type DownloaderKey = descriptor.DownloaderKey

type Plugin

type Plugin = *pluginImpl

func NewPlugin

func NewPlugin(ctx ocm.Context, impl cache.Plugin, config json.RawMessage) Plugin

type UploadTargetSpecInfo

type UploadTargetSpecInfo = internal.UploadTargetSpecInfo

type UploaderDescriptor

type UploaderDescriptor = descriptor.UploaderDescriptor

type UploaderKey

type UploaderKey = descriptor.UploaderKey

type UploaderKeySet

type UploaderKeySet = descriptor.UploaderKeySet

Directories

Path Synopsis
Package cache implements the plugin cache that contains all loaded plugins.
Package cache implements the plugin cache that contains all loaded plugins.
Package descriptor declares several structs that describe the information that formally describes the capabilities provided by each plugin.
Package descriptor declares several structs that describe the information that formally describes the capabilities provided by each plugin.
ppi
Package ppi provides the plugin programming interface.
Package ppi provides the plugin programming interface.

Jump to

Keyboard shortcuts

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