_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c164400 | train | // HandleRoutez process HTTP requests for route information. | {
"resource": ""
} | ||
c164401 | train | // Subsz returns a Subsz struct containing subjects statistics | {
"resource": ""
} | ||
c164402 | train | // HandleSubsz processes HTTP requests for subjects stats. | {
"resource": ""
} | ||
c164403 | train | // HandleStacksz processes HTTP requests for getting stacks | {
"resource": ""
} | ||
c164404 | train | // HandleRoot will show basic info and links to others handlers. | {
"resource": ""
} | ||
c164405 | train | // Varz returns a Varz struct containing the server information. | {
"resource": ""
} | ||
c164406 | train | // HandleVarz will process HTTP requests for server information. | {
"resource": ""
} | ||
c164407 | train | // ResponseHandler handles responses for monitoring routes | {
"resource": ""
} | ||
c164408 | train | // Apply the tls change. | {
"resource": ""
} | ||
c164409 | train | // Apply the cluster change. | {
"resource": ""
} | ||
c164410 | train | // Apply the route changes by adding and removing the necessary routes. | {
"resource": ""
} | ||
c164411 | train | // Apply the max connections change by closing random connections til we are
// below the limit if necessary. | {
"resource": ""
} | ||
c164412 | train | // Apply the setting by logging the pid to the new file. | {
"resource": ""
} | ||
c164413 | train | // Apply the setting by updating each client. | {
"resource": ""
} | ||
c164414 | train | // Apply the setting by updating the server info and each client. | {
"resource": ""
} | ||
c164415 | train | // Apply the setting by updating the server info and regenerate the infoJSON byte array. | {
"resource": ""
} | ||
c164416 | train | // Reload reads the current configuration file and applies any supported
// changes. This returns an error if the server was not started with a config
// file or an option which doesn't support hot-swapping was changed. | {
"resource": ""
} | ||
c164417 | train | // reloadOptions reloads the server config with the provided options. If an
// option that doesn't support hot-swapping is changed, this returns an error. | {
"resource": ""
} | ||
c164418 | train | // reloadAuthorization reconfigures the server authorization settings,
// disconnects any clients who are no longer authorized, and removes any
// unauthorized subscriptions. | {
"resource": ""
} | ||
c164419 | train | // validateClusterOpts ensures the new ClusterOpts does not change host or
// port, which do not support reload. | {
"resource": ""
} | ||
c164420 | train | // diffRoutes diffs the old routes and the new routes and returns the ones that
// should be added and removed from the server. | {
"resource": ""
} | ||
c164421 | train | // parseSize expects decimal positive numbers. We
// return -1 to signal error. | {
"resource": ""
} | ||
c164422 | train | // Helper to move from float seconds to time.Duration | {
"resource": ""
} | ||
c164423 | train | // Returns true if URL u1 represents the same URL than u2,
// false otherwise. | {
"resource": ""
} | ||
c164424 | train | // Get gets a connection. The application must close the returned connection.
// This method always returns a valid connection so that applications can defer
// error handling to the first use of the connection. If there is an error
// getting an underlying connection, then the connection Err, Do, Send, Flush
// and Re... | {
"resource": ""
} | ||
c164425 | train | // GetContext gets a connection using the provided context.
//
// The provided Context must be non-nil. If the context expires before the
// connection is complete, an error is returned. Any expiration on the context
// will not affect the returned connection.
//
// If the function completes without error, then the app... | {
"resource": ""
} | ||
c164426 | train | // Stats returns pool's statistics. | {
"resource": ""
} | ||
c164427 | train | // ActiveCount returns the number of connections in the pool. The count
// includes idle connections and connections in use. | {
"resource": ""
} | ||
c164428 | train | // IdleCount returns the number of idle connections in the pool. | {
"resource": ""
} | ||
c164429 | train | // DoWithTimeout executes a Redis command with the specified read timeout. If
// the connection does not satisfy the ConnWithTimeout interface, then an error
// is returned. | {
"resource": ""
} | ||
c164430 | train | // ReceiveWithTimeout receives a reply with the specified read timeout. If the
// connection does not satisfy the ConnWithTimeout interface, then an error is
// returned. | {
"resource": ""
} | ||
c164431 | train | // NewScript returns a new script object. If keyCount is greater than or equal
// to zero, then the count is automatically inserted in the EVAL command
// argument list. If keyCount is less than zero, then the application supplies
// the count as the first value in the keysAndArgs argument to the Do, Send and
// SendHa... | {
"resource": ""
} | ||
c164432 | train | // SendHash evaluates the script without waiting for the reply. The script is
// evaluated with the EVALSHA command. The application must ensure that the
// script is loaded by a previous call to Send, Do or Load methods. | {
"resource": ""
} | ||
c164433 | train | // Send evaluates the script without waiting for the reply. | {
"resource": ""
} | ||
c164434 | train | // Load loads the script without evaluating it. | {
"resource": ""
} | ||
c164435 | train | // DialReadTimeout specifies the timeout for reading a single command reply. | {
"resource": ""
} | ||
c164436 | train | // DialWriteTimeout specifies the timeout for writing a single command. | {
"resource": ""
} | ||
c164437 | train | // DialConnectTimeout specifies the timeout for connecting to the Redis server when
// no DialNetDial option is specified. | {
"resource": ""
} | ||
c164438 | train | // DialKeepAlive specifies the keep-alive period for TCP connections to the Redis server
// when no DialNetDial option is specified.
// If zero, keep-alives are not enabled. If no DialKeepAlive option is specified then
// the default of 5 minutes is used to ensure that half-closed TCP sessions are detected. | {
"resource": ""
} | ||
c164439 | train | // DialNetDial specifies a custom dial function for creating TCP
// connections, otherwise a net.Dialer customized via the other options is used.
// DialNetDial overrides DialConnectTimeout and DialKeepAlive. | {
"resource": ""
} | ||
c164440 | train | // DialDatabase specifies the database to select when dialing a connection. | {
"resource": ""
} | ||
c164441 | train | // DialPassword specifies the password to use when connecting to
// the Redis server. | {
"resource": ""
} | ||
c164442 | train | // DialClientName specifies a client name to be used
// by the Redis server connection. | {
"resource": ""
} | ||
c164443 | train | // DialTLSConfig specifies the config to use when a TLS connection is dialed.
// Has no effect when not dialing a TLS connection. | {
"resource": ""
} | ||
c164444 | train | // DialTLSSkipVerify disables server name verification when connecting over
// TLS. Has no effect when not dialing a TLS connection. | {
"resource": ""
} | ||
c164445 | train | // DialUseTLS specifies whether TLS should be used when connecting to the
// server. This option is ignore by DialURL. | {
"resource": ""
} | ||
c164446 | train | // Dial connects to the Redis server at the given network and
// address using the specified options. | {
"resource": ""
} | ||
c164447 | train | // NewConn returns a new Redigo connection for the given net connection. | {
"resource": ""
} | ||
c164448 | train | // readLine reads a line of input from the RESP stream. | {
"resource": ""
} | ||
c164449 | train | // parseLen parses bulk string and array lengths. | {
"resource": ""
} | ||
c164450 | train | // Get gets a connection. The application must close the returned connection. | {
"resource": ""
} | ||
c164451 | train | // Subscribe subscribes the connection to the specified channels. | {
"resource": ""
} | ||
c164452 | train | // PSubscribe subscribes the connection to the given patterns. | {
"resource": ""
} | ||
c164453 | train | // Unsubscribe unsubscribes the connection from the given channels, or from all
// of them if none is given. | {
"resource": ""
} | ||
c164454 | train | // PUnsubscribe unsubscribes the connection from the given patterns, or from all
// of them if none is given. | {
"resource": ""
} | ||
c164455 | train | // Ping sends a PING to the server with the specified data.
//
// The connection must be subscribed to at least one channel or pattern when
// calling this method. | {
"resource": ""
} | ||
c164456 | train | // ReceiveWithTimeout is like Receive, but it allows the application to
// override the connection's default timeout. | {
"resource": ""
} | ||
c164457 | train | // AddFlat returns the result of appending the flattened value of v to args.
//
// Maps are flattened by appending the alternating keys and map values to args.
//
// Slices are flattened by appending the slice elements to args.
//
// Structs are flattened by appending the alternating names and values of
// exported fie... | {
"resource": ""
} | ||
c164458 | train | // NewLoggingConn returns a logging wrapper around a connection. | {
"resource": ""
} | ||
c164459 | train | //NewLoggingConnFilter returns a logging wrapper around a connection and a filter function. | {
"resource": ""
} | ||
c164460 | train | // ClosePostStart closes any fds that are provided to the container and dup2'd
// so that we no longer have copy in our process. | {
"resource": ""
} | ||
c164461 | train | // NewFrame returns a new stack frame for the provided information | {
"resource": ""
} | ||
c164462 | train | // Returns user and kernel usage breakdown in nanoseconds. | {
"resource": ""
} | ||
c164463 | train | // ApplyBoundingSet sets the capability bounding set to those specified in the whitelist. | {
"resource": ""
} | ||
c164464 | train | // Apply sets all the capabilities for the current process in the config. | {
"resource": ""
} | ||
c164465 | train | // createSystemError creates the specified error with the correct number of
// stack frames skipped. This is only to be called by the other functions for
// formatting the error. | {
"resource": ""
} | ||
c164466 | train | // GetParentNSeuid returns the euid within the parent user namespace | {
"resource": ""
} | ||
c164467 | train | // prepareRootfs sets up the devices, mount points, and filesystems for use
// inside a new mount namespace. It doesn't set anything as ro. You must call
// finalizeRootfs after this function to finish setting up the rootfs. | {
"resource": ""
} | ||
c164468 | train | // finalizeRootfs sets anything to ro if necessary. You must call
// prepareRootfs first. | {
"resource": ""
} | ||
c164469 | train | // Create the device nodes in the container. | {
"resource": ""
} | ||
c164470 | train | // Creates the device node in the rootfs of the container. | {
"resource": ""
} | ||
c164471 | train | // Get the parent mount point of directory passed in as argument. Also return
// optional fields. | {
"resource": ""
} | ||
c164472 | train | // Make parent mount private if it was shared | {
"resource": ""
} | ||
c164473 | train | // pivotRoot will call pivot_root such that rootfs becomes the new root
// filesystem, and everything else is cleaned up. | {
"resource": ""
} | ||
c164474 | train | // readonlyPath will make a path read only. | {
"resource": ""
} | ||
c164475 | train | // remountReadonly will remount an existing mount point and ensure that it is read-only. | {
"resource": ""
} | ||
c164476 | train | // Do the mount operation followed by additional mounts required to take care
// of propagation flags. | {
"resource": ""
} | ||
c164477 | train | // InitArgs returns an options func to configure a LinuxFactory with the
// provided init binary path and arguments. | {
"resource": ""
} | ||
c164478 | train | // SystemdCgroups is an options func to configure a LinuxFactory to return
// containers that use systemd to create and manage cgroups. | {
"resource": ""
} | ||
c164479 | train | // Cgroupfs is an options func to configure a LinuxFactory to return containers
// that use the native cgroups filesystem implementation to create and manage
// cgroups. | {
"resource": ""
} | ||
c164480 | train | // TmpfsRoot is an option func to mount LinuxFactory.Root to tmpfs. | {
"resource": ""
} | ||
c164481 | train | // CriuPath returns an option func to configure a LinuxFactory with the
// provided criupath | {
"resource": ""
} | ||
c164482 | train | // New returns a linux based container factory based in the root directory and
// configures the factory with the provided option funcs. | {
"resource": ""
} | ||
c164483 | train | // StartInitialization loads a container by opening the pipe fd from the parent to read the configuration and state
// This is a low level implementation detail of the reexec and should not be consumed externally | {
"resource": ""
} | ||
c164484 | train | // NewuidmapPath returns an option func to configure a LinuxFactory with the
// provided .. | {
"resource": ""
} | ||
c164485 | train | // NewgidmapPath returns an option func to configure a LinuxFactory with the
// provided .. | {
"resource": ""
} | ||
c164486 | train | // setupSpec performs initial setup based on the cli.Context for the container | {
"resource": ""
} | ||
c164487 | train | // NewSockPair returns a new unix socket pair | {
"resource": ""
} | ||
c164488 | train | // ResolveRootfs ensures that the current working directory is
// not a symlink and returns the absolute path to the rootfs | {
"resource": ""
} | ||
c164489 | train | // WriteJSON writes the provided struct v to w using standard json marshaling | {
"resource": ""
} | ||
c164490 | train | // SearchLabels searches a list of key-value pairs for the provided key and
// returns the corresponding value. The pairs must be separated with '='. | {
"resource": ""
} | ||
c164491 | train | // Annotations returns the bundle path and user defined annotations from the
// libcontainer state. We need to remove the bundle because that is a label
// added by libcontainer. | {
"resource": ""
} | ||
c164492 | train | // ConvertStringToOperator converts a string into a Seccomp comparison operator.
// Comparison operators use the names they are assigned by Libseccomp's header.
// Attempting to convert a string that is not a valid operator results in an
// error. | {
"resource": ""
} | ||
c164493 | train | // ConvertStringToArch converts a string into a Seccomp comparison arch. | {
"resource": ""
} | ||
c164494 | train | // If systemd is supporting sd_notify protocol, this function will add support
// for sd_notify protocol from within the container. | {
"resource": ""
} | ||
c164495 | train | // pid1 must be set only with -d, as it is used to set the new process as the main process
// for the service in systemd | {
"resource": ""
} | ||
c164496 | train | // GetCgroupMounts returns the mounts for the cgroup subsystems.
// all indicates whether to return just the first instance or all the mounts. | {
"resource": ""
} | ||
c164497 | train | // helper function for ParseCgroupFile to make testing easier | {
"resource": ""
} | ||
c164498 | train | // RemovePaths iterates over the provided paths removing them.
// We trying to remove all paths five times with increasing delay between tries.
// If after all there are not removed cgroups - appropriate error will be
// returned. | {
"resource": ""
} | ||
c164499 | train | // GetAllPids returns all pids, that were added to cgroup at path and to all its
// subcgroups. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.