_id
stringlengths
2
7
text
stringlengths
6
2.61k
title
stringclasses
1 value
c13000
// 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.
c13001
// Filters sets a scheduler.Call's internal Filters, required for Accept and Decline calls.
c13002
// RefuseSecondsWithJitter returns a calls.Filters option that sets RefuseSeconds to a random number // of seconds between 0 and the given duration.
c13003
// RefuseSeconds returns a calls.Filters option that sets RefuseSeconds to the given duration
c13004
// Subscribe returns a subscribe call with the given parameters. // The call's FrameworkID is automatically filled in from the info specification.
c13005
// Accept returns an accept call with the given parameters. // Callers are expected to fill in the FrameworkID and Filters.
c13006
// AcceptInverseOffers returns an accept-inverse-offers call for the given offer IDs. // Callers are expected to fill in the FrameworkID and Filters.
c13007
// DeclineInverseOffers returns a decline-inverse-offers call for the given offer IDs. // Callers are expected to fill in the FrameworkID and Filters.
c13008
// OpLaunch returns a launch operation builder for the given tasks
c13009
// Revive returns a revive call with the given filters. // Callers are expected to fill in the FrameworkID.
c13010
// Suppress returns a suppress call with the given filters. // Callers are expected to fill in the FrameworkID.
c13011
// Decline returns a decline call with the given parameters. // Callers are expected to fill in the FrameworkID and Filters.
c13012
// Kill returns a kill call with the given parameters. // Callers are expected to fill in the FrameworkID.
c13013
// Shutdown returns a shutdown call with the given parameters. // Callers are expected to fill in the FrameworkID.
c13014
// Acknowledge returns an acknowledge call with the given parameters. // Callers are expected to fill in the FrameworkID.
c13015
// Reconcile returns a reconcile call with the given parameters. // See ReconcileTask. // Callers are expected to fill in the FrameworkID.
c13016
// Message returns a message call with the given parameters. // Callers are expected to fill in the FrameworkID.
c13017
// Request returns a resource request call with the given parameters. // Callers are expected to fill in the FrameworkID.
c13018
// 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.
c13019
// Accept implements Filter for FilterFunc
c13020
// ByHostname returns a Filter that accepts offers with a matching Hostname
c13021
// ByAttributes returns a Filter that accepts offers with an attribute set accepted by // the provided Attribute filter func.
c13022
// ContainsResources returns a filter that returns true if the Resources of an Offer // contain the wanted Resources.
c13023
// Error generates an error from the given status code and detail string.
c13024
// Temporary returns true if the error is a temporary condition that should eventually clear.
c13025
// SubscriptionLoss returns true if the error indicates that the event subscription stream has been severed // between mesos and a mesos client.
c13026
// Matches returns true if the given error is an API error with a matching error code
c13027
// ctx returns the current context.Context for the driver, expects to be invoked // only when eventLock is locked.
c13028
// lead master detection callback.
c13029
// tryAuthentication expects to be guarded by eventLock
c13030
// Running returns true if the driver is in the DRIVER_RUNNING state
c13031
// statusUpdated expects to be guarded by eventLock
c13032
// start expected to be guarded by eventLock
c13033
// join expects to be guarded by eventLock
c13034
//Run starts and joins driver process and waits to be stopped or aborted.
c13035
// run expected to be guarded by eventLock
c13036
//Stop stops the driver.
c13037
// abort expects to be guarded by eventLock
c13038
// pushLostTask expects to be guarded by eventLock
c13039
// error expects to be guarded by eventLock
c13040
// Return the name of the login provider specified in this context.
c13041
// Return the name of the login provider specified in this context, or empty // string if none.
c13042
// Registered implements the Registered handler.
c13043
// NewEncoder returns a new Encoder of Calls to JSON messages written to // the given io.Writer.
c13044
// NewDecoder returns a new Decoder of JSON messages read from the given source.
c13045
// 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.
c13046
// 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.
c13047
// Start will start the health checker and returns the notification channel.
c13048
// Pause will pause the slave health checker.
c13049
// Continue will continue the slave health checker with a new slave upid.
c13050
// 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.
c13051
// DefaultEventLogger logs the event via the `log` package.
c13052
// LogEvents returns a rule that logs scheduler events to the EventLogger
c13053
// 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.
c13054
// 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.
c13055
// 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.
c13056
// Send implements the Sender interface for SenderFunc
c13057
// IgnoreResponse generates a sender that closes any non-nil response received by Mesos.
c13058
// SendNoData is a convenience func that executes the given Call using the provided Sender // and always drops the response data.
c13059
// NewMessenger returns a mocked messenger used for testing.
c13060
// Install is a mocked implementation.
c13061
// Send is a mocked implementation.
c13062
// Stop is a mocked implementation.
c13063
// UPID is a mocked implementation.
c13064
// Recv receives a upid and a message, it will dispatch the message to its handler // with the upid. This is for testing.
c13065
// Call implements the Caller interface for Rule
c13066
// Call implements the Caller interface for Rules
c13067
// Eval is a convenience func that processes a nil Rule as a noop.
c13068
// IsStrictSubroleOf returns true if left is a strict subrole of right.
c13069
// Framework sets a executor.Call's FrameworkID
c13070
// Executor sets a executor.Call's ExecutorID
c13071
// Subscribe returns an executor call with the given parameters.
c13072
// Update returns an executor call with the given parameters.
c13073
// Message returns an executor call with the given parameters.
c13074
// Equivalent returns true if left and right represent the same Label.
c13075
// NewDecoder returns a new Decoder that reads from the given frame Reader.
c13076
// With applies the given CallOpts to the receiving Call, returning it.
c13077
// IDs extracts the ID field from a Slice of offers
c13078
// IDs extracts the ID field from a Index of offers
c13079
// Filter returns the subset of the Slice that matches the given filter.
c13080
// Filter returns the subset of the Index that matches the given filter.
c13081
// ToSlice returns a Slice from the offers in the Index. // The returned slice will contain shallow copies of the offers from the Index.
c13082
// Push prepends one or more calls onto a request stream. If no calls are given then the original stream is returned.
c13083
// SendWith injects the given options for all calls.
c13084
// RequestURI returns the request URI of the message.
c13085
// AddressList parses the named header field as a list of addresses. If the // header is missing, it returns nil.
c13086
// SetAddressList formats the named header to the provided list of addresses.
c13087
// Date parses the Date header field.
c13088
// SetDate formats the Date header field.
c13089
// Filename parses the attachment's filename.
c13090
// SetFilename formats the attachment's filename.
c13091
// headerToMap converts a textproto.Header to a map. It looses information.
c13092
// SetContentType formats the Content-Type header field.
c13093
// ContentDisposition parses the Content-Disposition header field, as defined in // RFC 2183.
c13094
// SetContentDisposition formats the Content-Disposition header field, as // defined in RFC 2183.
c13095
// Text parses a plaintext header field. The field charset is automatically // decoded to UTF-8.
c13096
// SetText sets a plaintext header field.
c13097
// 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.
c13098
// 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...
c13099
// MultipartReader returns a MultipartReader that reads parts from this entity's // body. If this entity is not multipart, it returns nil.