MCPcopy Index your code
hub / github.com/saltstack/salt / from_str

Method from_str

salt/crypt.py:289–292  ·  view source on GitHub ↗
(cls, key_str, *args, **kwargs)

Source from the content-addressed store, hash-verified

287
288 @classmethod
289 def from_str(cls, key_str, *args, **kwargs):
290 key_bytes = salt.utils.stringutils.to_bytes(key_str)
291
292 return cls(key_bytes, *args, **kwargs)
293
294 @classmethod
295 def from_bytes(cls, key_bytes, *args, **kwargs):

Callers 15

__verify_minionMethod · 0.80
_returnMethod · 0.80
_auth_implMethod · 0.80
change_stateMethod · 0.80
find_or_create_keysMethod · 0.80
fetchMethod · 0.80
get_keysMethod · 0.80
_encrypt_privateMethod · 0.80
test_pub_ret_traversalFunction · 0.80
minion1_keyFunction · 0.80
minion2_keyFunction · 0.80
test_from_str_spaceMethod · 0.80

Calls

no outgoing calls

Tested by 8

test_pub_ret_traversalFunction · 0.64
minion1_keyFunction · 0.64
minion2_keyFunction · 0.64
test_from_str_spaceMethod · 0.64
test_from_str_noneMethod · 0.64