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 ¶
VaultConfig defines properties for initializing Vault client.