plugins

package
v0.0.0-...-8fcaae5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventSocket

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

EventSocket defines plugin for subscribing to events on Hyperledger network.

func NewEventSocket

func NewEventSocket(sdk *fabric.SDK, chaincode string) *EventSocket

NewEventSocket constructs new EventSocket instance.

func (*EventSocket) Bind

func (p *EventSocket) Bind(arguments string) (*events.EventChannel, error)

Bind makes 'BindToEventSocket' transaction to request events streaming subscription, and subscribes to event, which name corresponds received event token.

func (*EventSocket) Subscribe

func (p *EventSocket) Subscribe(event string) (*events.EventChannel, error)

Subscribe subscribes to generic event on network with given `event` name.

type VaultAuthenticator

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

VaultAuthenticator defines a plugin for authenticating to Fabric network via Vault.

func NewVaultAuthenticator

func NewVaultAuthenticator(sdk *fabric.SDK) *VaultAuthenticator

NewVaultAuthenticator constructs new instance of VaultAuthenticator plugin.

func (*VaultAuthenticator) FetchVaultIdentity

func (p *VaultAuthenticator) FetchVaultIdentity(username, org, secretPath, userToken string) error

FetchVaultIdentity requests Fabric identity x509 credentials and puts those into the fabric.SDK wallet.

func (*VaultAuthenticator) Init

func (p *VaultAuthenticator) Init(config *VaultConfig) error

Init performs initialization of the AuthVault plugin.

type VaultConfig

type VaultConfig struct {
	Address      string
	DefaultToken string
}

VaultConfig defines properties for initializing Vault client.

Jump to

Keyboard shortcuts

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