fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/bccsp/factory/plugin Index | Files

package plugin

import "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/bccsp/factory/plugin"

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

Notice: This file has been modified for Hyperledger Fabric SDK Go usage. Please review third_party pinning scripts and patches for more details.


Package Files



const (
    // PluginFactoryName is the factory name for BCCSP plugins
    PluginFactoryName = "PLUGIN"

type PluginFactory Uses

type PluginFactory struct{}

PluginFactory is the factory for BCCSP plugins

func (*PluginFactory) Get Uses

func (f *PluginFactory) Get(pluginOpts *PluginOpts) (bccsp.BCCSP, error)

Get returns an instance of BCCSP using Opts.

func (*PluginFactory) Name Uses

func (f *PluginFactory) Name() string

Name returns the name of this factory

type PluginOpts Uses

type PluginOpts struct {
    // Path to plugin library
    Library string
    // Config map for the plugin library
    Config map[string]interface{}

PluginOpts contains the options for the PluginFactory

Package plugin imports 5 packages (graph). Updated 2019-08-15. Refresh now. Tools for package owners.