_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c29800
train
// WithResponseTimeout sets the timeout when waiting for a response from the event server
{ "resource": "" }
c29801
train
// return the first path that is found
{ "resource": "" }
c29802
train
// CreateCryptoSuiteProvider returns a new default implementation of BCCSP
{ "resource": "" }
c29803
train
// CreateSigningManager returns a new default implementation of signing manager
{ "resource": "" }
c29804
train
// CreateInfraProvider returns a new default implementation of fabric primitives
{ "resource": "" }
c29805
train
// WithRetryOpts sets retry options for retries on transient errors // from the Discovery Server
{ "resource": "" }
c29806
train
// NewMockProviderContext creates a MockProviderContext consisting of defaults
{ "resource": "" }
c29807
train
// NewMockProviderContextCustom creates a MockProviderContext consisting of the arguments
{ "resource": "" }
c29808
train
// IdentityManager returns the identity manager
{ "resource": "" }
c29809
train
// NewMockContext creates a MockContext consisting of defaults and an identity
{ "resource": "" }
c29810
train
// Identifier returns the identifier of that identity
{ "resource": "" }
c29811
train
// PublicVersion returns the public parts of this identity
{ "resource": "" }
c29812
train
// PrivateKey returns the crypto suite representation of the private key
{ "resource": "" }
c29813
train
// NewMockChannelContext returns a new MockChannelContext
{ "resource": "" }
c29814
train
// NewMockTransactionHeader creates mock TxnID based on mock user.
{ "resource": "" }
c29815
train
// NewChannelService creates a Discovery Service to query the list of member peers on a given channel.
{ "resource": "" }
c29816
train
// evaluate validates the responses and returns the peers
{ "resource": "" }
c29817
train
// NewCertFileUserStore1 creates a new instance of CertFileUserStore
{ "resource": "" }
c29818
train
// NewCertFileUserStore creates a new instance of CertFileUserStore
{ "resource": "" }
c29819
train
// Load returns the User stored in the store for a key.
{ "resource": "" }
c29820
train
// Store stores a User into store
{ "resource": "" }
c29821
train
// Delete deletes a User from store
{ "resource": "" }
c29822
train
// Verify checks transaction proposal response
{ "resource": "" }
c29823
train
//ValidateCertificateDates used to verify if certificate was expired or not valid until later date
{ "resource": "" }
c29824
train
//VerifyPeerCertificate verifies raw certs and chain certs for expiry and not yet valid dates
{ "resource": "" }
c29825
train
// Apply applies the given options to the given Params
{ "resource": "" }
c29826
train
//ConfigFromBackend returns endpoint config implementation for given backend
{ "resource": "" }
c29827
train
// Timeout reads timeouts for the given timeout type, if type is not found in the config // then default is set as per the const value above for the corresponding type
{ "resource": "" }
c29828
train
// OrdererConfig returns the requested orderer
{ "resource": "" }
c29829
train
// PeersConfig Retrieves the fabric peers for the specified org from the // config file provided
{ "resource": "" }
c29830
train
// PeerConfig Retrieves a specific peer from the configuration by name or url
{ "resource": "" }
c29831
train
// MappedChannelName will return channelName if it is an original channel name in the config // if it is not, then it will try to find a channelMatcher and return its MappedName. // If more than one matcher is found, then the first matcher in the list will be used.
{ "resource": "" }
c29832
train
//loadAllTLSConfig pre-loads all network TLS Configs
{ "resource": "" }
c29833
train
//loadOrgTLSConfig pre-loads all TLSConfig bytes in organizations
{ "resource": "" }
c29834
train
//loadTLSConfig pre-loads all TLSConfig bytes in Orderer and Peer configs
{ "resource": "" }
c29835
train
// loadTLSClientCerts loads the client's certs for mutual TLS // It checks the config for embedded pem files before looking for cert files
{ "resource": "" }
c29836
train
//getDefaultMatchingURL if search key is a URL then returns search key as URL otherwise returns empty
{ "resource": "" }
c29837
train
// PeerMSPID returns msp that peer belongs to
{ "resource": "" }
c29838
train
//setDefault sets default value provided to map if given key not found
{ "resource": "" }
c29839
train
// WithUnmarshalHookFunction provides an option to pass Custom Decode Hook Func // for unmarshaling
{ "resource": "" }
c29840
train
//Lookup returns value for given key
{ "resource": "" }
c29841
train
//GetBool returns bool value for given key
{ "resource": "" }
c29842
train
//GetString returns string value for given key
{ "resource": "" }
c29843
train
//GetLowerString returns lower case string value for given key
{ "resource": "" }
c29844
train
//GetInt returns int value for given key
{ "resource": "" }
c29845
train
//GetDuration returns time.Duration value for given key
{ "resource": "" }
c29846
train
//UnmarshalKey unmarshals value for given key to rawval type
{ "resource": "" }
c29847
train
//ShowCallerInfo enables caller info for given module and level
{ "resource": "" }
c29848
train
//HideCallerInfo disables caller info for given module and level
{ "resource": "" }
c29849
train
//IsCallerInfoEnabled returns if callerinfo enabled for given module and level
{ "resource": "" }
c29850
train
//getDefaultCallerInfoSetting default setting for callerinfo
{ "resource": "" }
c29851
train
// New returns a new deliver dispatcher
{ "resource": "" }
c29852
train
// Start starts the dispatcher
{ "resource": "" }
c29853
train
// NewMockConfig returns a mock endpoint config with the given event service policy for the given channel
{ "resource": "" }
c29854
train
// NewRegisterConnectionEvent creates a new RegisterConnectionEvent
{ "resource": "" }
c29855
train
// NewFatalDisconnectedEvent creates a new DisconnectedEvent which indicates that a reconnect is not possible
{ "resource": "" }
c29856
train
// NewConnectionEvent returns a new ConnectionEvent
{ "resource": "" }
c29857
train
// FromReader loads configuration from in. // configType can be "json" or "yaml".
{ "resource": "" }
c29858
train
// FromFile reads from named config file
{ "resource": "" }
c29859
train
// FromRaw will initialize the configs from a byte array
{ "resource": "" }
c29860
train
// WithEnvPrefix defines the prefix for environment variable overrides. // See viper SetEnvPrefix for more information.
{ "resource": "" }
c29861
train
// setLogLevel will set the log level of the client
{ "resource": "" }
c29862
train
// CreateLocalDiscoveryProvider returns a static local discovery provider. This should be changed // to use the dynamic provider when Fabric 1.1 is no longer supported
{ "resource": "" }
c29863
train
// CreateChannelProvider returns a new default implementation of channel provider
{ "resource": "" }
c29864
train
// New initializes the SDK based on the set of options provided. // ConfigOptions provides the application configuration.
{ "resource": "" }
c29865
train
// WithCorePkg injects the core implementation into the SDK.
{ "resource": "" }
c29866
train
// WithMSPPkg injects the MSP implementation into the SDK.
{ "resource": "" }
c29867
train
// WithServicePkg injects the service implementation into the SDK.
{ "resource": "" }
c29868
train
// WithLoggerPkg injects the logger implementation into the SDK.
{ "resource": "" }
c29869
train
// WithProviderOpts adds options which are propagated to the various providers.
{ "resource": "" }
c29870
train
// Close frees up caches and connections being maintained by the SDK
{ "resource": "" }
c29871
train
// CloseContext frees up caches being maintained by the SDK for the given context
{ "resource": "" }
c29872
train
//Config returns config backend used by all SDK config types
{ "resource": "" }
c29873
train
//Context creates and returns context client which has all the necessary providers
{ "resource": "" }
c29874
train
//ChannelContext creates and returns channel context
{ "resource": "" }
c29875
train
// initializeCryptoSuite Initializes crypto provider
{ "resource": "" }
c29876
train
//loadConfigs load config from config backend when configs are not provided through opts
{ "resource": "" }
c29877
train
//loadEndpointConfig loads config from config backend when configs are not provided through opts or override missing interfaces from opts with config backend
{ "resource": "" }
c29878
train
// NewRef returns a new membership reference
{ "resource": "" }
c29879
train
// Validate calls validate on the underlying reference
{ "resource": "" }
c29880
train
// Verify calls validate on the underlying reference
{ "resource": "" }
c29881
train
// ContainsMSP checks if given MSP is available in the underlying reference
{ "resource": "" }
c29882
train
// CreateChaincodeInvokeProposal creates a proposal for transaction.
{ "resource": "" }
c29883
train
// signProposal creates a SignedProposal based on the current context.
{ "resource": "" }
c29884
train
// SendProposal sends a TransactionProposal to ProposalProcessor.
{ "resource": "" }
c29885
train
// getTargetsWithoutDuplicates returns a list of targets without duplicates
{ "resource": "" }
c29886
train
// IsTLSEnabled is a generic function that expects a URL and verifies if it has // a prefix HTTPS or GRPCS to return true for TLS Enabled URLs or false otherwise
{ "resource": "" }
c29887
train
// ToAddress is a utility function to trim the GRPC protocol prefix as it is not needed by GO // if the GRPC protocol is not found, the url is returned unchanged
{ "resource": "" }
c29888
train
//AttemptSecured is a utility function which verifies URL and returns if secured connections needs to established // for protocol 'grpcs' in URL returns true // for protocol 'grpc' in URL returns false // for no protocol mentioned, returns !allowInSecure
{ "resource": "" }
c29889
train
// WithCA allows for specifying optional CA name
{ "resource": "" }
c29890
train
// New creates a new Client instance
{ "resource": "" }
c29891
train
// WithSecret enrollment option
{ "resource": "" }
c29892
train
// WithProfile enrollment option
{ "resource": "" }
c29893
train
// WithType enrollment option
{ "resource": "" }
c29894
train
// WithLabel enrollment option
{ "resource": "" }
c29895
train
// WithAttributeRequests enrollment option
{ "resource": "" }
c29896
train
//prepareOptsFromOptions reads request options from Option array
{ "resource": "" }
c29897
train
// ModifyAffiliation renames an existing affiliation on the server
{ "resource": "" }
c29898
train
// WithSeekType specifies the point from which block events are to be received.
{ "resource": "" }
c29899
train
// WithBlockNum specifies the block number from which events are to be received. // Note that this option is only valid if SeekType is set to SeekFrom.
{ "resource": "" }