defclient

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrgClientFactory

type OrgClientFactory struct{}

OrgClientFactory represents the default org provider factory.

func NewOrgClientFactory

func NewOrgClientFactory() *OrgClientFactory

NewOrgClientFactory returns the default org provider factory.

func (*OrgClientFactory) NewCredentialManager

func (f *OrgClientFactory) NewCredentialManager(orgName string, config apiconfig.Config, cryptoProvider apicryptosuite.CryptoSuite) (fab.CredentialManager, error)

NewCredentialManager returns a new default implementation of the credential manager

type SessionClientFactory

type SessionClientFactory struct{}

SessionClientFactory represents the default implementation of a session client.

func NewSessionClientFactory

func NewSessionClientFactory() *SessionClientFactory

NewSessionClientFactory creates a new default session client factory.

func (*SessionClientFactory) NewChannelClient

func (f *SessionClientFactory) NewChannelClient(providers apisdk.Providers, session apisdk.SessionContext, channelID string, targetFilter apifabclient.TargetFilter) (apichclient.ChannelClient, error)

NewChannelClient returns a client that can execute transactions on specified channel

func (*SessionClientFactory) NewChannelMgmtClient

func (f *SessionClientFactory) NewChannelMgmtClient(providers apisdk.Providers, session apisdk.SessionContext) (apichmgmt.ChannelMgmtClient, error)

NewChannelMgmtClient returns a client that manages channels (create/join channel)

func (*SessionClientFactory) NewResourceMgmtClient

func (f *SessionClientFactory) NewResourceMgmtClient(providers apisdk.Providers, session apisdk.SessionContext, filter apiresmgmt.TargetFilter) (apiresmgmt.ResourceMgmtClient, error)

NewResourceMgmtClient returns a client that manages resources

Jump to

Keyboard shortcuts

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