...

Package pluggable

import "github.com/hyperledger/fabric/integration/pluggable"
Overview
Index

Overview ▾

Constants

const (
    EndorsementPluginEnvVar = "ENDORSEMENT_PLUGIN_ENV_VAR"
    ValidationPluginEnvVar  = "VALIDATION_PLUGIN_ENV_VAR"
)

func CountEndorsementPluginActivations

func CountEndorsementPluginActivations() int

CountEndorsementPluginActivations returns the number of peers that activated the endorsement plugin

func CountValidationPluginActivations

func CountValidationPluginActivations() int

CountValidationPluginActivations returns the number of peers that activated the validation plugin

func EndorsementPluginActivationFolder

func EndorsementPluginActivationFolder() string

EndorsementPluginActivationFolder returns the name of the folder that if the file of the peer's id in it exists - it indicates that the endorsement plugin was activated for that peer

func PublishEndorsementPluginActivation

func PublishEndorsementPluginActivation()

PublishEndorsementPluginActivation makes it known that the endorsement plugin was activated for the peer that is invoking this function

func PublishValidationPluginActivation

func PublishValidationPluginActivation()

PublishValidationPluginActivation makes it known that the validation plugin was activated for the peer that is invoking this function

func SetEndorsementPluginActivationFolder

func SetEndorsementPluginActivationFolder(path string)

SetEndorsementPluginActivationFolder sets the name of the folder that if the file of the peer's id in it exists - it indicates that the endorsement plugin was activated for that peer

func SetValidationPluginActivationFolder

func SetValidationPluginActivationFolder(path string)

SetValidationPluginActivationFolder sets the name of the folder that if the file of the peer's id in it exists - it indicates that the validation plugin was activated for that peer

func ValidationPluginActivationFolder

func ValidationPluginActivationFolder() string

ValidationPluginActivationFilePath returns the name of the folder that if the file of the peer's id in it exists - it indicates that the validation plugin was activated for that peer