_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c12900
// Timeout returns an ConfigOpt that sets a Config's response header timeout, tls handshake timeout, // and dialer timeout.
c12901
// RoundTripper returns a ConfigOpt that sets a Config's round-tripper.
c12902
// TLSConfig returns a ConfigOpt that sets a Config's TLS configuration.
c12903
// Transport returns a ConfigOpt that allows tweaks of the default Config's http.Transport
c12904
// WrapRoundTripper allows a caller to customize a configuration's HTTP exchanger. Useful // for authentication protocols that operate over stock HTTP.
c12905
// Minus calculates and returns the result of `resources - that` without modifying either // the receiving `resources` or `that`.
c12906
// Plus calculates and returns the result of `resources + that` without modifying either // the receiving `resources` or `that`.
c12907
// Minus1 calculates and returns the result of `resources - that` without modifying either // the receiving `resources` or `that`.
c12908
// 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.
c12909
// Contains tests if "right" is contained in "left".
c12910
// Subtract removes right from left. // This func panics if the resource types don't match.
c12911
// checkType panics if the type of this resources != t
c12912
// 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.
c12913
// IsUnreserved returns true if this resource neither statically or dynamically reserved. // A resource is considered statically reserved if it has a non-default role.
c12914
// 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.
c12915
// IsAllocatableTo returns true if the resource may be allocated to the given role.
c12916
// IsDynamicallyReserved returns true if this resource has a non-nil reservation descriptor
c12917
// IsDisk returns true if this is a disk resource of the specified type.
c12918
// 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.
c12919
// Allocate sets the AllocationInfo for the resource, panics if role is "".
c12920
// Allocate sets the AllocationInfo for all the resources. // Returns a reference to the receiver to allow for chaining.
c12921
// Unallocate clears the AllocationInfo for all the resources. // Returns a reference to the receiver to allow for chaining.
c12922
// Merged generates a single Opt that applies all the functional options, in-order
c12923
// And combines two functional options into a single Opt
c12924
// NewHTTPTransporter creates a new http transporter with an optional binding address.
c12925
// Send sends the message to its specified upid.
c12926
// 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.
c12927
// Start starts the http transporter
c12928
// start expects to be guarded by stateLock
c12929
// Stop stops the http transporter by closing the listener.
c12930
// stop expects to be guarded by stateLock
c12931
// UPID returns the upid of the transporter.
c12932
// NewDecoder returns a new Decoder of Protobuf messages read from the given Source.
c12933
// Call implements the Caller interface for CallerFunc
c12934
// CallNoData is a convenience func that executes the given Call using the provided Caller // and always drops the response data.
c12935
// 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.
c12936
// Handle generates a rule that executes the given events.Handler.
c12937
// putOffer stores an offer and the slavePID associated with offer.
c12938
// getOffer returns cached offer
c12939
// SourceReader returns a Source that buffers all input from the given io.Reader // and returns the contents in a single frame.
c12940
// 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.
c12941
// WriterFor adapts an io.Writer to the Writer interface. All buffers are written to `w` without decoration or // modification.
c12942
// Int adds the value of `x`; convenience func for adding integers.
c12943
// 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.
c12944
// BasicAuth generates a functional config option that sets HTTP Basic authentication for a Client
c12945
// Call returns a Rule that invokes the given Caller
c12946
// Caller returns a Rule that invokes the receiver and then calls the given Caller
c12947
// CallerF returns a Rule that invokes the receiver and then calls the given CallerFunc
c12948
// Close may panic for an uninitialized L
c12949
// Reset clears the state of the latch, not safe to execute concurrently with other L methods.
c12950
// If applies a filter func to a resource reducer; rejected resources are not processed by the receiving reducer.
c12951
// IfNot applies a filter func to a resource reducer; accepted resources are not processed by the receiving reducer.
c12952
// Reduce applies the given Reducer to produce a final Resource, iterating left-to-right over the given // resources; panics if the Reducer is nil.
c12953
// With applies the given ReconcileOpt's to the receiving Call_Reconcile, returning it.
c12954
// Copy returns a cloned copy of CallOptions
c12955
// reflects an unrecoverable, illegal mechanism state; always returns IllegalState // as the next step along with an IllegalStateErr
c12956
// NewReader returns a reader that parses frames from a recordio stream.
c12957
// ReadFrame implements framing.Reader
c12958
// NewMesosExecutorDriver creates a new mesos executor driver.
c12959
// Stop stops the driver by sending a 'stopEvent' to the event loop, and // receives the result from the response channel.
c12960
// internal function for stopping the driver and set reason for stopping // Note that messages inflight or queued will not be processed.
c12961
// Abort aborts the driver by sending an 'abortEvent' to the event loop, and // receives the result from the response channel.
c12962
// Join waits for the driver by sending a 'joinEvent' to the event loop, and wait // on a channel for the notification of driver termination.
c12963
// SendStatusUpdate sends status updates to the slave.
c12964
// SendFrameworkMessage sends the framework message by sending a 'sendFrameworkMessageEvent' // to the event loop, and receives the result from the response channel.
c12965
// unacknowledgedTasks generates the value of the UnacknowledgedTasks field of a Subscribe call.
c12966
// unacknowledgedUpdates generates the value of the UnacknowledgedUpdates field of a Subscribe call.
c12967
// Create a new stand alone master detector.
c12968
// Detecting the new master.
c12969
// HandleEvent implements Handler for Handlers
c12970
// Parse parses the UPID from the input string.
c12971
// Equal returns true if two upid is equal
c12972
// 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.
c12973
// ListFiles retrieves the file listing for a directory in master.
c12974
// 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.
c12975
// UpdateWeights updates weights for specific roles.
c12976
// ReserveResources reserves resources dynamically on a specific agent.
c12977
// UnreserveResources unreserves resources dynamically on a specific agent.
c12978
// 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.
c12979
// DestroyVolumes destroys persistent volumes. The request is forwarded asynchronously to the Mesos agent where the // reserved resources are located.
c12980
// 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.
c12981
// 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.
c12982
// UpdateMaintenanceSchedule updates the cluster's maintenance schedule.
c12983
// StartMaintenance starts the maintenance of the cluster, this would bring a set of machines down.
c12984
// StopMaintenance stops the maintenance of the cluster, this would bring a set of machines back up.
c12985
// SetQuota sets the quota for resources to be used by a particular role.
c12986
// RemoveQuota removes the quota for a particular role.
c12987
// MarkAgentGone removes the quota for a particular role.
c12988
// Teardown removes the quota for a particular role.
c12989
// Span is a functional option for Ranges, defines the begin and end points of a // continuous span within a range
c12990
// 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.
c12991
// Cancel the decoding process; if graceful then process pending responses before terminating
c12992
// updateForRequest updates the chunked and kalive fields of the decoder to align // with the header values of the request
c12993
// terminateState forcefully shuts down the state machine
c12994
// checkTimeoutOrFail tests whether the given error is related to a timeout condition. // returns true if the caller should advance to the returned state.
c12995
// 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.
c12996
// MaxRedirects is a functional option that sets the maximum number of per-call HTTP redirects for a scheduler client
c12997
// 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.
c12998
// 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.
c12999
// Call implements Client