_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c13000
train
// redirectHandler returns a config options that decorates the default response handling routine; // it transforms normal Mesos redirect "errors" into mesosRedirectionErrors by parsing the Location // header and computing the address of the next endpoint that should be used to replay the failed // HTTP request.
{ "resource": "" }
c13001
train
// Filters sets a scheduler.Call's internal Filters, required for Accept and Decline calls.
{ "resource": "" }
c13002
train
// RefuseSecondsWithJitter returns a calls.Filters option that sets RefuseSeconds to a random number // of seconds between 0 and the given duration.
{ "resource": "" }
c13003
train
// RefuseSeconds returns a calls.Filters option that sets RefuseSeconds to the given duration
{ "resource": "" }
c13004
train
// Subscribe returns a subscribe call with the given parameters. // The call's FrameworkID is automatically filled in from the info specification.
{ "resource": "" }
c13005
train
// Accept returns an accept call with the given parameters. // Callers are expected to fill in the FrameworkID and Filters.
{ "resource": "" }
c13006
train
// AcceptInverseOffers returns an accept-inverse-offers call for the given offer IDs. // Callers are expected to fill in the FrameworkID and Filters.
{ "resource": "" }
c13007
train
// DeclineInverseOffers returns a decline-inverse-offers call for the given offer IDs. // Callers are expected to fill in the FrameworkID and Filters.
{ "resource": "" }
c13008
train
// OpLaunch returns a launch operation builder for the given tasks
{ "resource": "" }
c13009
train
// Revive returns a revive call with the given filters. // Callers are expected to fill in the FrameworkID.
{ "resource": "" }
c13010
train
// Suppress returns a suppress call with the given filters. // Callers are expected to fill in the FrameworkID.
{ "resource": "" }
c13011
train
// Decline returns a decline call with the given parameters. // Callers are expected to fill in the FrameworkID and Filters.
{ "resource": "" }
c13012
train
// Kill returns a kill call with the given parameters. // Callers are expected to fill in the FrameworkID.
{ "resource": "" }
c13013
train
// Shutdown returns a shutdown call with the given parameters. // Callers are expected to fill in the FrameworkID.
{ "resource": "" }
c13014
train
// Acknowledge returns an acknowledge call with the given parameters. // Callers are expected to fill in the FrameworkID.
{ "resource": "" }
c13015
train
// Reconcile returns a reconcile call with the given parameters. // See ReconcileTask. // Callers are expected to fill in the FrameworkID.
{ "resource": "" }
c13016
train
// Message returns a message call with the given parameters. // Callers are expected to fill in the FrameworkID.
{ "resource": "" }
c13017
train
// Request returns a resource request call with the given parameters. // Callers are expected to fill in the FrameworkID.
{ "resource": "" }
c13018
train
// ReconcileOperations allows the scheduler to query the status of operations. This causes the master to send // back the latest status for each operation in 'req', if possible. If 'req' is empty, then the master will send // the latest status for each operation currently known.
{ "resource": "" }
c13019
train
// Accept implements Filter for FilterFunc
{ "resource": "" }
c13020
train
// ByHostname returns a Filter that accepts offers with a matching Hostname
{ "resource": "" }
c13021
train
// ByAttributes returns a Filter that accepts offers with an attribute set accepted by // the provided Attribute filter func.
{ "resource": "" }
c13022
train
// ContainsResources returns a filter that returns true if the Resources of an Offer // contain the wanted Resources.
{ "resource": "" }
c13023
train
// Error generates an error from the given status code and detail string.
{ "resource": "" }
c13024
train
// Temporary returns true if the error is a temporary condition that should eventually clear.
{ "resource": "" }
c13025
train
// SubscriptionLoss returns true if the error indicates that the event subscription stream has been severed // between mesos and a mesos client.
{ "resource": "" }
c13026
train
// Matches returns true if the given error is an API error with a matching error code
{ "resource": "" }
c13027
train
// ctx returns the current context.Context for the driver, expects to be invoked // only when eventLock is locked.
{ "resource": "" }
c13028
train
// lead master detection callback.
{ "resource": "" }
c13029
train
// tryAuthentication expects to be guarded by eventLock
{ "resource": "" }
c13030
train
// Running returns true if the driver is in the DRIVER_RUNNING state
{ "resource": "" }
c13031
train
// statusUpdated expects to be guarded by eventLock
{ "resource": "" }
c13032
train
// start expected to be guarded by eventLock
{ "resource": "" }
c13033
train
// join expects to be guarded by eventLock
{ "resource": "" }
c13034
train
//Run starts and joins driver process and waits to be stopped or aborted.
{ "resource": "" }
c13035
train
// run expected to be guarded by eventLock
{ "resource": "" }
c13036
train
//Stop stops the driver.
{ "resource": "" }
c13037
train
// abort expects to be guarded by eventLock
{ "resource": "" }
c13038
train
// pushLostTask expects to be guarded by eventLock
{ "resource": "" }
c13039
train
// error expects to be guarded by eventLock
{ "resource": "" }
c13040
train
// Return the name of the login provider specified in this context.
{ "resource": "" }
c13041
train
// Return the name of the login provider specified in this context, or empty // string if none.
{ "resource": "" }
c13042
train
// Registered implements the Registered handler.
{ "resource": "" }
c13043
train
// NewEncoder returns a new Encoder of Calls to JSON messages written to // the given io.Writer.
{ "resource": "" }
c13044
train
// NewDecoder returns a new Decoder of JSON messages read from the given source.
{ "resource": "" }
c13045
train
// AttachContainerInput returns a Call that is used to initiate attachment to a container's stdin. // Callers should first send this Call followed by one or more AttachContainerInputXxx calls.
{ "resource": "" }
c13046
train
// NewSlaveHealthChecker creates a slave health checker and return a notification channel. // Each time the checker thinks the slave is unhealthy, it will send a notification through the channel.
{ "resource": "" }
c13047
train
// Start will start the health checker and returns the notification channel.
{ "resource": "" }
c13048
train
// Pause will pause the slave health checker.
{ "resource": "" }
c13049
train
// Continue will continue the slave health checker with a new slave upid.
{ "resource": "" }
c13050
train
// AckStatusUpdatesF is a functional adapter for AckStatusUpdates, useful for cases where the caller may // change over time. An error that occurs while ack'ing the status update is returned as a calls.AckError.
{ "resource": "" }
c13051
train
// DefaultEventLogger logs the event via the `log` package.
{ "resource": "" }
c13052
train
// LogEvents returns a rule that logs scheduler events to the EventLogger
{ "resource": "" }
c13053
train
// AckOperationUpdatesF is a functional adapter for AckOperationUpdates, useful for cases where the caller may // change over time. An error that occurs while ack'ing the status update is returned as a calls.AckError.
{ "resource": "" }
c13054
train
// WithSubscriptionTerminated sets a handler that is invoked at the end of every subscription cycle; the // given error may be nil if no error occurred. subscriptionTerminated is optional; if nil then errors are // swallowed.
{ "resource": "" }
c13055
train
// Run executes a control loop that registers a framework with Mesos and processes the scheduler events // that flow through the subscription. Upon disconnection, if the current configuration reports "not done" // then the controller will attempt to re-register the framework and continue processing events.
{ "resource": "" }
c13056
train
// Send implements the Sender interface for SenderFunc
{ "resource": "" }
c13057
train
// IgnoreResponse generates a sender that closes any non-nil response received by Mesos.
{ "resource": "" }
c13058
train
// SendNoData is a convenience func that executes the given Call using the provided Sender // and always drops the response data.
{ "resource": "" }
c13059
train
// NewMessenger returns a mocked messenger used for testing.
{ "resource": "" }
c13060
train
// Install is a mocked implementation.
{ "resource": "" }
c13061
train
// Send is a mocked implementation.
{ "resource": "" }
c13062
train
// Stop is a mocked implementation.
{ "resource": "" }
c13063
train
// UPID is a mocked implementation.
{ "resource": "" }
c13064
train
// Recv receives a upid and a message, it will dispatch the message to its handler // with the upid. This is for testing.
{ "resource": "" }
c13065
train
// Call implements the Caller interface for Rule
{ "resource": "" }
c13066
train
// Call implements the Caller interface for Rules
{ "resource": "" }
c13067
train
// Eval is a convenience func that processes a nil Rule as a noop.
{ "resource": "" }
c13068
train
// IsStrictSubroleOf returns true if left is a strict subrole of right.
{ "resource": "" }
c13069
train
// Framework sets a executor.Call's FrameworkID
{ "resource": "" }
c13070
train
// Executor sets a executor.Call's ExecutorID
{ "resource": "" }
c13071
train
// Subscribe returns an executor call with the given parameters.
{ "resource": "" }
c13072
train
// Update returns an executor call with the given parameters.
{ "resource": "" }
c13073
train
// Message returns an executor call with the given parameters.
{ "resource": "" }
c13074
train
// Equivalent returns true if left and right represent the same Label.
{ "resource": "" }
c13075
train
// NewDecoder returns a new Decoder that reads from the given frame Reader.
{ "resource": "" }
c13076
train
// With applies the given CallOpts to the receiving Call, returning it.
{ "resource": "" }
c13077
train
// IDs extracts the ID field from a Slice of offers
{ "resource": "" }
c13078
train
// IDs extracts the ID field from a Index of offers
{ "resource": "" }
c13079
train
// Filter returns the subset of the Slice that matches the given filter.
{ "resource": "" }
c13080
train
// Filter returns the subset of the Index that matches the given filter.
{ "resource": "" }
c13081
train
// ToSlice returns a Slice from the offers in the Index. // The returned slice will contain shallow copies of the offers from the Index.
{ "resource": "" }
c13082
train
// Push prepends one or more calls onto a request stream. If no calls are given then the original stream is returned.
{ "resource": "" }
c13083
train
// SendWith injects the given options for all calls.
{ "resource": "" }
c13084
train
// RequestURI returns the request URI of the message.
{ "resource": "" }
c13085
train
// AddressList parses the named header field as a list of addresses. If the // header is missing, it returns nil.
{ "resource": "" }
c13086
train
// SetAddressList formats the named header to the provided list of addresses.
{ "resource": "" }
c13087
train
// Date parses the Date header field.
{ "resource": "" }
c13088
train
// SetDate formats the Date header field.
{ "resource": "" }
c13089
train
// Filename parses the attachment's filename.
{ "resource": "" }
c13090
train
// SetFilename formats the attachment's filename.
{ "resource": "" }
c13091
train
// headerToMap converts a textproto.Header to a map. It looses information.
{ "resource": "" }
c13092
train
// SetContentType formats the Content-Type header field.
{ "resource": "" }
c13093
train
// ContentDisposition parses the Content-Disposition header field, as defined in // RFC 2183.
{ "resource": "" }
c13094
train
// SetContentDisposition formats the Content-Disposition header field, as // defined in RFC 2183.
{ "resource": "" }
c13095
train
// Text parses a plaintext header field. The field charset is automatically // decoded to UTF-8.
{ "resource": "" }
c13096
train
// SetText sets a plaintext header field.
{ "resource": "" }
c13097
train
// New makes a new message with the provided header and body. The entity's // transfer encoding and charset are automatically decoded to UTF-8. // // If the message uses an unknown transfer encoding or charset, New returns an // error that verifies IsUnknownCharset, but also returns an Entity that can // be read.
{ "resource": "" }
c13098
train
// Read reads a message from r. The message's encoding and charset are // automatically decoded to raw UTF-8. Note that this function only reads the // message header. // // If the message uses an unknown transfer encoding or charset, Read returns an // error that verifies IsUnknownCharset, but also returns an Entity t...
{ "resource": "" }
c13099
train
// MultipartReader returns a MultipartReader that reads parts from this entity's // body. If this entity is not multipart, it returns nil.
{ "resource": "" }