_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c15300
train
// Spin will start a task spinning in its own routine while it waits for its // schedule.
{ "resource": "" }
c15301
train
// Fork stream stuff here
{ "resource": "" }
c15302
train
// UnsubscribePlugins groups task dependencies by the node they live in workflow and unsubscribe them
{ "resource": "" }
c15303
train
// SubscribePlugins groups task dependencies by the node they live in workflow and subscribe them. // If there are errors with subscribing any deps, manage unsubscribing all other deps that may have already been subscribed // and then return the errors.
{ "resource": "" }
c15304
train
//Enable changes the state from Disabled to Stopped
{ "resource": "" }
c15305
train
// disable proceeds disabling a task which consists of changing task state to disabled and emitting an appropriate event
{ "resource": "" }
c15306
train
// RecordFailure updates the failed runs and last failure properties
{ "resource": "" }
c15307
train
// Get given a task id returns a Task or nil if not found
{ "resource": "" }
c15308
train
// Add given a reference to a task adds it to the collection of tasks. An // error is returned if the task already exists in the collection.
{ "resource": "" }
c15309
train
// remove will remove a given task from tasks. The task must be stopped. // Can return errors ErrTaskNotFound and ErrTaskNotStopped.
{ "resource": "" }
c15310
train
// Table returns a copy of the taskCollection
{ "resource": "" }
c15311
train
// createTaskClients walks the workflowmap and creates clients for this task // remoteManagers so that nodes that require proxy request can make them.
{ "resource": "" }
c15312
train
// Select selects an available plugin using the sticky plugin strategy.
{ "resource": "" }
c15313
train
// OptEnableRunnerTLS enables the TLS configuration in runner
{ "resource": "" }
c15314
train
// Begin handing events and managing available plugins
{ "resource": "" }
c15315
train
// Stop handling, gracefully stop all plugins.
{ "resource": "" }
c15316
train
// Empty handler acting as placeholder until implementation. This helps tests // pass to ensure registration works.
{ "resource": "" }
c15317
train
// begins the queue handling loop
{ "resource": "" }
c15318
train
// Stop closes both Err and Event channels, and // causes the handling loop to exit.
{ "resource": "" }
c15319
train
// Checks if string is URL
{ "resource": "" }
c15320
train
// MarshalJSON marshals a IntRule into JSON
{ "resource": "" }
c15321
train
// GobDecode decodes a GOB into a IntRule
{ "resource": "" }
c15322
train
// Default return this rules default value
{ "resource": "" }
c15323
train
// Read the snapteld configuration from a configuration file
{ "resource": "" }
c15324
train
// used to set fields in the configuration to values from the // command line context if the corresponding flagName is set // in that context
{ "resource": "" }
c15325
train
// santiy check of the command-line flags to ensure that values are set // appropriately; returns the port read from the command-line arguments, a flag // indicating whether or not a port was detected in the address read from the // command-line arguments, and an error if one is detected
{ "resource": "" }
c15326
train
// santiy check of the configuration file parameters to ensure that values are set // appropriately; returns the port read from the global configuration file, a flag // indicating whether or not a port was detected in the address read from the // global configuration file, and an error if one is detected
{ "resource": "" }
c15327
train
// setMaxProcs configures runtime.GOMAXPROCS for snapteld. GOMAXPROCS can be set by using // the env variable GOMAXPROCS and snapteld will honor this setting. A user can override the env // variable by setting max-procs flag on the command line. snapteld will be limited to the max CPUs // on the system even if the env ...
{ "resource": "" }
c15328
train
// New returns an initialized SnapError. // The variadic signature allows fields to optionally // be added at construction.
{ "resource": "" }
c15329
train
// MonitorDurationOption sets monitor's duration to v.
{ "resource": "" }
c15330
train
// Start starts the monitor
{ "resource": "" }
c15331
train
// GetConfigPolicy returns a ConfigPolicy for testing
{ "resource": "" }
c15332
train
// GetPluginConfig retrieves the merged plugin config given the type of plugin, // name and version. If plugin type, name and version are all empty strings // the plugin config for "all" plugins will be returned. If the plugin type is // provided and the name and version are empty strings the config for that plugin /...
{ "resource": "" }
c15333
train
// SetPluginConfig sets the plugin config given the type, name and version // of a plugin. Like GetPluginConfig if the type, name and version are all // empty strings the plugin config is set for all plugins. When config data // is set it is merged with the existing data if present.
{ "resource": "" }
c15334
train
// DeletePluginConfig removes the plugin config item given the plugin type, name // and version.
{ "resource": "" }
c15335
train
// hostnameReader, hostnamer created for mocking
{ "resource": "" }
c15336
train
// RmUnloadedPluginMetrics removes plugin metrics which was unloaded, // consequently cataloged metrics are changed, so matching map is being updated too
{ "resource": "" }
c15337
train
// Add adds a metricType
{ "resource": "" }
c15338
train
// GetMetric retrieves a metric for a given requested namespace and version. // If provided a version of -1 the latest plugin will be returned.
{ "resource": "" }
c15339
train
// GetVersions retrieves all versions of a given metric namespace.
{ "resource": "" }
c15340
train
// Remove removes a metricType from the catalog and from matching map
{ "resource": "" }
c15341
train
// Subscribe atomically increments a metric's subscription count in the table.
{ "resource": "" }
c15342
train
// containsTuple checks if a given element of namespace has a tuple; if yes, returns true and recognized tuple's items
{ "resource": "" }
c15343
train
// specifyInstanceOfDynamicMetric returns specified namespace of incoming cataloged metric's namespace // based on requested metric namespace
{ "resource": "" }
c15344
train
// validateMetricNamespace validates metric namespace in terms of containing properly defined dynamic elements, // not ending with an asterisk and not contain elements which might be erroneously recognized as a tuple
{ "resource": "" }
c15345
train
// MarshalJSON marshals a BoolRule into JSON
{ "resource": "" }
c15346
train
//GobEncode encodes a BoolRule in to a GOB
{ "resource": "" }
c15347
train
// GobDecode decodes a GOB into a BoolRule
{ "resource": "" }
c15348
train
// Validate validates a config value against this rule.
{ "resource": "" }
c15349
train
// Default returns a default value is it exists.
{ "resource": "" }
c15350
train
// GetConfigPolicy returns the plugin's policy
{ "resource": "" }
c15351
train
// Ping returns nothing in normal operation
{ "resource": "" }
c15352
train
// Kill will stop a running plugin
{ "resource": "" }
c15353
train
// DeleteByPlugin removes all metrics from the catalog if they match a loadedPlugin
{ "resource": "" }
c15354
train
// RemoveMetric removes a specific metric by namespace and version from the tree
{ "resource": "" }
c15355
train
// Add adds a node with the given namespace with the given MetricType
{ "resource": "" }
c15356
train
// Fetch collects all children below a given namespace // and concatenates their metric types into a single slice
{ "resource": "" }
c15357
train
// Remove removes all descendants nodes below a given namespace
{ "resource": "" }
c15358
train
// GetVersions returns all versions of MTs below the given namespace
{ "resource": "" }
c15359
train
// fetch collects all descendants nodes below the given namespace
{ "resource": "" }
c15360
train
// search returns leaf nodes in the trie below the given namespace
{ "resource": "" }
c15361
train
// gatherDescendants returns all descendants of a given node
{ "resource": "" }
c15362
train
// MarshalJSON marshals a StringRule into JSON
{ "resource": "" }
c15363
train
// GobDecode decodes a GOB into a StringRule
{ "resource": "" }
c15364
train
// Validates a config value against this rule.
{ "resource": "" }
c15365
train
// Returns a default value is it exists.
{ "resource": "" }
c15366
train
// Stop halts a running availablePlugin
{ "resource": "" }
c15367
train
// Kill assumes a plugin is not able to hear a Kill RPC call
{ "resource": "" }
c15368
train
// CheckHealth checks the health of a plugin and updates // a.failedHealthChecks
{ "resource": "" }
c15369
train
// healthCheckFailed increments a.failedHealthChecks and emits a DisabledPluginEvent // and a HealthCheckFailedEvent
{ "resource": "" }
c15370
train
// CreateTask creates a task given the schedule, workflow, task name, and task state. // If the startTask flag is true, the newly created task is started after the creation. // Otherwise, it's in the Stopped state. CreateTask is accomplished through a POST HTTP JSON request. // A ScheduledTask is returned if it succeed...
{ "resource": "" }
c15371
train
// WatchTask retrieves running tasks by running a goroutine to // interactive with Event and Done channels. An HTTP GET request retrieves tasks. // StreamedTaskEvent returns if it succeeds. Otherwise, an error is returned.
{ "resource": "" }
c15372
train
// GetTasks retrieves a slice of tasks through an HTTP GET call. // A list of scheduled tasks returns if it succeeds. // Otherwise. an error is returned.
{ "resource": "" }
c15373
train
// GetTask retrieves the task given a task id through an HTTP GET call. // A scheduled task returns if it succeeds. Otherwise, an error is returned.
{ "resource": "" }
c15374
train
// StartTask starts a task given a task id. The scheduled task will be in // the started state if it succeeds. Otherwise, an error is returned.
{ "resource": "" }
c15375
train
// StopTask stops a running task given a task id. It uses an HTTP PUT call. // The stopped task id returns if it succeeds. Otherwise, an error is returned.
{ "resource": "" }
c15376
train
// RemoveTask removes a task from the schedule tasks given a task id. It's through an HTTP DELETE call. // The removed task id returns if it succeeds. Otherwise, an error is returned.
{ "resource": "" }
c15377
train
// EnableTask enables a disabled task given a task id. The request is an HTTP PUT call. // The enabled task id returns if it succeeds. Otherwise, an error is returned.
{ "resource": "" }
c15378
train
// UnmarshalJSON unmarshals JSON into a ConfigPolicyNode
{ "resource": "" }
c15379
train
// Adds a rule to this policy node
{ "resource": "" }
c15380
train
// Validates and returns a processed policy node or nil and error if validation has failed
{ "resource": "" }
c15381
train
// addRulesToConfigPolicyNode accepts a map of empty interfaces that will be // marshalled into rules which will be added to the ConfigPolicyNode provided // as the second argument. This function is called used by the UnmarshalJSON // for ConfigPolicy and ConfigPolicyNode.
{ "resource": "" }
c15382
train
// SetCertPath sets path to TLS certificate in plugin arguments
{ "resource": "" }
c15383
train
// SetKeyPath sets path to TLS key in plugin arguments
{ "resource": "" }
c15384
train
// SetTLSEnabled sets flag enabling TLS security in plugin arguments
{ "resource": "" }
c15385
train
// SetCACertPaths sets list of certificate paths for client verification
{ "resource": "" }
c15386
train
// NewArg returns new plugin arguments structure
{ "resource": "" }
c15387
train
// NewWindowedSchedule returns an instance of WindowedSchedule with given interval, start and stop timestamp // and count of expected runs. The value of `count` determines stop time, so specifying it together with `stop` // is not allowed and the count will be set to defaults 0 in such cases.
{ "resource": "" }
c15388
train
// setStopOnTime calculates and set the value of the windowed `stopOnTime` which is the right window boundary. // `stopOnTime` is determined by `StopTime` or, if it is not provided, calculated based on count and interval.
{ "resource": "" }
c15389
train
// Validate validates the start, stop and duration interval of WindowedSchedule
{ "resource": "" }
c15390
train
// Wait waits the window interval and return. // Otherwise, it exits with a completed state
{ "resource": "" }
c15391
train
// GetIP returns the first non-loopback ipv4 interface. The loopback interface // is returned if no other interface is present.
{ "resource": "" }
c15392
train
// add adds a loadedPlugin pointer to the table
{ "resource": "" }
c15393
train
// get retrieves a plugin from the table
{ "resource": "" }
c15394
train
// Key returns plugin type, name and version
{ "resource": "" }
c15395
train
// OptEnableManagerTLS enables the TLS configuration in plugin manager.
{ "resource": "" }
c15396
train
// OptSetPluginTags sets the tags on the plugin manager
{ "resource": "" }
c15397
train
// SetPluginTags sets plugin tags
{ "resource": "" }
c15398
train
// GenerateArgs generates the cli args to send when stating a plugin
{ "resource": "" }
c15399
train
// New creates a REST API server with a given config
{ "resource": "" }