_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c174400 | // Run creates a new Docker container as defined by current image and container
// template.
//
// Returns ExternalCmdError or UnexpectedOutputError on error. | |
c174401 | // Setup check if Docker binary is available and pull current image from Docker
// repository in case it is not already available. | |
c174402 | //
// Location related functions and methods
//
// Create a Location | |
c174403 | // PortAt returns expose and publish port information at especified index. | |
c174404 | // SplitPort splits port number and protocol name from Ports string. | |
c174405 | // Priority returns a syslog.Priority representation of SyslogFacility. | |
c174406 | // OK checks if SyslogFacility is valid. | |
c174407 | // Format creates JSON struct from provided record and returns it. | |
c174408 | // Open creates and opens a database at the given path. If the file does
// not exist then it will be created automatically. Passing in nil options
// will cause Bolt to open the database with the default options. | |
c174409 | // Begin wraps bolt.DB.Begin. | |
c174410 | // View wraps bolt.DB.View. | |
c174411 | // CopyFile copies the entire database to file at the given path. A reader
// transaction is maintained during the copy so it is safe to continue
// using the database while a copy is in progress. | |
c174412 | // CreateBucketIfNotExists creates a new bucket if it doesn't already
// exist. Returns an error if the bucket name is blank, or if the bucket
// name is too long. The bucket instance is only valid for the lifetime of
// the transaction. | |
c174413 | // Delete deletes a key. | |
c174414 | // ForEach iterates over all key values of a folder. | |
c174415 | // ForEach iterates over all key values of a folder, decode non-nil values using gob. | |
c174416 | // Put sets the value for a key in the transaction.
// If the key exist then its previous value will be overwritten.
// Supplied value must remain valid for the life of the transaction.
// Returns an error if the bucket was created from a read-only transaction,
// if the key is blank, if the key is too large, or if the... | |
c174417 | // Value tries to get a value from the transaction. If the key does not
// exist, the f is not called and nil is return. | |
c174418 | // Updates fetches the current value and updates to a new value. If a nil
// value is returned by f, the item is deleted. | |
c174419 | // Bucket retrieves a nested bucket by name. Returns nil if the bucket
// does not exist. The bucket instance is only valid for the lifetime of
// the transaction. folders can be empty, in which case the b itself is
// sent to f. | |
c174420 | // CreateBucketIfNotExists creates a new bucket if it doesn't already
// exist and returns a reference to it. Returns an error if the bucket
// name is blank, or if the bucket name is too long. The bucket instance
// is only valid for the lifetime of the transaction. | |
c174421 | // Delete removes a key from the bucket. If the key does not exist then
// nothing is done and a nil error is returned. Returns an error if the
// bucket was created from a read-only transaction. | |
c174422 | // GobValue retrieves a value written by PutGob and decode it. | |
c174423 | // NextSequence returns an autoincrementing integer for the bucket. | |
c174424 | // Put sets the value for a key in the bucket. If the key exist then its
// previous value will be overwritten. Supplied value must remain valid
// for the life of the transaction. Returns an error if the bucket was
// created from a read-only transaction, if the key is blank, if the key
// is too large, or if the valu... | |
c174425 | // PutGob serialize v using gob and put it into the key. | |
c174426 | // Drop clears the database | |
c174427 | // HandleError prints provided error to stderr. | |
c174428 | // Handle writes all provided log records to writer provided during creation. | |
c174429 | // Handle appends message to Messages array. | |
c174430 | // WaitPeerListening wait for specified peer be ready for new connections. | |
c174431 | // NewEvent construct new event. | |
c174432 | // Subscribe to events.
// It will return true if successfully subscribed, means the handler haven't subscribed before. | |
c174433 | // Unsubscribe handler from the bus.
// It will return false if the handler not subscribed. | |
c174434 | // Publish an event. | |
c174435 | // HandleOnly specific type of event. | |
c174436 | // ContextWithPublisher constructs new context with bus. | |
c174437 | // PublisherContext return the publisher. | |
c174438 | // PublishNamedEvent which name infered from eventBody interface name. | |
c174439 | // PublishEventContext publish event for given ctx. | |
c174440 | // PublishNamedEventContext publish named event for given ctx. The name infered from eventBody interface name. | |
c174441 | // String returns stirng representation of log level. | |
c174442 | // UnmarshalJSON implements json.Unamrshaler interface. | |
c174443 | // NewSTM initiates a new STM instance, using serializable snapshot isolation by default. | |
c174444 | // first returns the store revision from the first fetch | |
c174445 | // cmps returns a cmp list testing no writes have happened past rev | |
c174446 | // NewSTMRepeatable is deprecated. | |
c174447 | // NewSTMSerializable is deprecated. | |
c174448 | // NewSTMReadCommitted is deprecated. | |
c174449 | // NewCertPool creates x509 certPool with provided CA files. | |
c174450 | // NewCert generates TLS cert by using the given cert,key and parse function. | |
c174451 | // Pause pauses the peer. The peer will simply drops all incoming
// messages without returning an error. | |
c174452 | // Resume resumes a paused peer. | |
c174453 | // pick picks a chan for sending the given message. The picked chan and the picked chan
// string name are returned. | |
c174454 | // post posts the given request.
// It returns nil when request is sent out and processed successfully. | |
c174455 | // newTxnResp allocates a txn response for a txn request given a path. | |
c174456 | // applyCompare applies the compare request.
// If the comparison succeeds, it returns true. Otherwise, returns false. | |
c174457 | // OpCompact wraps slice CompactOption to create a CompactOp. | |
c174458 | // NewPriorityQueue creates an etcd priority queue. | |
c174459 | // Enqueue puts a value into a queue with a given priority. | |
c174460 | // NewLeaderStats generates a new LeaderStats with the given id as leader | |
c174461 | // Succ updates the FollowerStats with a successful send | |
c174462 | // Fail updates the FollowerStats with an unsuccessful send | |
c174463 | // delete removes a watcher and returns the number of remaining watchers. | |
c174464 | // startStreamWriter creates a streamWrite and starts a long running go-routine that accepts
// messages and writes to the attached outgoing connection. | |
c174465 | // checkStreamSupport checks whether the stream type is supported in the
// given version. | |
c174466 | // maybeUpdate returns false if the given n index comes from an outdated message.
// Otherwise it updates the progress and returns true. | |
c174467 | // IsPaused returns whether sending log entries to this node has been
// paused. A node may be paused because it has rejected recent
// MsgApps, is currently waiting for a snapshot, or has reached the
// MaxInflightMsgs limit. | |
c174468 | // needSnapshotAbort returns true if snapshot progress's Match
// is equal or higher than the pendingSnapshot. | |
c174469 | // add adds an inflight into inflights | |
c174470 | // grow the inflight buffer by doubling up to inflights.size. We grow on demand
// instead of preallocating to inflights.size to handle systems which have
// thousands of Raft groups per process. | |
c174471 | // freeTo frees the inflights smaller or equal to the given `to` flight. | |
c174472 | // SaveDBFrom saves snapshot of the database from the given reader. It
// guarantees the save operation is atomic. | |
c174473 | // DBFilePath returns the file path for the snapshot of the database with
// given id. If the snapshot does not exist, it returns error. | |
c174474 | // Set parses a command line set of strings, separated by comma.
// Implements "flag.Value" interface.
// The values are set in order. | |
c174475 | // NewUniqueStringsValue implements string slice as "flag.Value" interface.
// Given value is to be separated by comma.
// The values are set in order. | |
c174476 | // UniqueStringsFromFlag returns a string slice from the flag. | |
c174477 | // UniqueStringsMapFromFlag returns a map of strings from the flag. | |
c174478 | // Percentiles returns percentile distribution of float64 slice. | |
c174479 | // VerifyBootstrap sanity-checks the initial config for bootstrap case
// and returns an error for things that should never happen. | |
c174480 | // VerifyJoinExisting sanity-checks the initial config for join existing cluster
// case and returns an error for things that should never happen. | |
c174481 | // hasLocalMember checks that the cluster at least contains the local server. | |
c174482 | // advertiseMatchesCluster confirms peer URLs match those in the cluster peer list. | |
c174483 | // ReqTimeout returns timeout for request to finish. | |
c174484 | // getStatus gets a copy of the current raft status. | |
c174485 | // GetDefaultHost obtains the first IP address of machine from the routing table and returns the IP address as string.
// An IPv4 address is preferred to an IPv6 address for backward compatibility. | |
c174486 | // Used to get an address of interface. | |
c174487 | // Used to get a name of interface. | |
c174488 | // lsCommandFunc executes the "ls" command. | |
c174489 | // printLs writes a response out in a manner similar to the `ls` command in unix.
// Non-empty directories list their contents and files list their name. | |
c174490 | // rPrint recursively prints out the nodes in the node structure. | |
c174491 | // NewLeaseRenewerCommand returns the cobra command for "lease-renewer runner". | |
c174492 | // Read reads the snapshot named by snapname and returns the snapshot. | |
c174493 | // GetCipherSuite returns the corresponding cipher suite,
// and boolean value if it is supported. | |
c174494 | // post POSTs a data payload to a url. Returns nil if the POST succeeds,
// error on any failure. | |
c174495 | // send persists state to stable storage and then sends to its mailbox. | |
c174496 | // sendHeartbeat sends a heartbeat RPC to the given peer. | |
c174497 | // bcastAppend sends RPC, with entries to all peers that are not up-to-date
// according to the progress recorded in r.prs. | |
c174498 | // bcastHeartbeat sends RPC, without entries to all the peers. | |
c174499 | // tickElection is run by followers and candidates after r.electionTimeout. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.