_id stringlengths 2 7 | text stringlengths 6 2.61k | title stringclasses 1
value |
|---|---|---|
c15300 | // Spin will start a task spinning in its own routine while it waits for its
// schedule. | |
c15301 | // Fork stream stuff here | |
c15302 | // UnsubscribePlugins groups task dependencies by the node they live in workflow and unsubscribe them | |
c15303 | // 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. | |
c15304 | //Enable changes the state from Disabled to Stopped | |
c15305 | // disable proceeds disabling a task which consists of changing task state to disabled and emitting an appropriate event | |
c15306 | // RecordFailure updates the failed runs and last failure properties | |
c15307 | // Get given a task id returns a Task or nil if not found | |
c15308 | // 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. | |
c15309 | // remove will remove a given task from tasks. The task must be stopped.
// Can return errors ErrTaskNotFound and ErrTaskNotStopped. | |
c15310 | // Table returns a copy of the taskCollection | |
c15311 | // createTaskClients walks the workflowmap and creates clients for this task
// remoteManagers so that nodes that require proxy request can make them. | |
c15312 | // Select selects an available plugin using the sticky plugin strategy. | |
c15313 | // OptEnableRunnerTLS enables the TLS configuration in runner | |
c15314 | // Begin handing events and managing available plugins | |
c15315 | // Stop handling, gracefully stop all plugins. | |
c15316 | // Empty handler acting as placeholder until implementation. This helps tests
// pass to ensure registration works. | |
c15317 | // begins the queue handling loop | |
c15318 | // Stop closes both Err and Event channels, and
// causes the handling loop to exit. | |
c15319 | // Checks if string is URL | |
c15320 | // MarshalJSON marshals a IntRule into JSON | |
c15321 | // GobDecode decodes a GOB into a IntRule | |
c15322 | // Default return this rules default value | |
c15323 | // Read the snapteld configuration from a configuration file | |
c15324 | // used to set fields in the configuration to values from the
// command line context if the corresponding flagName is set
// in that context | |
c15325 | // 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 | |
c15326 | // 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 | |
c15327 | // 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 ... | |
c15328 | // New returns an initialized SnapError.
// The variadic signature allows fields to optionally
// be added at construction. | |
c15329 | // MonitorDurationOption sets monitor's duration to v. | |
c15330 | // Start starts the monitor | |
c15331 | // GetConfigPolicy returns a ConfigPolicy for testing | |
c15332 | // 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
/... | |
c15333 | // 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. | |
c15334 | // DeletePluginConfig removes the plugin config item given the plugin type, name
// and version. | |
c15335 | // hostnameReader, hostnamer created for mocking | |
c15336 | // RmUnloadedPluginMetrics removes plugin metrics which was unloaded,
// consequently cataloged metrics are changed, so matching map is being updated too | |
c15337 | // Add adds a metricType | |
c15338 | // GetMetric retrieves a metric for a given requested namespace and version.
// If provided a version of -1 the latest plugin will be returned. | |
c15339 | // GetVersions retrieves all versions of a given metric namespace. | |
c15340 | // Remove removes a metricType from the catalog and from matching map | |
c15341 | // Subscribe atomically increments a metric's subscription count in the table. | |
c15342 | // containsTuple checks if a given element of namespace has a tuple; if yes, returns true and recognized tuple's items | |
c15343 | // specifyInstanceOfDynamicMetric returns specified namespace of incoming cataloged metric's namespace
// based on requested metric namespace | |
c15344 | // 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 | |
c15345 | // MarshalJSON marshals a BoolRule into JSON | |
c15346 | //GobEncode encodes a BoolRule in to a GOB | |
c15347 | // GobDecode decodes a GOB into a BoolRule | |
c15348 | // Validate validates a config value against this rule. | |
c15349 | // Default returns a default value is it exists. | |
c15350 | // GetConfigPolicy returns the plugin's policy | |
c15351 | // Ping returns nothing in normal operation | |
c15352 | // Kill will stop a running plugin | |
c15353 | // DeleteByPlugin removes all metrics from the catalog if they match a loadedPlugin | |
c15354 | // RemoveMetric removes a specific metric by namespace and version from the tree | |
c15355 | // Add adds a node with the given namespace with the given MetricType | |
c15356 | // Fetch collects all children below a given namespace
// and concatenates their metric types into a single slice | |
c15357 | // Remove removes all descendants nodes below a given namespace | |
c15358 | // GetVersions returns all versions of MTs below the given namespace | |
c15359 | // fetch collects all descendants nodes below the given namespace | |
c15360 | // search returns leaf nodes in the trie below the given namespace | |
c15361 | // gatherDescendants returns all descendants of a given node | |
c15362 | // MarshalJSON marshals a StringRule into JSON | |
c15363 | // GobDecode decodes a GOB into a StringRule | |
c15364 | // Validates a config value against this rule. | |
c15365 | // Returns a default value is it exists. | |
c15366 | // Stop halts a running availablePlugin | |
c15367 | // Kill assumes a plugin is not able to hear a Kill RPC call | |
c15368 | // CheckHealth checks the health of a plugin and updates
// a.failedHealthChecks | |
c15369 | // healthCheckFailed increments a.failedHealthChecks and emits a DisabledPluginEvent
// and a HealthCheckFailedEvent | |
c15370 | // 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... | |
c15371 | // 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. | |
c15372 | // 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. | |
c15373 | // 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. | |
c15374 | // 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. | |
c15375 | // 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. | |
c15376 | // 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. | |
c15377 | // 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. | |
c15378 | // UnmarshalJSON unmarshals JSON into a ConfigPolicyNode | |
c15379 | // Adds a rule to this policy node | |
c15380 | // Validates and returns a processed policy node or nil and error if validation has failed | |
c15381 | // 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. | |
c15382 | // SetCertPath sets path to TLS certificate in plugin arguments | |
c15383 | // SetKeyPath sets path to TLS key in plugin arguments | |
c15384 | // SetTLSEnabled sets flag enabling TLS security in plugin arguments | |
c15385 | // SetCACertPaths sets list of certificate paths for client verification | |
c15386 | // NewArg returns new plugin arguments structure | |
c15387 | // 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. | |
c15388 | // 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. | |
c15389 | // Validate validates the start, stop and duration interval of WindowedSchedule | |
c15390 | // Wait waits the window interval and return.
// Otherwise, it exits with a completed state | |
c15391 | // GetIP returns the first non-loopback ipv4 interface. The loopback interface
// is returned if no other interface is present. | |
c15392 | // add adds a loadedPlugin pointer to the table | |
c15393 | // get retrieves a plugin from the table | |
c15394 | // Key returns plugin type, name and version | |
c15395 | // OptEnableManagerTLS enables the TLS configuration in plugin manager. | |
c15396 | // OptSetPluginTags sets the tags on the plugin manager | |
c15397 | // SetPluginTags sets plugin tags | |
c15398 | // GenerateArgs generates the cli args to send when stating a plugin | |
c15399 | // New creates a REST API server with a given config |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.