sos.upload
— Upload Interface¶
- class sos.upload.SoSUpload(parser=None, args=None, cmdline=None, in_place=False, hook_commons=None, archive=None)[source]¶
Bases:
SoSComponent
This class is designed to upload files to a distribution defined location. These files can be either sos reports, sos collections, or other kind of files like: vmcores, application cores, logs, etc.
- classmethod add_parser_options(parser)[source]¶
This should be overridden by each subcommand to add its own unique options to the parser
- arg_defaults = {'case_id': '', 'low_priority': False, 'upload_directory': None, 'upload_file': '', 'upload_method': 'auto', 'upload_no_ssl_verify': False, 'upload_pass': None, 'upload_protocol': 'auto', 'upload_s3_access_key': None, 'upload_s3_bucket': None, 'upload_s3_endpoint': 'https://s3.amazonaws.com', 'upload_s3_object_prefix': None, 'upload_s3_region': None, 'upload_s3_secret_key': None, 'upload_target': None, 'upload_url': None, 'upload_user': None}¶
- desc = 'Upload a file to a user or policy defined remote location'¶
- determine_upload_target()[source]¶
This sets the upload target and loads that target’s options.
If no upload target is matched and no target is provided by the user, then we abort.
If an upload target is provided in the command line, this will not run.