Documentation ¶
Index ¶
- type FabricProvider
- func (f *FabricProvider) CreateCAClient(orgID string) (apifabca.FabricCAClient, error)
- func (f *FabricProvider) CreateChannelClient(ic apifabclient.IdentityContext, cfg apifabclient.ChannelCfg) (apifabclient.Channel, error)
- func (f *FabricProvider) CreateChannelConfig(ic apifabclient.IdentityContext, channelID string) (apifabclient.ChannelConfig, error)
- func (f *FabricProvider) CreateChannelLedger(ic apifabclient.IdentityContext, channelName string) (apifabclient.ChannelLedger, error)
- func (f *FabricProvider) CreateEventHub(ic apifabclient.IdentityContext, channelID string) (apifabclient.EventHub, error)
- func (f *FabricProvider) CreateOrdererFromConfig(cfg *apiconfig.OrdererConfig) (apifabclient.Orderer, error)
- func (f *FabricProvider) CreatePeerFromConfig(peerCfg *apiconfig.NetworkPeer) (apifabclient.Peer, error)
- func (f *FabricProvider) CreateResourceClient(ic apifabclient.IdentityContext) (apifabclient.Resource, error)
- func (f *FabricProvider) CreateUser(name string, signingIdentity *apifabclient.SigningIdentity) (apifabclient.User, error)
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 ¶
func New(ctx apifabclient.ProviderContext) *FabricProvider
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 ¶
func (f *FabricProvider) CreateChannelClient(ic apifabclient.IdentityContext, cfg apifabclient.ChannelCfg) (apifabclient.Channel, error)
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.