_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c27500 | train | // AddJob runs a job on the host. | {
"resource": ""
} | ||
c27501 | train | // GetJob retrieves job details by ID. | {
"resource": ""
} | ||
c27502 | train | // StopJob stops a running job. | {
"resource": ""
} | ||
c27503 | train | // SignalJob sends a signal to a running job. | {
"resource": ""
} | ||
c27504 | train | // DiscoverdDeregisterJob requests a job to deregister from service discovery. | {
"resource": ""
} | ||
c27505 | train | // StreamEvents about job state changes to ch. id may be "all" or a single
// job ID. | {
"resource": ""
} | ||
c27506 | train | // CreateVolume a new volume with the given configuration.
// When in doubt, use a providerId of "default". | {
"resource": ""
} | ||
c27507 | train | // GetVolume gets a volume by ID | {
"resource": ""
} | ||
c27508 | train | // ListVolume returns a list of volume IDs | {
"resource": ""
} | ||
c27509 | train | // StreamVolumes streams volume events to the given channel | {
"resource": ""
} | ||
c27510 | train | // DestroyVolume deletes a volume by ID | {
"resource": ""
} | ||
c27511 | train | // Create snapshot creates a snapshot of a volume on a host. | {
"resource": ""
} | ||
c27512 | train | // PullSnapshot requests the host pull a snapshot from another host onto one of
// its volumes. Returns the info for the new snapshot. | {
"resource": ""
} | ||
c27513 | train | // PullImages pulls images from a TUF repository using the local TUF file in tufDB | {
"resource": ""
} | ||
c27514 | train | // PullBinariesAndConfig pulls binaries and config from a TUF repository using the local TUF file in tufDB | {
"resource": ""
} | ||
c27515 | train | // Whitelisted endpoints won't be proxied. | {
"resource": ""
} | ||
c27516 | train | // servePutService creates a service. | {
"resource": ""
} | ||
c27517 | train | // serveDeleteService removes a service from the store by name. | {
"resource": ""
} | ||
c27518 | train | // serveGetService streams service events to the client. | {
"resource": ""
} | ||
c27519 | train | // serveServiceMeta sets the metadata for a service. | {
"resource": ""
} | ||
c27520 | train | // serveGetServiceMeta returns the metadata for a service. | {
"resource": ""
} | ||
c27521 | train | // servePutInstance adds an instance to a service. | {
"resource": ""
} | ||
c27522 | train | // serveDeleteInstance removes an instance from the store by name. | {
"resource": ""
} | ||
c27523 | train | // serveGetInstances returns a list of all instances for a service. | {
"resource": ""
} | ||
c27524 | train | // servePutLeader sets the leader for a service. | {
"resource": ""
} | ||
c27525 | train | // serveGetLeader returns the current leader for a service. | {
"resource": ""
} | ||
c27526 | train | // servePromote attempts to promote this discoverd peer to a raft peer | {
"resource": ""
} | ||
c27527 | train | // serveDemote attempts to demote this peer from a raft peer to a proxy | {
"resource": ""
} | ||
c27528 | train | // serveStream creates a subscription and streams out events in SSE format. | {
"resource": ""
} | ||
c27529 | train | // serveGetRaftLeader returns the current raft leader. | {
"resource": ""
} | ||
c27530 | train | // serveGetRaftPeers returns the current raft peers. | {
"resource": ""
} | ||
c27531 | train | // servePutRaftNodes joins a peer to the store cluster. | {
"resource": ""
} | ||
c27532 | train | // serveDeleteRaftNodes removes a peer to the store cluster. | {
"resource": ""
} | ||
c27533 | train | // redirectToLeader redirects the request to the current known leader. | {
"resource": ""
} | ||
c27534 | train | // NewStore returns an instance of Store. | {
"resource": ""
} | ||
c27535 | train | // Open starts the raft consensus and opens the store. | {
"resource": ""
} | ||
c27536 | train | // Close shuts down the transport and store. | {
"resource": ""
} | ||
c27537 | train | // Leader returns the host of the current leader. Returns empty string if there is no leader.
// Panic if called before store is opened. | {
"resource": ""
} | ||
c27538 | train | // monitors the raft leader channel, updates the leader time, and resends to a local channel. | {
"resource": ""
} | ||
c27539 | train | // LeaderCh returns a channel that signals leadership change.
// Panic if called before store is opened. | {
"resource": ""
} | ||
c27540 | train | // AddPeer adds a peer to the raft cluster. Panic if store is not open yet. | {
"resource": ""
} | ||
c27541 | train | // RemovePeer removes a peer from the raft cluster. Panic if store is not open yet. | {
"resource": ""
} | ||
c27542 | train | // SetPeers sets a list of peers in the raft cluster. Panic if store is not open yet. | {
"resource": ""
} | ||
c27543 | train | // ServiceNames returns a sorted list of existing service names. | {
"resource": ""
} | ||
c27544 | train | // AddService creates a service with a configuration.
// Returns an error if the service already exists. | {
"resource": ""
} | ||
c27545 | train | // Config returns the configuration for service. | {
"resource": ""
} | ||
c27546 | train | // RemoveService deletes the service from the store. | {
"resource": ""
} | ||
c27547 | train | // Instances returns a list of instances for service. | {
"resource": ""
} | ||
c27548 | train | // ServiceMeta returns the meta data for a service. | {
"resource": ""
} | ||
c27549 | train | // SetServiceLeader manually sets the leader for a service. | {
"resource": ""
} | ||
c27550 | train | // invalidateServiceLeader updates the current leader of service. | {
"resource": ""
} | ||
c27551 | train | // expirer runs in a separate goroutine and checks for instance expiration. | {
"resource": ""
} | ||
c27552 | train | // EnforceExpiry checks all instances for expiration and issues an expiration command, if necessary.
// This function returns raft.ErrNotLeader if this store is not the current leader. | {
"resource": ""
} | ||
c27553 | train | // raftApply joins typ and cmd and applies it to raft.
// This call blocks until the apply completes and returns the error. | {
"resource": ""
} | ||
c27554 | train | // Snapshot implements raft.FSM. | {
"resource": ""
} | ||
c27555 | train | // Restore implements raft.FSM. | {
"resource": ""
} | ||
c27556 | train | // Subscribe creates a subscription to events on a given service. | {
"resource": ""
} | ||
c27557 | train | // broadcast sends an event to all subscribers.
// Requires the mu lock to be obtained. | {
"resource": ""
} | ||
c27558 | train | // Persist writes the snapshot to the sink. | {
"resource": ""
} | ||
c27559 | train | // ServiceInstances returns the instances of a service in sorted order. | {
"resource": ""
} | ||
c27560 | train | // ValidServiceName returns nil if service is valid. Otherwise returns an error. | {
"resource": ""
} | ||
c27561 | train | // Instances returns a list of instances for a service. | {
"resource": ""
} | ||
c27562 | train | // newRaftLayer returns a new instance of raftLayer. | {
"resource": ""
} | ||
c27563 | train | // CloseStream closes the associated stream | {
"resource": ""
} | ||
c27564 | train | // NewClient returns a new Client to handle requests to the
// set of services at the other end of the connection.
// It adds a buffer to the write side of the connection so
// the header and payload are sent as a unit. | {
"resource": ""
} | ||
c27565 | train | // DialHTTP connects to an HTTP RPC server at the specified network address
// listening on the default HTTP RPC path. | {
"resource": ""
} | ||
c27566 | train | // DialHTTPPath connects to an HTTP RPC server
// at the specified network address and path. | {
"resource": ""
} | ||
c27567 | train | // Dial connects to an RPC server at the specified network address. | {
"resource": ""
} | ||
c27568 | train | // Go invokes the streaming function asynchronously. It returns the Call structure representing
// the invocation. | {
"resource": ""
} | ||
c27569 | train | // String encodes dsn to a URL string format. | {
"resource": ""
} | ||
c27570 | train | // ping neighbor leases five at a time, timeout 1 second, returning as soon as
// one returns success. | {
"resource": ""
} | ||
c27571 | train | // migrateProcessData populates ProcessType.Volumes if ProcessType.Data is set | {
"resource": ""
} | ||
c27572 | train | // Finalize safely finalizes the trace for read access. | {
"resource": ""
} | ||
c27573 | train | // traceRequest sets up request tracing and returns the modified
// request. | {
"resource": ""
} | ||
c27574 | train | // Retry db queries in case postgres has been deployed | {
"resource": ""
} | ||
c27575 | train | // comparisons are encoded as a single type byte followed by zero or more bytes
// that are specific to the comparison type.
//
// UINT8 - type
// UINT8 0..n - bytes | {
"resource": ""
} | ||
c27576 | train | // Bytes returns the RFC6587-framed bytes of an RFC5424 syslog Message,
// including length prefix. | {
"resource": ""
} | ||
c27577 | train | // Split is a bufio.SplitFunc that splits on RFC6587-framed syslog messages. | {
"resource": ""
} | ||
c27578 | train | // SplitWithNewlines is a bufio.SplitFunc that splits on RFC6587-framed syslog
// messages that are each followed by a newline. | {
"resource": ""
} | ||
c27579 | train | // CloseNotifyConn returns a net.Conn that implements http.CloseNotifier.
// Used to detect connections closed early on the client side. | {
"resource": ""
} | ||
c27580 | train | // Decode finds the next "data" field and decodes it into v | {
"resource": ""
} | ||
c27581 | train | // WatchSubnets waits for a service metadata event with an index greater than
// a given value, and then returns a response. | {
"resource": ""
} | ||
c27582 | train | // newLogger returns a log15.Logger which writes to stdout and a log file | {
"resource": ""
} | ||
c27583 | train | // NewProgressBar creates a progress bar which is pinned to the bottom of the
// terminal screen | {
"resource": ""
} | ||
c27584 | train | // GetVersion returns the given target's version from custom metadata | {
"resource": ""
} | ||
c27585 | train | // IsRetryableError indicates whether a HTTP request can be safely retried. | {
"resource": ""
} | ||
c27586 | train | // evalLater triggers a cluster state evaluation after delay has elapsed | {
"resource": ""
} | ||
c27587 | train | // As the primary, converts the current cluster to normal mode from singleton
// mode. | {
"resource": ""
} | ||
c27588 | train | // Reconfigure database based on the current configuration. During
// reconfiguration, new requests to reconfigure will be ignored, and incoming
// cluster state changes will be recorded but otherwise ignored. When
// reconfiguration completes, if the desired configuration has changed, we'll
// take another lap to appl... | {
"resource": ""
} | ||
c27589 | train | // Determine our index in the async peer list. -1 means not present. | {
"resource": ""
} | ||
c27590 | train | // Return the upstream peer for a given one of the async peers | {
"resource": ""
} | ||
c27591 | train | // Return the downstream peer for a given one of the async peers | {
"resource": ""
} | ||
c27592 | train | // Returns true if the given other peer appears to be present in the most
// recently received list of present peers. | {
"resource": ""
} | ||
c27593 | train | // NewReverseProxy initializes a new ReverseProxy with a callback to get
// backends, a stickyKey for encrypting sticky session cookies, and a flag
// sticky to enable sticky sessions. | {
"resource": ""
} | ||
c27594 | train | // ServeConn takes an inbound conn and proxies it to a backend. | {
"resource": ""
} | ||
c27595 | train | // update drains any pending events, updating the service metadata, it doesn't block. | {
"resource": ""
} | ||
c27596 | train | // MarkDone marks the addr as done in the service metadata | {
"resource": ""
} | ||
c27597 | train | // Wait waits for an expected number of "done" addresses in the service metadata | {
"resource": ""
} | ||
c27598 | train | // Create starts a new deployment with a given ID | {
"resource": ""
} | ||
c27599 | train | // Attach attaches to the job specified in req and returns an attach client. If
// wait is true, the client will wait for the job to start before returning the
// first bytes. If wait is false and the job is not running, ErrWouldWait is
// returned. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.