_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c29400 | train | // WithLedger provides the mock connection with a ledger | {
"resource": ""
} | ||
c29401 | train | // WithResults specifies the results for one or more operations | {
"resource": ""
} | ||
c29402 | train | //LoadPKCS11ContextHandle loads PKCS11 context handler instance from underlying cache | {
"resource": ""
} | ||
c29403 | train | //ReloadPKCS11ContextHandle deletes PKCS11 instance from underlying cache and loads new PKCS11 context handler in cache | {
"resource": ""
} | ||
c29404 | train | //LoadContextAndLogin loads Context handle and performs login | {
"resource": ""
} | ||
c29405 | train | // Login logs a user into a token | {
"resource": ""
} | ||
c29406 | train | //ReturnSession returns session back into the session pool
//if pool is pull or session is invalid then discards session | {
"resource": ""
} | ||
c29407 | train | //GetSession returns session from session pool
//if pool is empty or completely in use, creates new session
//if new session is invalid recreates one after reloading ctx and re-login | {
"resource": ""
} | ||
c29408 | train | // FindObjects continues a search for token and session objects that match a template, obtaining additional object
// handles. The returned boolean indicates if the list would have been larger than max. | {
"resource": ""
} | ||
c29409 | train | // CopyObject creates a copy of an object. | {
"resource": ""
} | ||
c29410 | train | //FindKeyPairFromSKI finds key pair by SKI | {
"resource": ""
} | ||
c29411 | train | //validateSession validates given session
//if session is invalid recreates one after reloading ctx and re-login
//care should be taken since handle.lock should be read locked before calling this function | {
"resource": ""
} | ||
c29412 | train | //detectErrorCondition checks if given session handle has errors | {
"resource": ""
} | ||
c29413 | train | //sendNotification sends ctx reload notificatin if channel available | {
"resource": ""
} | ||
c29414 | train | //disposePKCS11Ctx disposes mPkcs11.Ctx object | {
"resource": ""
} | ||
c29415 | train | //createNewPKCS11Ctx creates new mPkcs11.Ctx | {
"resource": ""
} | ||
c29416 | train | //findSlot finds slot for given pkcs11 ctx and label | {
"resource": ""
} | ||
c29417 | train | //String return string value for pkcs11CtxCacheKey | {
"resource": ""
} | ||
c29418 | train | //getInstance loads ContextHandle instance from cache
//key - cache key
//reload - if true then deletes the existing cache instance and recreates one | {
"resource": ""
} | ||
c29419 | train | //finalizer finalizer for context handler cache | {
"resource": ""
} | ||
c29420 | train | //loadLibInitializer initializer for context handler cache | {
"resource": ""
} | ||
c29421 | train | // New channel config implementation | {
"resource": ""
} | ||
c29422 | train | // Query returns channel configuration | {
"resource": ""
} | ||
c29423 | train | // WithPeers encapsulates peers to Option | {
"resource": ""
} | ||
c29424 | train | // WithMinResponses encapsulates minimum responses to Option | {
"resource": ""
} | ||
c29425 | train | // WithOrderer encapsulates orderer to Option | {
"resource": ""
} | ||
c29426 | train | // WithMaxTargets encapsulates minTargets to Option | {
"resource": ""
} | ||
c29427 | train | // WithRetryOpts encapsulates retry opts to Option | {
"resource": ""
} | ||
c29428 | train | // prepareOpts Reads channel config options from Option array | {
"resource": ""
} | ||
c29429 | train | //randomMaxTargets returns random sub set of max length targets | {
"resource": ""
} | ||
c29430 | train | //getOptsByConfig Returns Factory opts for given SDK config | {
"resource": ""
} | ||
c29431 | train | // NewSeekEvent returns a new SeekRequestEvent | {
"resource": ""
} | ||
c29432 | train | // NewRefCache a cache of channel config references that refreshed with the
// given interval | {
"resource": ""
} | ||
c29433 | train | // BlockHeight returns the block height of the peer. If the peer doesn't contain any state info then 0 is returned. | {
"resource": ""
} | ||
c29434 | train | // FromPeerConfig creates a new EventEndpoint from the given config | {
"resource": ""
} | ||
c29435 | train | // NewSimpleMockBlock returns a simple mock block | {
"resource": ""
} | ||
c29436 | train | // Build creates a mock Chain configuration Block | {
"resource": ""
} | ||
c29437 | train | // Build builds an Envelope that contains a mock ConfigUpdateEnvelope | {
"resource": ""
} | ||
c29438 | train | // CreateBlockWithCCEvent creates a mock block | {
"resource": ""
} | ||
c29439 | train | // CreateBlockWithCCEventAndTxStatus creates a mock block with the given CC event and TX validation code | {
"resource": ""
} | ||
c29440 | train | // NewBlock construct a block with no data and no metadata. | {
"resource": ""
} | ||
c29441 | train | // NewService creates a static selection service | {
"resource": ""
} | ||
c29442 | train | // GetEndorsersForChaincode returns a set of endorsing peers | {
"resource": ""
} | ||
c29443 | train | // Store stores a user into store | {
"resource": ""
} | ||
c29444 | train | // Load loads a user from store | {
"resource": ""
} | ||
c29445 | train | // NewMemoryKeyStore creates a new MemoryKeyStore instance | {
"resource": ""
} | ||
c29446 | train | // GetKey returns a key for the provided SKI | {
"resource": ""
} | ||
c29447 | train | // StoreKey stores a key | {
"resource": ""
} | ||
c29448 | train | // NewRegisterBlockEvent creates a new RegisterBlockEvent | {
"resource": ""
} | ||
c29449 | train | // NewRegisterFilteredBlockEvent creates a new RegisterFilterBlockEvent | {
"resource": ""
} | ||
c29450 | train | // NewRegisterChaincodeEvent creates a new RegisterChaincodeEvent | {
"resource": ""
} | ||
c29451 | train | // NewRegisterTxStatusEvent creates a new RegisterTxStatusEvent | {
"resource": ""
} | ||
c29452 | train | // NewRegisterEvent creates a new RgisterEvent | {
"resource": ""
} | ||
c29453 | train | // NewBlockEvent creates a new BlockEvent | {
"resource": ""
} | ||
c29454 | train | // NewFilteredBlockEvent creates a new FilteredBlockEvent | {
"resource": ""
} | ||
c29455 | train | // NewChaincodeEvent creates a new ChaincodeEvent | {
"resource": ""
} | ||
c29456 | train | // NewTxStatusEvent creates a new TxStatusEvent | {
"resource": ""
} | ||
c29457 | train | // NewTransferEvent creates a new TransferEvent | {
"resource": ""
} | ||
c29458 | train | // NewStopAndTransferEvent creates a new StopAndTransferEvent | {
"resource": ""
} | ||
c29459 | train | // Lookup gets the config item value by Key | {
"resource": ""
} | ||
c29460 | train | // load Default config | {
"resource": ""
} | ||
c29461 | train | // NewMockSelectionService returns mock selection service | {
"resource": ""
} | ||
c29462 | train | // ProcessProposal mock implementation that returns success if error is not set
// error if it is | {
"resource": ""
} | ||
c29463 | train | // will verify if any of objs element is nil, also needed to avoid meta-linter errors | {
"resource": ""
} | ||
c29464 | train | //Initialize sets new logger which takes over logging operations.
//It is required to call this function before making any loggings. | {
"resource": ""
} | ||
c29465 | train | //Fatalf calls Fatalf function of underlying logger | {
"resource": ""
} | ||
c29466 | train | //Panicf calls Panicf function of underlying logger | {
"resource": ""
} | ||
c29467 | train | //Printf calls Printf function of underlying logger | {
"resource": ""
} | ||
c29468 | train | //Debugf calls Debugf function of underlying logger | {
"resource": ""
} | ||
c29469 | train | //Infof calls Infof function of underlying logger | {
"resource": ""
} | ||
c29470 | train | //Warnf calls Warnf function of underlying logger | {
"resource": ""
} | ||
c29471 | train | //Errorf calls Errorf function of underlying logger | {
"resource": ""
} | ||
c29472 | train | // ParseLevel returns the log level from a string representation. | {
"resource": ""
} | ||
c29473 | train | // Random balances peers randomly | {
"resource": ""
} | ||
c29474 | train | // RoundRobin balances peers in a round-robin fashion | {
"resource": ""
} | ||
c29475 | train | // WithUser uses the named user to load the identity | {
"resource": ""
} | ||
c29476 | train | // WithIdentity uses a pre-constructed identity object as the credential for the session | {
"resource": ""
} | ||
c29477 | train | // WithOrg uses the named organization | {
"resource": ""
} | ||
c29478 | train | // WithEventConsumerBufferSize sets the size of the registered consumer's event channel. | {
"resource": ""
} | ||
c29479 | train | // WithSnapshot sets the given TxStatus registrations. | {
"resource": ""
} | ||
c29480 | train | // New returns a new future value | {
"resource": ""
} | ||
c29481 | train | // Initialize initializes the future value.
// This function must be called only once. Subsequent
// calls may result in deadlock. | {
"resource": ""
} | ||
c29482 | train | // MustGet returns the value. If an error resulted
// during initialization then this function will panic. | {
"resource": ""
} | ||
c29483 | train | // IsSet returns true if the value has been set, otherwise false is returned | {
"resource": ""
} | ||
c29484 | train | // CreateEventService creates the event service. | {
"resource": ""
} | ||
c29485 | train | // CreateChannelCfg creates the channel configuration | {
"resource": ""
} | ||
c29486 | train | // CreateChannelMembership returns a channel member identifier | {
"resource": ""
} | ||
c29487 | train | // CreateChannelConfig initializes the channel config | {
"resource": ""
} | ||
c29488 | train | // New creates a new dynamic selection service using Fabric's Discovery Service | {
"resource": ""
} | ||
c29489 | train | // GetSuite returns a new instance of the software-based BCCSP
// set at the passed security level, hash family and KeyStore. | {
"resource": ""
} | ||
c29490 | train | //GetOptsByConfig Returns Factory opts for given SDK config | {
"resource": ""
} | ||
c29491 | train | // GetSigningIdentity returns a signing identity corresponding to the provided identifier | {
"resource": ""
} | ||
c29492 | train | // SatisfiesPrincipal checks whether the identity matches
// the description supplied in MSPPrincipal. | {
"resource": ""
} | ||
c29493 | train | // NewMockDeliverServerWithDeliveries returns a new MockDeliverServer using Deliveries channel with common.Block | {
"resource": ""
} | ||
c29494 | train | // NewMockDeliverServerWithFilteredDeliveries returns a new MockDeliverServer using filteredDeliveries channel with FilteredBlock | {
"resource": ""
} | ||
c29495 | train | // SetStatus sets the status to return when calling Deliver or DeliverFiltered | {
"resource": ""
} | ||
c29496 | train | // Status returns the status that's returned when calling Deliver or DeliverFiltered | {
"resource": ""
} | ||
c29497 | train | // Disconnect terminates the stream and returns the given error to the client | {
"resource": ""
} | ||
c29498 | train | // Deliver delivers a stream of blocks | {
"resource": ""
} | ||
c29499 | train | // DeliverFiltered delivers a stream of filtered blocks | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.