_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c164600 | train | // IdleLen returns number of idle connections. | {
"resource": ""
} | ||
c164601 | train | // GC removes unused nodes. | {
"resource": ""
} | ||
c164602 | train | // ReloadState reloads cluster state. If available it calls ClusterSlots func
// to get cluster slots information. | {
"resource": ""
} | ||
c164603 | train | // ForEachNode concurrently calls the fn on each known node in the cluster.
// It returns the first error if any. | {
"resource": ""
} | ||
c164604 | train | // reaper closes idle connections to the cluster. | {
"resource": ""
} | ||
c164605 | train | // Subscribe subscribes the client to the specified channels.
// Channels can be omitted to create empty subscription. | {
"resource": ""
} | ||
c164606 | train | // Watch prepares a transaction and marks the keys to be watched
// for conditional execution if there are any keys.
//
// The transaction is automatically closed when fn exits. | {
"resource": ""
} | ||
c164607 | train | // Close closes the transaction, releasing any open resources. | {
"resource": ""
} | ||
c164608 | train | // Watch marks the keys to be watched for conditional execution
// of a transaction. | {
"resource": ""
} | ||
c164609 | train | // Pipeline creates a new pipeline. It is more convenient to use Pipelined. | {
"resource": ""
} | ||
c164610 | train | // Pipelined executes commands queued in the fn in a transaction.
//
// When using WATCH, EXEC will execute commands only if the watched keys
// were not modified, allowing for a check-and-set mechanism.
//
// Exec always returns list of commands. If transaction fails
// TxFailedErr is returned. Otherwise Exec returns ... | {
"resource": ""
} | ||
c164611 | train | // TxPipelined is an alias for Pipelined. | {
"resource": ""
} | ||
c164612 | train | // NewCmdResult returns a Cmd initialised with val and err for testing | {
"resource": ""
} | ||
c164613 | train | // NewSliceResult returns a SliceCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164614 | train | // NewStatusResult returns a StatusCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164615 | train | // NewIntResult returns an IntCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164616 | train | // NewDurationResult returns a DurationCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164617 | train | // NewBoolResult returns a BoolCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164618 | train | // NewStringResult returns a StringCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164619 | train | // NewFloatResult returns a FloatCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164620 | train | // NewStringSliceResult returns a StringSliceCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164621 | train | // NewBoolSliceResult returns a BoolSliceCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164622 | train | // NewStringStringMapResult returns a StringStringMapCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164623 | train | // NewStringIntMapCmdResult returns a StringIntMapCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164624 | train | // NewZSliceCmdResult returns a ZSliceCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164625 | train | // NewScanCmdResult returns a ScanCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164626 | train | // NewClusterSlotsCmdResult returns a ClusterSlotsCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164627 | train | // NewGeoLocationCmdResult returns a GeoLocationCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164628 | train | // NewCommandsInfoCmdResult returns a CommandsInfoCmd initialised with val and err for testing | {
"resource": ""
} | ||
c164629 | train | // Vote votes to set shard state and returns true if state was changed. | {
"resource": ""
} | ||
c164630 | train | // heartbeat monitors state of each shard in the ring. | {
"resource": ""
} | ||
c164631 | train | // rebalance removes dead shards from the Ring. | {
"resource": ""
} | ||
c164632 | train | // PSubscribe subscribes the client to the given patterns. | {
"resource": ""
} | ||
c164633 | train | // ForEachShard concurrently calls the fn on each live shard in the ring.
// It returns the first error if any. | {
"resource": ""
} | ||
c164634 | train | // ParseURL parses an URL into Options that can be used to connect to Redis. | {
"resource": ""
} | ||
c164635 | train | // Subscribe the client to the specified channels. It returns
// empty subscription if there are no channels. | {
"resource": ""
} | ||
c164636 | train | // PSubscribe the client to the given patterns. It returns
// empty subscription if there are no patterns. | {
"resource": ""
} | ||
c164637 | train | // Unsubscribe the client from the given channels, or from all of
// them if none is given. | {
"resource": ""
} | ||
c164638 | train | // PUnsubscribe the client from the given patterns, or from all of
// them if none is given. | {
"resource": ""
} | ||
c164639 | train | // ReceiveTimeout acts like Receive but returns an error if message
// is not received in time. This is low-level API and in most cases
// Channel should be used instead. | {
"resource": ""
} | ||
c164640 | train | // ReceiveMessage returns a Message or error ignoring Subscription and Pong
// messages. This is low-level API and in most cases Channel should be used
// instead. | {
"resource": ""
} | ||
c164641 | train | // Run optimistically uses EVALSHA to run the script. If script does not exist
// it is retried using EVAL. | {
"resource": ""
} | ||
c164642 | train | // Process queues the cmd for later execution. | {
"resource": ""
} | ||
c164643 | train | // Close closes the pipeline, releasing any open resources. | {
"resource": ""
} | ||
c164644 | train | // Discard resets the pipeline and discards queued commands. | {
"resource": ""
} | ||
c164645 | train | // Exec executes all previously queued commands using one
// client-server roundtrip.
//
// Exec always returns list of commands and error of the first failed
// command if any. | {
"resource": ""
} | ||
c164646 | train | // hashSlot returns a consistent slot number between 0 and 16383
// for any given string key. | {
"resource": ""
} | ||
c164647 | train | // staticRotationStrategy returns a strategy which never rotates keys. | {
"resource": ""
} | ||
c164648 | train | // defaultRotationStrategy returns a strategy which rotates keys every provided period,
// holding onto the public parts for some specified amount of time. | {
"resource": ""
} | ||
c164649 | train | // startKeyRotation begins key rotation in a new goroutine, closing once the context is canceled.
//
// The method blocks until after the first attempt to rotate keys has completed. That way
// healthy storages will return from this call with valid keys. | {
"resource": ""
} | ||
c164650 | train | // New returns an in memory storage. | {
"resource": ""
} | ||
c164651 | train | // Open always returns a new in memory storage. | {
"resource": ""
} | ||
c164652 | train | // Detect auth header provider issues for known providers. This lets users
// avoid having to explicitly set "basicAuthUnsupported" in their config.
//
// Setting the config field always overrides values returned by this function. | {
"resource": ""
} | ||
c164653 | train | // Open returns a connector which can be used to login users through an upstream
// OpenID Connect provider. | {
"resource": ""
} | ||
c164654 | train | // Refresh is implemented for backwards compatibility, even though it's a no-op. | {
"resource": ""
} | ||
c164655 | train | // Open validates the config and returns a connector. It does not actually
// validate connectivity with the provider. | {
"resource": ""
} | ||
c164656 | train | // validateStatus verifies that the response has a good status code or
// formats a human readble error based on the bad status. | {
"resource": ""
} | ||
c164657 | train | // before determines if a given time is before the current time, with an
// allowed clock drift. | {
"resource": ""
} | ||
c164658 | train | // after determines if a given time is after the current time, with an
// allowed clock drift. | {
"resource": ""
} | ||
c164659 | train | // return an HTTP client which trusts the provided root CAs. | {
"resource": ""
} | ||
c164660 | train | // Determine the signature algorithm for a JWT. | {
"resource": ""
} | ||
c164661 | train | // Open returns a storage using Kubernetes third party resource. | {
"resource": ""
} | ||
c164662 | train | // waitForCRDs waits for all CRDs to be in a ready state, and is used
// by the tests to synchronize before running conformance. | {
"resource": ""
} | ||
c164663 | train | // isCRDReady determines if a CRD is ready by inspecting its conditions. | {
"resource": ""
} | ||
c164664 | train | // Do NOT call directly. Does not escape table. | {
"resource": ""
} | ||
c164665 | train | // Open creates a new storage implementation backed by Etcd | {
"resource": ""
} | ||
c164666 | train | // Open returns a strategy for logging in through GitLab. | {
"resource": ""
} | ||
c164667 | train | // Open returns an authentication strategy which requires no user interaction. | {
"resource": ""
} | ||
c164668 | train | // LoginURL returns the URL to redirect the user to login with. | {
"resource": ""
} | ||
c164669 | train | // HandleCallback parses the request and returns the user's identity | {
"resource": ""
} | ||
c164670 | train | // loadTemplates parses the expected templates from the provided directory. | {
"resource": ""
} | ||
c164671 | train | // idToName maps an arbitrary ID, such as an email or client ID to a Kubernetes object name. | {
"resource": ""
} | ||
c164672 | train | // offlineTokenName maps two arbitrary IDs, to a single Kubernetes object name.
// This is used when more than one field is used to uniquely identify the object. | {
"resource": ""
} | ||
c164673 | train | // Close the response body. The initial request is drained so the connection can
// be reused. | {
"resource": ""
} | ||
c164674 | train | // translateArgs translates query parameters that may be unique to
// a specific SQL flavor. For example, standardizing "time.Time"
// types to UTC for clients that don't provide timezone support. | {
"resource": ""
} | ||
c164675 | train | // ExecTx runs a method which operates on a transaction. | {
"resource": ""
} | ||
c164676 | train | // Marshal converts a protobuf message to a URL legal string. | {
"resource": ""
} | ||
c164677 | train | // Unmarshal decodes a protobuf message. | {
"resource": ""
} | ||
c164678 | train | // NewID returns a random string which can be used as an ID for objects. | {
"resource": ""
} | ||
c164679 | train | // Open creates a new storage implementation backed by SQLite3 | {
"resource": ""
} | ||
c164680 | train | // Open creates a new storage implementation backed by Postgres. | {
"resource": ""
} | ||
c164681 | train | // UnmarshalJSON allows Storage to implement the unmarshaler interface to
// dynamically determine the type of the storage config. | {
"resource": ""
} | ||
c164682 | train | // UnmarshalJSON allows Connector to implement the unmarshaler interface to
// dynamically determine the type of the connector config. | {
"resource": ""
} | ||
c164683 | train | // ToStorageConnector converts an object to storage connector type. | {
"resource": ""
} | ||
c164684 | train | // names list the names of all attributes in the attribute statement. | {
"resource": ""
} | ||
c164685 | train | // String is a formatter for logging an attribute statement's sub statements. | {
"resource": ""
} | ||
c164686 | train | // Open returns a strategy for logging in through Microsoft. | {
"resource": ""
} | ||
c164687 | train | // NewAPI returns a server which implements the gRPC API interface. | {
"resource": ""
} | ||
c164688 | train | // checkCost returns an error if the hash provided does not meet lower or upper
// bound cost requirements. | {
"resource": ""
} | ||
c164689 | train | // Open returns a strategy for logging in through Bitbucket. | {
"resource": ""
} | ||
c164690 | train | // groupsRequired returns whether dex requires Bitbucket's 'team' scope. | {
"resource": ""
} | ||
c164691 | train | // getGroups retrieves Bitbucket teams a user is in, if any. | {
"resource": ""
} | ||
c164692 | train | // get creates a "GET `apiURL`" request with context, sends the request using
// the client, and decodes the resulting response body into v.
// Any errors encountered when building requests, sending requests, and
// reading and decoding response data are returned. | {
"resource": ""
} | ||
c164693 | train | // WithStaticClients adds a read-only set of clients to the underlying storages. | {
"resource": ""
} | ||
c164694 | train | // WithStaticPasswords returns a storage with a read-only set of passwords. | {
"resource": ""
} | ||
c164695 | train | // WithStaticConnectors returns a storage with a read-only set of Connectors. Write actions,
// such as updating existing Connectors, will fail. | {
"resource": ""
} | ||
c164696 | train | // Open returns a strategy for logging in through LinkedIn | {
"resource": ""
} | ||
c164697 | train | // LoginURL returns an access token request URL | {
"resource": ""
} | ||
c164698 | train | // HandleCallback handles HTTP redirect from LinkedIn | {
"resource": ""
} | ||
c164699 | train | // fullname returns a full name of a person, or email if the resulting name is
// empty | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.