pluginmanager

package
v0.0.0-...-952bb8a Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Copyright 2022 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Copyright 2022 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoPluginManager

type GoPluginManager struct {
	Config        config.Store
	DispatchTable map[string]*scheme.SchemeGoPlugin
}

func New

func New(cfg config.Store) *GoPluginManager

func (*GoPluginManager) Close

func (o *GoPluginManager) Close() error

func (*GoPluginManager) Init

func (o *GoPluginManager) Init() error

variables read from the config store:

  • "go-plugin.folder"

func (*GoPluginManager) LookupByAttestationFormat

func (o *GoPluginManager) LookupByAttestationFormat(format proto.AttestationFormat) (scheme.IScheme, error)

func (*GoPluginManager) LookupByMediaType

func (o *GoPluginManager) LookupByMediaType(mediaType string) (scheme.IScheme, error)

GetPlugin returns the handle of the IScheme implementation

func (*GoPluginManager) SupportedVerificationMediaTypes

func (o *GoPluginManager) SupportedVerificationMediaTypes() ([]string, error)

type ISchemePluginManager

type ISchemePluginManager interface {
	Init() error
	Close() error

	LookupByMediaType(mediaType string) (scheme.IScheme, error)
	LookupByAttestationFormat(format proto.AttestationFormat) (scheme.IScheme, error)
	SupportedVerificationMediaTypes() ([]string, error)
}

Jump to

Keyboard shortcuts

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