Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/StackStorm/st2
/ functions
Functions
6,742 in github.com/StackStorm/st2
⨍
Functions
6,742
◇
Types & classes
1,394
↳
Endpoints
674
↓ 8 callers
Method
start
(self, wait)
st2actions/st2actions/workflows/workflows.py:108
↓ 8 callers
Method
test_should_stop
(self, e=None)
st2common/st2common/transport/connection_retry_wrapper.py:42
↓ 8 callers
Function
validate_not_part_of_system_pack
Validate that the provided resource database object doesn't belong to a system level pack. If it does, ValueValidationException is throw
st2common/st2common/validators/api/misc.py:27
↓ 7 callers
Method
__do_get_all
(self, filter=None)
st2api/tests/unit/controllers/v1/test_policies.py:129
↓ 7 callers
Method
__do_get_all
(self, filter=None)
st2api/tests/unit/controllers/v1/test_policies.py:310
↓ 7 callers
Method
__init__
(self, description, app, subparsers, parent_parser=None)
st2client/st2client/commands/pack.py:57
↓ 7 callers
Method
_apply_display_filters
This function looks at the disaply filters to determine which components should be displayed.
st2client/st2client/commands/trace.py:429
↓ 7 callers
Method
_create_execution_queue_item_db_from_liveaction
Create ActionExecutionSchedulingQueueItemDB from live action.
st2actions/st2actions/scheduler/entrypoint.py:96
↓ 7 callers
Method
_create_save_action
(runnertype, metadata=False)
st2common/tests/unit/test_db.py:988
↓ 7 callers
Method
_create_save_trace
( trace_tag, id_=None, action_executions=None, rules=None, trigger_instances=None )
st2common/tests/unit/test_db_trace.py:165
↓ 7 callers
Method
_create_save_trigger
(triggertype)
st2common/tests/unit/test_db.py:782
↓ 7 callers
Method
_execute_workflow
( self, wf_name, expected_task_sequence, expected_output, expected_sta
contrib/runners/orquesta_runner/tests/unit/test_functions_task.py:95
↓ 7 callers
Method
_format_error
(self, e, msg)
contrib/runners/action_chain_runner/action_chain_runner/action_chain_runner.py:707
↓ 7 callers
Method
_generate_error_result
:param exc: Raised exception. :type exc: Exception. :param message: Error message which will be prefixed to the exception ex
st2common/st2common/runners/parallel_ssh.py:422
↓ 7 callers
Method
_get_execution
(self, argv)
st2client/tests/unit/test_formatters.py:326
↓ 7 callers
Method
_get_runner
(self, action_db, entry_point)
contrib/runners/local_runner/tests/integration/test_localrunner.py:658
↓ 7 callers
Method
_get_test_command_action
(command)
st2common/tests/unit/test_paramiko_command_action_model.py:118
↓ 7 callers
Method
_is_valid_hook
(self, hook)
st2api/st2api/controllers/v1/webhooks.py:194
↓ 7 callers
Method
_validate_scope
(self, scope)
st2api/st2api/controllers/v1/keyvalue.py:524
↓ 7 callers
Function
abort_unauthorized
(msg=None)
st2common/st2common/router.py:81
↓ 7 callers
Method
assertResolvedParamsMatchExpected
( self, rule, trigger_instance, params, expected_params )
st2reactor/tests/unit/test_enforce.py:564
↓ 7 callers
Method
assert_user_is_admin_if_user_query_param_is_provided
Function which asserts that the request user is administator if "user" query parameter is provided and doesn't match the current user
st2common/st2common/rbac/backends/base.py:178
↓ 7 callers
Function
cast_func
(value)
st2common/st2common/models/api/base.py:176
↓ 7 callers
Function
create_trigger_instance
This creates a trigger instance object given trigger and payload. Trigger can be just a string reference (pack.name) or a ``dict`` containing
st2reactor/st2reactor/container/utils.py:28
↓ 7 callers
Method
dec_counter
Decrement metric
st2common/st2common/metrics/base.py:70
↓ 7 callers
Function
gen_setup_kwargs
(address: Address, rule_runner: RuleRunner)
pants-plugins/release/rules_test.py:89
↓ 7 callers
Method
get
Retrieve a particular attribute for the provided action execution. Handles requests: GET /executions/<id>/attribute/<at
st2api/st2api/controllers/v1/actionexecutions.py:348
↓ 7 callers
Method
get_by_ref_or_id
(self, ref_or_id, **kwargs)
st2client/st2client/models/core.py:306
↓ 7 callers
Method
get_by_scope_and_name
Get a key value store given a scope and name. :param scope: Scope which the key belongs to. :type scope: ``str`` :p
st2common/st2common/persistence/keyvalue.py:110
↓ 7 callers
Function
get_config
Returns config for given pack and user.
st2common/st2common/util/config_loader.py:420
↓ 7 callers
Function
get_key_reference
Given a key name and user this method returns a new name (string ref) to address the key value pair in the context of that user. :param
st2common/st2common/services/keyvalues.py:281
↓ 7 callers
Method
get_resources_from_pack
(self, resources_dir)
st2common/st2common/bootstrap/base.py:78
↓ 7 callers
Method
get_uid
(self)
st2common/st2common/models/db/trigger.py:114
↓ 7 callers
Method
initiate_dialog
(self)
st2client/st2client/utils/interactive.py:430
↓ 7 callers
Method
is_reference
This method uses a very naive approach to determine if the provided string is a reference - it only checks if this string contains
st2common/st2common/models/db/policy.py:44
↓ 7 callers
Function
merge_dicts
Merge values from d2 into d1 ignoring empty / None values. :type d1: ``dict`` :type d2: ``dict`` :rtype: ``dict``
st2client/st2client/utils/misc.py:27
↓ 7 callers
Function
normalize_pack_version
Normalize old, pre StackStorm v2.1 non valid semver version string (e.g. 0.2) to a valid semver version string (0.2.0). :rtype: ``str``
st2common/st2common/util/pack.py:224
↓ 7 callers
Method
post_run
(self, status, result)
st2common/st2common/runners/base.py:195
↓ 7 callers
Method
pre_run
(self)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:100
↓ 7 callers
Method
process
(self, liveaction)
st2actions/tests/integration/test_actions_queue_consumer.py:67
↓ 7 callers
Method
put
(self, url, data, **kwargs)
st2client/st2client/utils/httpclient.py:145
↓ 7 callers
Method
run
(self, max_pause, random)
contrib/core/actions/pause.py:26
↓ 7 callers
Method
run_ps
(self, script, params=None)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:367
↓ 7 callers
Method
shutdown
(self)
st2actions/st2actions/workflows/workflows.py:112
↓ 7 callers
Function
symmetric_decrypt
(decrypt_key, ciphertext)
st2common/st2common/util/crypto.py:216
↓ 7 callers
Function
use_select_poll_workaround
Work around for eventlet monkey patched code which relies on select.poll() functionality which is blocking and not green / async. Keep i
st2common/st2common/util/monkey_patch.py:59
↓ 6 callers
Method
__do_delete
(self, rule_id)
st2api/tests/unit/controllers/v1/test_rules.py:647
↓ 6 callers
Method
__do_get_one
(self, rule_id)
st2api/tests/unit/controllers/v1/test_rules.py:531
↓ 6 callers
Method
__do_post
(self, rule)
st2api/tests/unit/controllers/v1/test_rules.py:641
↓ 6 callers
Method
__get_rule_id
(resp)
st2api/tests/unit/controllers/v1/test_rules.py:635
↓ 6 callers
Method
__init__
(self, resource, *args, **kwargs)
st2client/st2client/commands/auth.py:109
↓ 6 callers
Method
__init__
(self, description, app, subparsers, parent_parser=None)
st2client/st2client/commands/keyvalue.py:40
↓ 6 callers
Method
_add_common_options
(self)
st2client/st2client/commands/action.py:454
↓ 6 callers
Function
_clone_content_to_destination_file
(source_file, destination_file)
st2common/st2common/services/packs.py:320
↓ 6 callers
Method
_do_get_one
(self, kvp_id, expect_errors=False)
st2api/tests/unit/controllers/v1/test_kvps.py:641
↓ 6 callers
Method
_get_failingaction_exec_db_model
(self, params)
st2actions/tests/unit/test_runner_container.py:434
↓ 6 callers
Method
_get_folder
(self, pack_dir, content_type)
st2common/st2common/content/loader.py:221
↓ 6 callers
Method
_get_full_key_name
Retrieve a full key name. :rtype: ``str``
st2common/st2common/services/datastore.py:243
↓ 6 callers
Method
_get_help_for_argument
(self, resource, argument)
st2client/st2client/commands/resource.py:287
↓ 6 callers
Method
_get_liveaction_model
(self, action_db, params)
st2actions/tests/unit/test_runner_container.py:419
↓ 6 callers
Method
_get_metavar_for_argument
(self, argument)
st2client/st2client/commands/resource.py:284
↓ 6 callers
Method
_get_test_script_action
()
st2common/tests/unit/test_paramiko_script_action_model.py:179
↓ 6 callers
Method
_handle_execution
(self, execution_queue_item_db)
st2actions/st2actions/scheduler/handler.py:261
↓ 6 callers
Method
_mock_run
(self, args, **kwargs)
st2client/tests/unit/test_auth.py:357
↓ 6 callers
Method
_register_action
(self, pack, action)
st2common/st2common/bootstrap/actionsregistrar.py:131
↓ 6 callers
Method
_reset_output_streams
Reset / clear stdout and stderr stream.
st2client/tests/base.py:131
↓ 6 callers
Method
_response_hook
(self, response)
st2client/st2client/utils/httpclient.py:167
↓ 6 callers
Method
_setup_crypto
()
st2common/st2common/models/api/keyvalue.py:77
↓ 6 callers
Method
_setup_sample_trigger
(self, name)
st2reactor/tests/unit/test_rule_matcher.py:268
↓ 6 callers
Method
_start_process
(self, env=None)
st2common/tests/integration/test_logging.py:281
↓ 6 callers
Method
assertExtractedParametersMatch
Assert that the provided command matches the format string. In addition to that, also assert that the parameters which have been ext
st2tests/st2tests/action_aliases.py:81
↓ 6 callers
Method
assert_user_has_resource_api_permission
Check that currently logged-in user has specified permission for the resource which is to be created.
st2common/st2common/rbac/backends/base.py:153
↓ 6 callers
Method
assert_user_is_admin
Assert that the currently logged in user is an administrator. If the user is not an administrator, an exception is thrown.
st2common/st2common/rbac/backends/base.py:118
↓ 6 callers
Function
cryptography_symmetric_decrypt
Decrypt the provided ciphertext which has been encrypted using symmetric_encrypt() method (it assumes input is in hex notation as returned by
st2common/st2common/util/crypto.py:293
↓ 6 callers
Method
dispatch
(self, trigger, payload=None, trace_tag=None)
st2tests/st2tests/mocks/sensor.py:74
↓ 6 callers
Method
get_api_client
Retrieve API client instance.
st2common/st2common/services/datastore.py:237
↓ 6 callers
Function
get_fixtures_base_path
()
st2tests/st2tests/fixturesloader.py:160
↓ 6 callers
Method
get_full_command_string
(self)
st2common/st2common/models/system/action.py:86
↓ 6 callers
Method
get_members
(cls, group_id)
st2common/st2common/services/coordination.py:150
↓ 6 callers
Function
get_pack_metadata
Return parsed metadata for a particular pack directory. :rtype: ``dict``
st2common/st2common/util/pack.py:100
↓ 6 callers
Function
get_pack_warnings
Return warning string if pack metadata indicates only python 2 is supported :rtype: ``str``
st2common/st2common/util/pack.py:121
↓ 6 callers
Function
get_runnertype_by_name
Get an runnertype by name. On error, raise ST2ObjectNotFoundError.
st2common/st2common/util/action_db.py:105
↓ 6 callers
Function
get_secret_parameters
Filter the provided parameters dict and return a dict of parameters which are marked as secret. Every key in the dict is the parameter name a
st2common/st2common/util/secrets.py:28
↓ 6 callers
Method
is_resource_reference
This method uses a very naive approach to determine if the provided string is a resource reference - it only checks if this string co
st2common/st2common/models/system/common.py:53
↓ 6 callers
Method
post
Create a new rule. Handles requests: POST /rules/
st2api/st2api/controllers/v1/rules.py:118
↓ 6 callers
Method
prep_wf_ex
(self, wf_ex_db)
st2tests/st2tests/base.py:704
↓ 6 callers
Method
print_not_found
(self, name)
st2client/st2client/commands/resource.py:180
↓ 6 callers
Method
process
(self, execution_db)
st2actions/st2actions/notifier/notifier.py:80
↓ 6 callers
Function
read_crypto_key
Read crypto key from keyczar JSON key file format and return parsed AESKey object. :param key_path: Absolute path to file containing crypto
st2common/st2common/util/crypto.py:183
↓ 6 callers
Function
refresh_conductor
(wf_ex_id)
st2common/st2common/services/workflows.py:997
↓ 6 callers
Method
register
(self, packs=None, types=None, **kwargs)
st2client/st2client/models/core.py:685
↓ 6 callers
Function
sanitize_output
Function which sanitizes paramiko output (stdout / stderr). It strips trailing carriage return and new line characters and if pty is used, i
st2common/st2common/util/misc.py:72
↓ 6 callers
Method
setup
(self)
st2common/tests/unit/test_trigger_services.py:277
↓ 6 callers
Method
stop
(cls)
st2common/st2common/services/coordination.py:86
↓ 6 callers
Function
symmetric_encrypt
(encrypt_key, plaintext)
st2common/st2common/util/crypto.py:212
↓ 6 callers
Function
temp_backup_action_files
(pack_base_path, metadata_file, entry_point, temp_sub_dir)
st2common/st2common/services/packs.py:425
↓ 6 callers
Function
test_file
(module: str, _object: str)
pants-plugins/pack_metadata/python_rules/conftest.py:111
↓ 6 callers
Method
to_dict
Return a dictionary representation of this object. :param exclude_attributes: Optional list of attributes to exclude. :type
st2client/st2client/models/core.py:98
↓ 6 callers
Method
to_serializable_dict
(self, mask_secrets=False)
st2common/tests/unit/test_logger.py:457
↓ 6 callers
Function
update_execution_records
( wf_ex_db, conductor, update_lv_ac_on_statuses=None, pub_wf_ex=False, pub_lv_ac=True,
st2common/st2common/services/workflows.py:1396
← previous
next →
301–400 of 6,742, ranked by callers