_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c12900 | train | // Timeout returns an ConfigOpt that sets a Config's response header timeout, tls handshake timeout,
// and dialer timeout. | {
"resource": ""
} | ||
c12901 | train | // RoundTripper returns a ConfigOpt that sets a Config's round-tripper. | {
"resource": ""
} | ||
c12902 | train | // TLSConfig returns a ConfigOpt that sets a Config's TLS configuration. | {
"resource": ""
} | ||
c12903 | train | // Transport returns a ConfigOpt that allows tweaks of the default Config's http.Transport | {
"resource": ""
} | ||
c12904 | train | // WrapRoundTripper allows a caller to customize a configuration's HTTP exchanger. Useful
// for authentication protocols that operate over stock HTTP. | {
"resource": ""
} | ||
c12905 | train | // Minus calculates and returns the result of `resources - that` without modifying either
// the receiving `resources` or `that`. | {
"resource": ""
} | ||
c12906 | train | // Plus calculates and returns the result of `resources + that` without modifying either
// the receiving `resources` or `that`. | {
"resource": ""
} | ||
c12907 | train | // Minus1 calculates and returns the result of `resources - that` without modifying either
// the receiving `resources` or `that`. | {
"resource": ""
} | ||
c12908 | train | // Addable tests if we can add two Resource objects together resulting in one
// valid Resource object. For example, two Resource objects with
// different name, type or role are not addable. | {
"resource": ""
} | ||
c12909 | train | // Contains tests if "right" is contained in "left". | {
"resource": ""
} | ||
c12910 | train | // Subtract removes right from left.
// This func panics if the resource types don't match. | {
"resource": ""
} | ||
c12911 | train | // checkType panics if the type of this resources != t | {
"resource": ""
} | ||
c12912 | train | // IsEmpty returns true if the value of this resource is equivalent to the zero-value,
// where a zero-length slice or map is equivalent to a nil reference to such. | {
"resource": ""
} | ||
c12913 | train | // IsUnreserved returns true if this resource neither statically or dynamically reserved.
// A resource is considered statically reserved if it has a non-default role. | {
"resource": ""
} | ||
c12914 | train | // ReservationRole returns the role for which the resource is reserved. Callers should check the
// reservation status of the resource via IsReserved prior to invoking this func. | {
"resource": ""
} | ||
c12915 | train | // IsAllocatableTo returns true if the resource may be allocated to the given role. | {
"resource": ""
} | ||
c12916 | train | // IsDynamicallyReserved returns true if this resource has a non-nil reservation descriptor | {
"resource": ""
} | ||
c12917 | train | // IsDisk returns true if this is a disk resource of the specified type. | {
"resource": ""
} | ||
c12918 | train | // PopReservation returns a cloned set of Resources wherein the most recent reservation refeinement has been
// removed. Panics if for any resource in the collection there is no "last refinement" to remove. | {
"resource": ""
} | ||
c12919 | train | // Allocate sets the AllocationInfo for the resource, panics if role is "". | {
"resource": ""
} | ||
c12920 | train | // Allocate sets the AllocationInfo for all the resources.
// Returns a reference to the receiver to allow for chaining. | {
"resource": ""
} | ||
c12921 | train | // Unallocate clears the AllocationInfo for all the resources.
// Returns a reference to the receiver to allow for chaining. | {
"resource": ""
} | ||
c12922 | train | // Merged generates a single Opt that applies all the functional options, in-order | {
"resource": ""
} | ||
c12923 | train | // And combines two functional options into a single Opt | {
"resource": ""
} | ||
c12924 | train | // NewHTTPTransporter creates a new http transporter with an optional binding address. | {
"resource": ""
} | ||
c12925 | train | // Send sends the message to its specified upid. | {
"resource": ""
} | ||
c12926 | train | // send delivers a message to a mesos component via HTTP, returns a mesosError if the
// communication with the remote process was successful but rejected. A networkError
// error indicates that communication with the remote process failed at the network layer. | {
"resource": ""
} | ||
c12927 | train | // Start starts the http transporter | {
"resource": ""
} | ||
c12928 | train | // start expects to be guarded by stateLock | {
"resource": ""
} | ||
c12929 | train | // Stop stops the http transporter by closing the listener. | {
"resource": ""
} | ||
c12930 | train | // stop expects to be guarded by stateLock | {
"resource": ""
} | ||
c12931 | train | // UPID returns the upid of the transporter. | {
"resource": ""
} | ||
c12932 | train | // NewDecoder returns a new Decoder of Protobuf messages read from the given Source. | {
"resource": ""
} | ||
c12933 | train | // Call implements the Caller interface for CallerFunc | {
"resource": ""
} | ||
c12934 | train | // CallNoData is a convenience func that executes the given Call using the provided Caller
// and always drops the response data. | {
"resource": ""
} | ||
c12935 | train | // Metrics generates a Rule that invokes the given harness for each event, using the labels generated by the Labeler.
// Panics if harness or labeler is nil. | {
"resource": ""
} | ||
c12936 | train | // Handle generates a rule that executes the given events.Handler. | {
"resource": ""
} | ||
c12937 | train | // putOffer stores an offer and the slavePID associated with offer. | {
"resource": ""
} | ||
c12938 | train | // getOffer returns cached offer | {
"resource": ""
} | ||
c12939 | train | // SourceReader returns a Source that buffers all input from the given io.Reader
// and returns the contents in a single frame. | {
"resource": ""
} | ||
c12940 | train | // ReadAll returns a reader func that returns the complete contents of `r` in a single frame.
// A zero length frame is treated as an "end of stream" condition, returning io.EOF. | {
"resource": ""
} | ||
c12941 | train | // WriterFor adapts an io.Writer to the Writer interface. All buffers are written to `w` without decoration or
// modification. | {
"resource": ""
} | ||
c12942 | train | // Int adds the value of `x`; convenience func for adding integers. | {
"resource": ""
} | ||
c12943 | train | // NewHarness generates and returns an execution harness that records metrics. `counts` and `errors`
// are required; `timed` and `clock` must either both be nil, or both be non-nil. | {
"resource": ""
} | ||
c12944 | train | // BasicAuth generates a functional config option that sets HTTP Basic authentication for a Client | {
"resource": ""
} | ||
c12945 | train | // Call returns a Rule that invokes the given Caller | {
"resource": ""
} | ||
c12946 | train | // Caller returns a Rule that invokes the receiver and then calls the given Caller | {
"resource": ""
} | ||
c12947 | train | // CallerF returns a Rule that invokes the receiver and then calls the given CallerFunc | {
"resource": ""
} | ||
c12948 | train | // Close may panic for an uninitialized L | {
"resource": ""
} | ||
c12949 | train | // Reset clears the state of the latch, not safe to execute concurrently with other L methods. | {
"resource": ""
} | ||
c12950 | train | // If applies a filter func to a resource reducer; rejected resources are not processed by the receiving reducer. | {
"resource": ""
} | ||
c12951 | train | // IfNot applies a filter func to a resource reducer; accepted resources are not processed by the receiving reducer. | {
"resource": ""
} | ||
c12952 | train | // Reduce applies the given Reducer to produce a final Resource, iterating left-to-right over the given
// resources; panics if the Reducer is nil. | {
"resource": ""
} | ||
c12953 | train | // With applies the given ReconcileOpt's to the receiving Call_Reconcile, returning it. | {
"resource": ""
} | ||
c12954 | train | // Copy returns a cloned copy of CallOptions | {
"resource": ""
} | ||
c12955 | train | // reflects an unrecoverable, illegal mechanism state; always returns IllegalState
// as the next step along with an IllegalStateErr | {
"resource": ""
} | ||
c12956 | train | // NewReader returns a reader that parses frames from a recordio stream. | {
"resource": ""
} | ||
c12957 | train | // ReadFrame implements framing.Reader | {
"resource": ""
} | ||
c12958 | train | // NewMesosExecutorDriver creates a new mesos executor driver. | {
"resource": ""
} | ||
c12959 | train | // Stop stops the driver by sending a 'stopEvent' to the event loop, and
// receives the result from the response channel. | {
"resource": ""
} | ||
c12960 | train | // internal function for stopping the driver and set reason for stopping
// Note that messages inflight or queued will not be processed. | {
"resource": ""
} | ||
c12961 | train | // Abort aborts the driver by sending an 'abortEvent' to the event loop, and
// receives the result from the response channel. | {
"resource": ""
} | ||
c12962 | train | // Join waits for the driver by sending a 'joinEvent' to the event loop, and wait
// on a channel for the notification of driver termination. | {
"resource": ""
} | ||
c12963 | train | // SendStatusUpdate sends status updates to the slave. | {
"resource": ""
} | ||
c12964 | train | // SendFrameworkMessage sends the framework message by sending a 'sendFrameworkMessageEvent'
// to the event loop, and receives the result from the response channel. | {
"resource": ""
} | ||
c12965 | train | // unacknowledgedTasks generates the value of the UnacknowledgedTasks field of a Subscribe call. | {
"resource": ""
} | ||
c12966 | train | // unacknowledgedUpdates generates the value of the UnacknowledgedUpdates field of a Subscribe call. | {
"resource": ""
} | ||
c12967 | train | // Create a new stand alone master detector. | {
"resource": ""
} | ||
c12968 | train | // Detecting the new master. | {
"resource": ""
} | ||
c12969 | train | // HandleEvent implements Handler for Handlers | {
"resource": ""
} | ||
c12970 | train | // Parse parses the UPID from the input string. | {
"resource": ""
} | ||
c12971 | train | // Equal returns true if two upid is equal | {
"resource": ""
} | ||
c12972 | train | // GetMetrics gives the snapshot of current metrics to the end user. If timeout is set in the call, it will be used to
// determine the maximum amount of time the API will take to respond. If the timeout is exceeded, some metrics may not
// be included in the response. | {
"resource": ""
} | ||
c12973 | train | // ListFiles retrieves the file listing for a directory in master. | {
"resource": ""
} | ||
c12974 | train | // ReadFile reads data from a file on the master. This call takes the path of the file to be read and the offset to
// start reading. | {
"resource": ""
} | ||
c12975 | train | // UpdateWeights updates weights for specific roles. | {
"resource": ""
} | ||
c12976 | train | // ReserveResources reserves resources dynamically on a specific agent. | {
"resource": ""
} | ||
c12977 | train | // UnreserveResources unreserves resources dynamically on a specific agent. | {
"resource": ""
} | ||
c12978 | train | // CreateVolumes creates persistent volumes on reserved resources. The request is forwarded asynchronously to the Mesos
// agent where the reserved resources are located. That asynchronous message may not be delivered or creating the
// volumes at the agent might fail. | {
"resource": ""
} | ||
c12979 | train | // DestroyVolumes destroys persistent volumes. The request is forwarded asynchronously to the Mesos agent where the
// reserved resources are located. | {
"resource": ""
} | ||
c12980 | train | // GrowVolume grows a persistent volume on an agent's ROOT or PATH disks. The request is forwarded asynchronously to
// the Mesos agent where the persistent volume is located. | {
"resource": ""
} | ||
c12981 | train | // ShrinkVolume shrinks a persistent volume on an agent's ROOT or PATH disks. The request is forwarded asynchronously
// to the Mesos agent where the persistent volume is located. | {
"resource": ""
} | ||
c12982 | train | // UpdateMaintenanceSchedule updates the cluster's maintenance schedule. | {
"resource": ""
} | ||
c12983 | train | // StartMaintenance starts the maintenance of the cluster, this would bring a set of machines down. | {
"resource": ""
} | ||
c12984 | train | // StopMaintenance stops the maintenance of the cluster, this would bring a set of machines back up. | {
"resource": ""
} | ||
c12985 | train | // SetQuota sets the quota for resources to be used by a particular role. | {
"resource": ""
} | ||
c12986 | train | // RemoveQuota removes the quota for a particular role. | {
"resource": ""
} | ||
c12987 | train | // MarkAgentGone removes the quota for a particular role. | {
"resource": ""
} | ||
c12988 | train | // Teardown removes the quota for a particular role. | {
"resource": ""
} | ||
c12989 | train | // Span is a functional option for Ranges, defines the begin and end points of a
// continuous span within a range | {
"resource": ""
} | ||
c12990 | train | // Otherwise returns a HandlerFunc that attempts to process an event with the Handlers map; unmatched event types are
// processed by the given HandlerFunc. A nil HandlerFunc parameter is effecitvely a noop. | {
"resource": ""
} | ||
c12991 | train | // Cancel the decoding process; if graceful then process pending responses before terminating | {
"resource": ""
} | ||
c12992 | train | // updateForRequest updates the chunked and kalive fields of the decoder to align
// with the header values of the request | {
"resource": ""
} | ||
c12993 | train | // terminateState forcefully shuts down the state machine | {
"resource": ""
} | ||
c12994 | train | // checkTimeoutOrFail tests whether the given error is related to a timeout condition.
// returns true if the caller should advance to the returned state. | {
"resource": ""
} | ||
c12995 | train | // Eval is a Rule func that processes the set of all Rules. If there are no rules in the
// set then control is simply passed to the Chain. | {
"resource": ""
} | ||
c12996 | train | // MaxRedirects is a functional option that sets the maximum number of per-call HTTP redirects for a scheduler client | {
"resource": ""
} | ||
c12997 | train | // AllowReconnection allows a subsequent SUBSCRIBE call before a prior SUBSCRIBE has experienced a network
// or protocol error. Useful in concert with heartbeat detection and for other edge error cases not handled
// by the connection state machine. | {
"resource": ""
} | ||
c12998 | train | // NewCaller returns a scheduler API Client in the form of a Caller. Concurrent invocations
// of Call upon the returned caller are safely executed in a serial fashion. It is expected that
// there are no other users of the given Client since its state may be modified by this impl. | {
"resource": ""
} | ||
c12999 | train | // Call implements Client | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.