_id stringlengths 2 7 | title stringclasses 1
value | partition stringclasses 3
values | text stringlengths 6 2.61k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
c15400 | train | // Auth Middleware for REST API | {
"resource": ""
} | ||
c15401 | train | // CORS origins have to be turned on explicitly in the global config.
// Otherwise, it defaults to the same origin. | {
"resource": ""
} | ||
c15402 | train | // NewCronSchedule creates and starts new cron schedule and returns an instance of CronSchedule | {
"resource": ""
} | ||
c15403 | train | // Validate returns error if cron entry doesn't match crontab format | {
"resource": ""
} | ||
c15404 | train | // Wait waits as long as specified in cron entry | {
"resource": ""
} | ||
c15405 | train | // Adds a ConfigDataNode at the provided namespace. | {
"resource": ""
} | ||
c15406 | train | // Returns a ConfigDataNode that is a merged version of the namespace provided. | {
"resource": ""
} | ||
c15407 | train | // CacheTTL is an option that can be be provided to the func NewPluginMeta. | {
"resource": ""
} | ||
c15408 | train | // NewPluginMeta constructs and returns a PluginMeta struct | {
"resource": ""
} | ||
c15409 | train | // Select selects an available plugin using the config based plugin strategy. | {
"resource": ""
} | ||
c15410 | train | // GobEcode encodes a ConfigDataNode in go binary format | {
"resource": ""
} | ||
c15411 | train | // GobDecode decodes a GOB into a ConfigDataNode | {
"resource": ""
} | ||
c15412 | train | // UnmarshalJSON unmarshals JSON into a ConfigDataNode | {
"resource": ""
} | ||
c15413 | train | // Returns a new and empty node. | {
"resource": ""
} | ||
c15414 | train | // Adds an item to the ConfigDataNode. | {
"resource": ""
} | ||
c15415 | train | // Merges a ConfigDataNode with this one but does not overwrite any
// conflicting values. Any conflicts are decided by the callers value. | {
"resource": ""
} | ||
c15416 | train | // Merges a ConfigDataNode with a copy of the current ConfigDataNode and returns
// the copy. The merge does not overwrite any conflicting values.
// Any conflicts are decided by the callers value. | {
"resource": ""
} | ||
c15417 | train | // ApplyDefaults will set default values if the given ConfigDataNode doesn't
// already have a value for the given configuration. | {
"resource": ""
} | ||
c15418 | train | // Deletes a field in ConfigDataNode. If the field does not exist Delete is
// considered a no-op | {
"resource": ""
} | ||
c15419 | train | // broadcast takes a tribe message type, encodes it for the wire, and queues
// the broadcast. If a notify channel is given, this channel will be closed
// when the broadcast is sent. | {
"resource": ""
} | ||
c15420 | train | // GetDefaultConfig gets the default snapteld configuration | {
"resource": ""
} | ||
c15421 | train | // TaskDeadlineDuration sets the tasks deadline.
// The deadline is the amount of time that can pass before a worker begins
// processing the tasks collect job. | {
"resource": ""
} | ||
c15422 | train | // TaskStopOnFailure sets the tasks stopOnFailure
// The stopOnFailure is the number of consecutive task failures that will
// trigger disabling the task | {
"resource": ""
} | ||
c15423 | train | // CacheExpiration is the PluginControlOpt which sets the global metric cache TTL | {
"resource": ""
} | ||
c15424 | train | // OptSetConfig sets the plugin control configuration. | {
"resource": ""
} | ||
c15425 | train | // OptSetTags sets the plugin control tags. | {
"resource": ""
} | ||
c15426 | train | // New returns a new pluginControl instance | {
"resource": ""
} | ||
c15427 | train | // Load is the public method to load a plugin into
// the LoadedPlugins array and issue an event when
// successful. | {
"resource": ""
} | ||
c15428 | train | // SubscribeDeps will subscribe to collectors, processors and publishers. The collectors are subscribed by mapping the provided
// array of core.RequestedMetrics to the corresponding plugins while processors and publishers provided in the array of core.Plugin
// will be subscribed directly. The ID provides a logical ... | {
"resource": ""
} | ||
c15429 | train | // UnsubscribeDeps unsubscribes a group of dependencies provided the subscription group ID | {
"resource": ""
} | ||
c15430 | train | // SetMonitorOptions exposes monitors options | {
"resource": ""
} | ||
c15431 | train | // CollectMetrics is a blocking call to collector plugins returning a collection
// of metrics and errors. If an error is encountered no metrics will be
// returned. | {
"resource": ""
} | ||
c15432 | train | // New returns an instance of the scheduler
// The MetricManager must be set before the scheduler can be started.
// The MetricManager must be started before it can be used. | {
"resource": ""
} | ||
c15433 | train | // CreateTask creates and returns task | {
"resource": ""
} | ||
c15434 | train | // GetTasks returns a copy of the tasks in a map where the task id is the key | {
"resource": ""
} | ||
c15435 | train | // GetTask provided the task id a task is returned | {
"resource": ""
} | ||
c15436 | train | // StartTask provided a task id a task is started | {
"resource": ""
} | ||
c15437 | train | // StopTask provided a task id a task is stopped | {
"resource": ""
} | ||
c15438 | train | //EnableTask changes state from disabled to stopped | {
"resource": ""
} | ||
c15439 | train | // Set metricManager for scheduler | {
"resource": ""
} | ||
c15440 | train | // Central handling for all async events in scheduler | {
"resource": ""
} | ||
c15441 | train | //enableTask changes the task state from Disabled to Stopped | {
"resource": ""
} | ||
c15442 | train | // Manifest returns the ImageManifest inside the ACI file | {
"resource": ""
} | ||
c15443 | train | // Extract expands the ACI file to a temporary directory, returning
// the directory path where the ACI was expanded or an error | {
"resource": ""
} | ||
c15444 | train | // Validate makes sure the archive is valid. Otherwise,
// an error is returned | {
"resource": ""
} | ||
c15445 | train | // Remove removes a subscription group given a subscription group ID. | {
"resource": ""
} | ||
c15446 | train | // validatePluginUnloading checks if process of unloading the plugin is safe for existing running tasks.
// If the plugin is used by running task and there is no replacements, return an error with appropriate message
// containing ids of tasks which use the plugin, what blocks unloading process until they are stopped | {
"resource": ""
} | ||
c15447 | train | // pluginIsSubscribed returns true if a provided plugin has been found among subscribed plugins
// in the following subscription group | {
"resource": ""
} | ||
c15448 | train | // validatePluginUnloading verifies if a given plugin might be unloaded without causing running task failures | {
"resource": ""
} | ||
c15449 | train | // comparePlugins compares the new state of plugins with the previous state.
// It returns an array of plugins that need to be subscribed and an array of
// plugins that need to be unsubscribed. | {
"resource": ""
} | ||
c15450 | train | // LoadPlugin loads plugins for the given plugin names.
// A slide of loaded plugins returns if succeeded. Otherwise, an error is returned. | {
"resource": ""
} | ||
c15451 | train | // UnloadPlugin unloads a plugin given plugin type, name, and version through an HTTP DELETE request.
// The unloaded plugin returns if succeeded. Otherwise, an error is returned. | {
"resource": ""
} | ||
c15452 | train | // GetPlugins returns the loaded and available plugins through an HTTP GET request.
// By specifying the details flag to tweak output info. An error returns if it failed. | {
"resource": ""
} | ||
c15453 | train | // GetPlugin returns the requested plugin through an HTTP GET request. An error returns if it failed. | {
"resource": ""
} | ||
c15454 | train | // Close stops watching a task. Cannot be restarted. | {
"resource": ""
} | ||
c15455 | train | // Insert inserts an AvailablePlugin into the pool | {
"resource": ""
} | ||
c15456 | train | // applyPluginMeta is called when the first plugin is added to the pool | {
"resource": ""
} | ||
c15457 | train | // subscribe adds a subscription to the pool.
// Using subscribe is idempotent. | {
"resource": ""
} | ||
c15458 | train | // unsubscribe removes a subscription from the pool.
// Using unsubscribe is idempotent. | {
"resource": ""
} | ||
c15459 | train | // Eligible returns a bool indicating whether the pool is eligible to grow | {
"resource": ""
} | ||
c15460 | train | // kill kills and removes the available plugin from its pool.
// Using kill is idempotent. | {
"resource": ""
} | ||
c15461 | train | // Kill all instances of a plugin | {
"resource": ""
} | ||
c15462 | train | // SelectAndKill selects, kills and removes the available plugin from the pool | {
"resource": ""
} | ||
c15463 | train | // remove removes an available plugin from the the pool.
// using remove is idempotent. | {
"resource": ""
} | ||
c15464 | train | // Count returns the number of plugins in the pool | {
"resource": ""
} | ||
c15465 | train | // SubscriptionCount returns the number of subscriptions in the pool | {
"resource": ""
} | ||
c15466 | train | // SelectAP selects an available plugin from the pool
// the method is not thread safe, it should be protected outside of the body | {
"resource": ""
} | ||
c15467 | train | // generatePID returns the next available pid for the pool | {
"resource": ""
} | ||
c15468 | train | // CacheTTL returns the cacheTTL for the pool | {
"resource": ""
} | ||
c15469 | train | //ValidateSignature is exported for plugin authoring | {
"resource": ""
} | ||
c15470 | train | // Returns a slice of string keywords for the types supported by ConfigValue. | {
"resource": ""
} | ||
c15471 | train | // NewExecutablePlugin returns a new ExecutablePlugin. | {
"resource": ""
} | ||
c15472 | train | // Run executes the plugin and waits for a response, or times out. | {
"resource": ""
} | ||
c15473 | train | // Strings returns an array of strings that represent the elements of the
// namespace. | {
"resource": ""
} | ||
c15474 | train | // getSeparator returns the highest suitable separator from the nsPriorityList.
// Otherwise the core separator is returned. | {
"resource": ""
} | ||
c15475 | train | // initSeparatorMap populates the local map of nsPriorityList. | {
"resource": ""
} | ||
c15476 | train | // NewNamespace takes an array of strings and returns a Namespace. A Namespace
// is an array of NamespaceElements. The provided array of strings is used to
// set the corresponding Value fields in the array of NamespaceElements. | {
"resource": ""
} | ||
c15477 | train | // AddDynamicElement adds a dynamic element to the given Namespace. A dynamic
// NamespaceElement is defined by having a nonempty Name field. | {
"resource": ""
} | ||
c15478 | train | // AddStaticElement adds a static element to the given Namespace. A static
// NamespaceElement is defined by having an empty Name field. | {
"resource": ""
} | ||
c15479 | train | // AddStaticElements adds a static elements to the given Namespace. A static
// NamespaceElement is defined by having an empty Name field. | {
"resource": ""
} | ||
c15480 | train | // begin a worker | {
"resource": ""
} | ||
c15481 | train | // FetchMetrics retrieves the metric catalog given metric namespace and version through an HTTP GET request.
// It returns the corresponding metric catalog if succeeded. Otherwise, an error is returned. | {
"resource": ""
} | ||
c15482 | train | // GetMetricVersions retrieves all versions of a metric at a given namespace. | {
"resource": ""
} | ||
c15483 | train | // GetFirstChar returns the first character from the input string. | {
"resource": ""
} | ||
c15484 | train | // GobEncode returns the encoded ConfigTree. Otherwise,
// an error is returned | {
"resource": ""
} | ||
c15485 | train | // GobDecode decodes the ConfigTree. | {
"resource": ""
} | ||
c15486 | train | // MarshalJSON marshals ConfigTree | {
"resource": ""
} | ||
c15487 | train | // Add adds a new tree node | {
"resource": ""
} | ||
c15488 | train | // Get returns a tree node given the namespace | {
"resource": ""
} | ||
c15489 | train | // MarshalJSON marshals the ConfigTree. | {
"resource": ""
} | ||
c15490 | train | // GobEncode encodes every member of node struct instance | {
"resource": ""
} | ||
c15491 | train | // GobDecode decodes every member of node struct instance | {
"resource": ""
} | ||
c15492 | train | // MarshalJSON marshals a FloatRule into JSON | {
"resource": ""
} | ||
c15493 | train | // GobEncode encodes a FloatRule into a GOB | {
"resource": ""
} | ||
c15494 | train | // Default returns the rule's default value | {
"resource": ""
} | ||
c15495 | train | // Checks validity of URL | {
"resource": ""
} | ||
c15496 | train | //Password is an option than can be provided to the func client.New. | {
"resource": ""
} | ||
c15497 | train | //Timeout is an option that can be provided to the func client.New in order to set HTTP connection timeout. | {
"resource": ""
} | ||
c15498 | train | // New returns a pointer to a snap api client
// if ver is an empty string, v1 is used by default | {
"resource": ""
} | ||
c15499 | train | // Passthrough for tribe request to allow use of client auth. | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.