valinforetriever

package
v0.0.0-...-e295948 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LifecycleResources

type LifecycleResources interface {
	plugindispatcher.LifecycleResources
}

LifecycleResources is the local interface that used to generate mocks for foreign interface.

type ValidationInfoRetrieveShim

type ValidationInfoRetrieveShim struct {
	Legacy plugindispatcher.LifecycleResources
	New    plugindispatcher.LifecycleResources
}

ValidationInfoRetrieveShim implements plugindispatcher.LifecycleResource by attempting to retrieve validation information from the two supplied sources - a legacy source and a new source. The ValidationInfo function will return info from the new source (if available) or info from the legacy source

func (*ValidationInfoRetrieveShim) ValidationInfo

func (v *ValidationInfoRetrieveShim) ValidationInfo(channelID, chaincodeName string, qe ledger.SimpleQueryExecutor) (plugin string, args []byte, unexpectedErr error, validationErr error)

ValidationInfo implements the function of the LifecycleResources interface. It returns the name and arguments of the validation plugin for the supplied chaincode. The function merely acts as a pass-through - returning validation info from the new or the legacy lifecycle, unless the legacy lifecycle successfully returns validation info requiring the built-in validation plugin and arguments that can be successfully parsed as a SignaturePolicyEnvelope and that can be successfully converted into ApplicationPolicy. In that case, and in that case only does this function modify the return values from the underlying lifecycle.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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