fabpvdr

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FabricProvider

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

FabricProvider represents the default implementation of Fabric objects.

func New

New creates a FabricProvider enabling access to core Fabric objects and functionality.

func (*FabricProvider) CreateCAClient

func (f *FabricProvider) CreateCAClient(orgID string) (apifabca.FabricCAClient, error)

CreateCAClient returns a new FabricCAClient initialized for the current instance of the SDK.

func (*FabricProvider) CreateChannelClient

CreateChannelClient returns a new client initialized for the current instance of the SDK.

func (*FabricProvider) CreateChannelConfig

func (f *FabricProvider) CreateChannelConfig(ic apifabclient.IdentityContext, channelID string) (apifabclient.ChannelConfig, error)

CreateChannelConfig initializes the channel config

func (*FabricProvider) CreateChannelLedger

func (f *FabricProvider) CreateChannelLedger(ic apifabclient.IdentityContext, channelName string) (apifabclient.ChannelLedger, error)

CreateChannelLedger returns a new client initialized for the current instance of the SDK.

func (*FabricProvider) CreateEventHub

func (f *FabricProvider) CreateEventHub(ic apifabclient.IdentityContext, channelID string) (apifabclient.EventHub, error)

CreateEventHub initilizes the event hub.

func (*FabricProvider) CreateOrdererFromConfig

func (f *FabricProvider) CreateOrdererFromConfig(cfg *apiconfig.OrdererConfig) (apifabclient.Orderer, error)

CreateOrdererFromConfig creates a default implementation of Orderer based on configuration.

func (*FabricProvider) CreatePeerFromConfig

func (f *FabricProvider) CreatePeerFromConfig(peerCfg *apiconfig.NetworkPeer) (apifabclient.Peer, error)

CreatePeerFromConfig returns a new default implementation of Peer based configuration

func (*FabricProvider) CreateResourceClient

func (f *FabricProvider) CreateResourceClient(ic apifabclient.IdentityContext) (apifabclient.Resource, error)

CreateResourceClient returns a new client initialized for the current instance of the SDK.

func (*FabricProvider) CreateUser

func (f *FabricProvider) CreateUser(name string, signingIdentity *apifabclient.SigningIdentity) (apifabclient.User, error)

CreateUser returns a new default implementation of a User.

Jump to

Keyboard shortcuts

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