MCPcopy Index your code

hub / github.com/StackStorm/st2 / functions

Functions6,742 in github.com/StackStorm/st2

↓ 24 callersMethodmock_st2_context
(self, ac_ex_db, context=None)
st2tests/st2tests/base.py:688
↓ 24 callersMethodpop
(self, last=True)
st2client/st2client/utils/types.py:66
↓ 23 callersMethod_do_delete
(self, kvp_id, expect_errors=False)
st2api/tests/unit/controllers/v1/test_kvps.py:649
↓ 23 callersMethodload_fixtures
Loads fixtures specified in fixtures_dict. We simply want to load the meta into dict objects. fixtures_dict should be of the
st2tests/st2tests/fixturesloader.py:249
↓ 22 callersMethodkill
(self)
st2common/st2common/transport/consumers.py:209
↓ 22 callersMethodload_models
Loads fixtures specified in fixtures_dict as db models. This method must be used for fixtures that have associated DB models. We simp
st2tests/st2tests/fixturesloader.py:287
↓ 22 callersMethodmatch
(self, req)
st2common/st2common/router.py:271
↓ 22 callersFunctionrun_command
Run the provided command in a subprocess and wait until it completes. :param cmd: Command to run. :type cmd: ``str`` or ``list`` :p
st2common/st2common/util/shell.py:42
↓ 22 callersMethoduse_user
Select a user which is to be used by the HTTP request following this call.
st2tests/st2tests/api.py:165
↓ 21 callersFunctioncomplex_semver_match
Custom semver match function which also supports complex semver specifiers such as >=1.6, <2.0, etc. NOTE: This function also supports s
st2common/st2common/util/versioning.py:51
↓ 20 callersMethodadd_process
Add a process to the local data structure to make sure it will get killed and cleaned up on tearDown.
st2tests/st2tests/base.py:612
↓ 20 callersFunctionfast_deepcopy_dict
Perform a fast deep copy of the provided value. This function is designed primary to operate on values of a simple type (think JSON types -
st2common/st2common/util/deep_copy.py:32
↓ 20 callersMethodget_indexes
(cls)
st2common/st2common/models/db/stormbase.py:179
↓ 20 callersFunctionjson_encode
Wrapper function for encoding the provided object. This function automatically select appropriate JSON library based on the configuration va
st2common/st2common/util/jsonify.py:103
↓ 20 callersMethodpost_run
(self, status, result)
contrib/runners/inquirer_runner/inquirer_runner/inquirer_runner.py:99
↓ 20 callersMethodpre_run
(self)
contrib/runners/local_runner/local_runner/base.py:90
↓ 20 callersMethodrun
(self, action_parameters)
contrib/runners/local_runner/local_runner/local_shell_script_runner.py:30
↓ 19 callersMethod_init_runner
(self)
contrib/runners/winrm_runner/tests/unit/test_winrm_base.py:39
↓ 19 callersMethodinsert
( cls, model_object, publish=True, dispatch_trigger=True, log_not_uniq
st2common/st2common/persistence/base.py:125
↓ 18 callersMethod_from_model
(cls, model, mask_secrets=False)
st2common/st2common/models/api/base.py:88
↓ 18 callersMethodassertPromptValidate
(self, prompt_mock, value)
st2client/tests/unit/test_interactive.py:41
↓ 18 callersMethodcreate
(self, instance, **kwargs)
st2client/st2client/models/core.py:370
↓ 18 callersFunctiondb_setup
Creates the database and indexes (optional).
st2common/st2common/database_setup.py:51
↓ 18 callersMethodinc_counter
Increment counter
st2common/st2common/metrics/base.py:64
↓ 18 callersFunctionmake_mock_stream_readline
(mock_stream, mock_data, stop_counter=1, sleep_delay=0)
st2tests/st2tests/base.py:829
↓ 18 callersMethodmock_workflow_records
(self, completed=False, expired=True, log=True)
st2common/tests/unit/services/test_workflow_identify_orphans.py:118
↓ 18 callersMethodreset
(cls)
st2tests/st2tests/base.py:417
↓ 18 callersMethodupdate
(self, instance, **kwargs)
st2common/st2common/models/db/__init__.py:638
↓ 18 callersMethodvalidate
(self)
st2common/st2common/models/api/pack.py:170
↓ 17 callersMethod_get_mask_secrets
Return a value for mask_secrets which can be used in masking secret properties to be retruned by any API. The default value is as per
st2api/st2api/controllers/base.py:69
↓ 17 callersMethod_param_to_ps
(self, param)
contrib/runners/winrm_runner/winrm_runner/winrm_base.py:451
↓ 17 callersFunctionclone_action_db
(source_action_db, dest_pack, dest_action)
st2common/st2common/services/packs.py:399
↓ 17 callersFunctionensure_operators_are_strings
This function ensures that both value and criteria_pattern arguments are unicode (string) values if the input value type is bytes. If a
st2common/st2common/operators.py:358
↓ 16 callersMethod_get_include_attributes
Return a list of attributes to send to the API using ?include_attributes filter. If None / empty list is returned it's assumed no fi
st2client/st2client/commands/resource.py:307
↓ 16 callersFunctionabort_request
( status_code=http_client.UNAUTHORIZED, message="Invalid or missing credentials" )
st2auth/st2auth/handlers.py:38
↓ 16 callersFunctionclone_action_files
Prepares the path for entry point and metadata files for source and destination. Clones the content from source action files to destination a
st2common/st2common/services/packs.py:343
↓ 16 callersMethoddispatch
(self, trigger, payload=None, trace_tag=None)
st2reactor/st2reactor/container/sensor_wrapper.py:110
↓ 16 callersFunctioneval_repo_url
Allow passing short GitHub or GitLab SSH style URLs.
st2common/st2common/util/pack_management.py:430
↓ 16 callersFunctiongenerate_helpstring_result
List help strings from a collection of alias objects. :param aliases: The list of aliases :type aliases: ``list`` of :class:`st2common.
st2common/st2common/util/actionalias_helpstring.py:24
↓ 16 callersMethodget_all
(self, **kwargs)
st2client/st2client/models/core.py:221
↓ 16 callersMethodget_wf_def
(self, test_pack_path, wf_meta)
st2tests/st2tests/base.py:681
↓ 16 callersFunctionparse
Parse a date string and return a time-zone aware datetime object. :param value: Date in ISO8601 format. :type value: ``str`` :param
st2common/st2common/util/date.py:73
↓ 15 callersMethod_do_create_inquiry
(self, liveaction, result, status="pending", *args, **kwargs)
st2tests/st2tests/api.py:448
↓ 15 callersMethod_get_by_ref_or_id
(self, ref_or_id, exclude_fields=None)
st2api/st2api/controllers/v1/packs.py:324
↓ 15 callersMethod_get_impl
(cls)
st2common/st2common/persistence/base.py:53
↓ 15 callersFunctiondb_setup
( db_name, db_host, db_port, username=None, password=None, ensure_indexes=True, tl
st2common/st2common/models/db/__init__.py:240
↓ 15 callersFunctionget_pack_base_path
Return full absolute base path to the content pack directory. Note: This function looks for a pack in all the load paths and return path to
st2common/st2common/content/utils.py:135
↓ 15 callersMethodlist_values
Retrieve all the datastores items. :param local: List values from a namespace local to this pack/class. Defaults to True. :t
st2common/st2common/services/datastore.py:71
↓ 15 callersFunctionplatform
Create a Platform with all values defaulted to the empty string.
pants-plugins/uses_services/data_fixtures.py:19
↓ 15 callersMethodrelease
(self)
st2common/st2common/services/coordination.py:53
↓ 15 callersFunctionsetup
Configure logging from file. :param st2_conf_path: Optional path to st2.conf file. If provided and "config_file" path is
st2common/st2common/log.py:269
↓ 14 callersMethod_get_one_by_id
Override ResourceController._get_one_by_id to contain scope of Inquiries UID hack :param exclude_fields: A list of object fields to exclude.
st2api/st2api/controllers/v1/inquiries.py:205
↓ 14 callersFunction_register_opts
(opts, group=None)
st2tests/st2tests/config.py:569
↓ 14 callersMethodfrom_string_reference
(cls, ref)
st2common/st2common/models/db/policy.py:55
↓ 14 callersFunctionget_packs_base_paths
Return a list of base paths which are searched for integration packs. :rtype: ``list``
st2common/st2common/content/utils.py:68
↓ 14 callersMethodget_permission_type
Retrieve permission type enum value for the provided resource type and permission name. :rtype: ``str``
st2common/st2common/rbac/types.py:224
↓ 14 callersMethodmkdir
Create a directory on remote box. :param dir_path: Path to remote directory to be created. :type dir_path: ``str``
st2common/st2common/runners/paramiko_ssh.py:314
↓ 14 callersMethodmock_task_records
( self, parent, task_id, task_route=0, completed=True, expired=False, log=True )
st2common/tests/unit/services/test_workflow_identify_orphans.py:194
↓ 14 callersMethodoverride
Loads override content for pack, and updates content :param pack_name: Name of pack :type pack_name: ``str`` :param
st2common/st2common/content/loader.py:297
↓ 14 callersMethodparse_field_value
Parse provided binary field value and return parsed value (dictionary). For example: - (n, o, ...) - no compression, da
st2common/st2common/fields.py:403
↓ 14 callersMethodrespond
Update st2.inquiry.respond action Update st2client respond command to use this?
st2client/st2client/models/core.py:605
↓ 14 callersMethodrun
(self)
contrib/runners/http_runner/http_runner/http_runner.py:248
↓ 14 callersMethodsort_workflow_errors
(self, errors)
st2tests/st2tests/base.py:778
↓ 14 callersFunctionstrip_shell_chars
Strips the last '\r' or '\n' or '\r\n' string at the end of the input string. This is typically used to strip ``stdout`` and ``stderr`` s
st2common/st2common/util/misc.py:96
↓ 14 callersMethodupdate
(self, instance, **kwargs)
st2client/st2client/models/core.py:701
↓ 13 callersMethod__do_post
(self, hook, webhook, expect_errors=False, headers=None)
st2api/tests/unit/controllers/v1/test_webhooks.py:414
↓ 13 callersMethod__get_trigger_id
(resp)
st2api/tests/unit/controllers/v1/test_triggertypes.py:163
↓ 13 callersMethod_delete
(model_objects)
st2common/tests/unit/test_db.py:1014
↓ 13 callersMethod_get_inquiry_id
(resp)
st2tests/st2tests/api.py:430
↓ 13 callersMethod_get_next_execution
Sort execution requests by FIFO and priority and get the latest, highest priority item from the queue and pop it off. NOTE:
st2actions/st2actions/scheduler/handler.py:218
↓ 13 callersMethod_get_runner
( action_db, entry_point=None, cmd=None, on_behalf_user=None, user=Non
contrib/runners/local_runner/tests/integration/test_localrunner.py:403
↓ 13 callersFunction_get_tls_kwargs
( tls=False, tls_certificate_key_file=None, tls_certificate_key_file_password=None, tls_allow_
st2common/st2common/models/db/__init__.py:457
↓ 13 callersMethod_get_trigger_id
(resp)
st2api/tests/unit/controllers/v1/test_triggers.py:157
↓ 13 callersMethod_mark_as_changed
(self, key=None)
st2common/st2common/fields.py:251
↓ 13 callersMethod_submit_request
(self, action_ref=ACTION_REF)
st2common/tests/unit/services/test_action.py:199
↓ 13 callersMethodclose
(self)
st2common/st2common/runners/paramiko_ssh.py:503
↓ 13 callersFunctionderegister_service
(service, start_heart=True)
st2common/st2common/service_setup.py:347
↓ 13 callersFunctiondo_register_cli_opts
(opt, ignore_errors=False, group=None)
st2common/st2common/config.py:40
↓ 13 callersMethodget_lock
(name)
st2common/st2common/services/coordination.py:172
↓ 13 callersMethodget_permission_name
Retrieve permission name from the provided permission type. :rtype: ``str``
st2common/st2common/rbac/types.py:194
↓ 13 callersMethodhandle_auth
( self, request, headers=None, remote_addr=None, remote_user=None,
st2auth/st2auth/handlers.py:172
↓ 13 callersFunctionjson_decode
Wrapper function for decoding the provided JSON string. This function automatically select appropriate JSON library based on the configurati
st2common/st2common/util/jsonify.py:121
↓ 13 callersMethodpause
(self)
st2common/st2common/runners/base.py:178
↓ 13 callersMethodpost
(self, url, data, **kwargs)
st2client/st2client/utils/httpclient.py:128
↓ 13 callersMethodregister_packs
Register packs in all the provided directories.
st2common/st2common/bootstrap/base.py:102
↓ 13 callersFunctionrstrip_last_char
Strips the last `char_to_strip` from input_str if input_str ends with `char_to_strip`. :param input_str: Input string to be stripped.
st2common/st2common/util/misc.py:112
↓ 13 callersMethodrun_workflow_step
( self, wf_ex_db, task_id, route, ctx=None, expected_ac_ex_db_
st2tests/st2tests/base.py:745
↓ 13 callersMethodwait
(self)
st2common/st2common/transport/consumers.py:202
↓ 12 callersMethod__do_get_one
(self, action_id, expect_errors=False)
st2api/tests/unit/controllers/v1/test_actions.py:1127
↓ 12 callersMethod__do_post
(self, trigger)
st2api/tests/unit/controllers/v1/test_triggertypes.py:169
↓ 12 callersMethod__get_obj_id
(resp, idx=-1)
st2api/tests/unit/controllers/v1/test_policies.py:307
↓ 12 callersMethodassertEndsWith
(self, string, ending_substr, msg=None)
st2common/tests/unit/test_util_sandboxing.py:58
↓ 12 callersMethodcheck_available_count
(self, result, count)
st2common/tests/unit/test_util_actionalias_helpstrings.py:128
↓ 12 callersMethodcheck_data_structure
(self, result)
st2common/tests/unit/test_util_actionalias_helpstrings.py:123
↓ 12 callersMethodenforce
(self)
st2reactor/st2reactor/rules/enforcer.py:88
↓ 12 callersMethodget_all
( self, end_execution_id=None, end_event=None, events=None, action_ref
st2stream/st2stream/controllers/v1/stream.py:55
↓ 12 callersMethodget_by_id
(self, id, **kwargs)
st2client/st2client/models/core.py:255
↓ 12 callersMethodget_next_node
(self, curr_node_name=None, condition="on-success")
contrib/runners/action_chain_runner/action_chain_runner/action_chain_runner.py:253
↓ 12 callersFunctionget_resources_base_path
()
st2tests/st2tests/fixturesloader.py:168
↓ 12 callersFunctionget_runner_container
()
st2actions/st2actions/container/base.py:505
← previousnext →101–200 of 6,742, ranked by callers