Module Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad Call NameLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str ListLoad body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Return Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str If NameLoad body Expr Call AttributeLoad NameLoad attr ListLoad Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Return Dict If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A logging N/A base_behaviors SecretBehaviors N/A N/A base_behaviors BaseBehaviors N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super SecretBehaviors self __init__ N/A N/A self LOG N/A N/A logging getLogger N/A N/A type self __name__ N/A N/A self secret_hrefs_to_delete N/A N/A update_secret N/A N/A self secret_href payload N/A N/A N/A  Update a secret

        :param secret_href the href to the secret to update.
        :param payload the payload to put into the secret.
        :param payload_content_type the payload content type.
         N/A argv N/A secret update N/A N/A N/A self add_auth_and_endpoint argv N/A N/A N/A argv extend N/A secret_href N/A N/A N/A argv extend N/A payload N/A N/A stdout stderr N/A N/A self issue_barbican_command argv N/A delete_secret N/A N/A self secret_href N/A N/A N/A  Delete a secret

        :param secret_href the href to the secret to delete
         N/A argv N/A secret delete N/A N/A N/A self add_auth_and_endpoint argv N/A N/A N/A argv extend N/A secret_href N/A N/A stdout stderr N/A N/A self issue_barbican_command argv N/A N/A N/A N/A self secret_hrefs_to_delete remove secret_href N/A store_secret N/A N/A self payload store_argv N/A Payload for testing N/A N/A N/A  Store (aka create) a secret

        The store_argv parameter allows additional command line parameters for
        the store operation to be specified. This can be used to specify -a for
        algorithm as an example.

        :param payload The payload to use when storing the secret
        :param store_argv The store command line parameters

        :return: the href to the newly created secret
         N/A argv N/A secret store N/A N/A N/A self add_auth_and_endpoint argv N/A N/A N/A argv extend N/A --payload payload N/A N/A N/A argv extend store_argv N/A N/A stdout stderr N/A N/A self issue_barbican_command argv N/A secret_data N/A N/A self _prettytable_to_dict stdout N/A secret_href N/A secret_data N/A Secret href N/A N/A N/A N/A self secret_hrefs_to_delete append secret_href N/A secret_href N/A get_secret N/A N/A self secret_href N/A N/A N/A  Get a secret

        :param: the href to a secret
        :return dict of secret values, or an empty dict if the secret
        is not found.
         N/A argv N/A secret get N/A N/A N/A self add_auth_and_endpoint argv N/A N/A N/A argv extend N/A secret_href N/A N/A stdout stderr N/A N/A self issue_barbican_command argv N/A N/A 4xx Client error: Not Found stderr N/A N/A N/A N/A secret_data N/A N/A self _prettytable_to_dict stdout N/A secret_data N/A get_secret_payload N/A N/A self secret_href raw N/A False N/A N/A  Get a secret

        :param: the href to a secret
        :param raw if True then add "-f value" to get raw payload (ie not
        within a PrettyTable).  If False then omit -f.
        :return string representing the secret payload.
         N/A argv N/A secret get N/A N/A N/A self add_auth_and_endpoint argv N/A N/A N/A argv extend N/A secret_href N/A N/A N/A argv extend N/A --payload N/A raw N/A N/A N/A N/A argv extend N/A -f value N/A N/A stdout stderr N/A N/A self issue_barbican_command argv N/A N/A 4xx Client error: Not Found stderr N/A N/A N/A N/A raw N/A N/A secret N/A N/A stdout rstrip N/A N/A secret_data N/A N/A self _prettytable_to_dict stdout N/A secret N/A secret_data N/A Payload N/A secret N/A list_secrets N/A N/A self N/A N/A N/A  List secrets

        :return: a list of secrets
         N/A argv N/A secret list N/A N/A N/A self add_auth_and_endpoint argv N/A N/A stdout stderr N/A N/A self issue_barbican_command argv N/A secret_list N/A N/A self _prettytable_to_list stdout N/A secret_list N/A delete_all_created_secrets N/A N/A self N/A N/A N/A  Delete all secrets that we created  N/A href N/A self secret_hrefs_to_delete N/A N/A N/A N/A self delete_secret href N/A N/A