OXIESEC PANEL
- Current Dir:
/
/
opt
/
gsutil
/
gslib
/
vendored
/
boto
/
boto
/
s3
/
__pycache__
Server IP: 2a02:4780:11:1594:0:ef5:22d7:a
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/11/2025 08:19:48 AM
rwxr-xr-x
📄
__init__.cpython-39.pyc
1.66 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
acl.cpython-39.pyc
4.58 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
bucket.cpython-39.pyc
60.9 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
bucketlistresultset.cpython-39.pyc
4.54 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
bucketlogging.cpython-39.pyc
2.23 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
connection.cpython-39.pyc
19.94 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
cors.cpython-39.pyc
7.01 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
deletemarker.cpython-39.pyc
1.12 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
key.cpython-39.pyc
58.73 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
keyfile.cpython-39.pyc
3.78 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
lifecycle.cpython-39.pyc
9.59 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
multidelete.cpython-39.pyc
3.9 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
multipart.cpython-39.pyc
9.75 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
prefix.cpython-39.pyc
978 bytes
02/11/2025 08:19:48 AM
rw-r--r--
📄
tagging.cpython-39.pyc
2.71 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
user.cpython-39.pyc
1.17 KB
02/11/2025 08:19:48 AM
rw-r--r--
📄
website.cpython-39.pyc
9.92 KB
02/11/2025 08:19:48 AM
rw-r--r--
Editing: key.cpython-39.pyc
Close
a sFg�J � @ s< d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl Z d dlZd dlmZ d dl Zd dlmZmZmZmZ d dlmZ d dlmZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZ d d lm Z d dl Zd dl m!Z!m"Z" d dl m#Z# d dl m$Z$ d dl m%Z% G dd� de&�Z'dS )� )�print_functionN)�md5)�BytesIO�six�urllib�encodebytes��BotoClientError)�StorageDataError)�PleaseRetryException)�ResumableDownloadException)�ResumableTransferDisposition)�Provider)�KeyFile)�User)� UserAgent)�compute_md5�compute_hash)�find_matching_headers)�merge_headers_by_name)�print_to_fdc @ s� e Zd ZdZdZdZej�ddd�Z e g d��Ze � ZeD ]Z e�e �dd �� q:ee g d ��B Zd�dd �Zdd� Zdd� Zedd� �Zdd� Zdd� Zeee�Zdd� Zdd� Zeee�Zdd� Zdd� Zeee�Zd d!� Zd"d#� Z eee �Z!d$d%� Z"d&d'� Z#d(d)� Z$d�d+d,�Z%d-d.� Z&d/d0� Z'd�d2d3�Z(d�d4d5�Z)d�d7d8�Z*d*Z+d�d9d:�Z,d;d<� Z-e-Z.d�d>d?�Z/d�dAdB�Z0d�dCdD�Z1dEdF� Z2dGdH� Z3d�dIdJ�Z4d�dKdL�Z5dMdN� Z6dOdP� Z7dQdR� Z8d�dSdT�Z9d�dUdV�Z:d�dWdX�Z;d�dYdZ�Z<d�d[d\�Z=d]d^� Z>d�d_d`�Z?d�dadb�Z@d�ddde�ZAd�dgdh�ZBd�didj�ZCd�dkdl�ZDd�dmdn�ZEd�dodp�ZFd�dqdr�ZGd�dsdt�ZHd�dudv�ZId�dwdx�ZJd�dydz�ZKd�d{d|�ZLd�d}d~�ZMd�dd��ZNd�d�d��ZOd�d�d��ZPd�d�d��ZQd�d�� ZRd�d�d��ZSd�d�d��ZTd�d�d��ZUdS )��KeyaC Represents a key (object) in an S3 bucket. :ivar bucket: The parent :class:`boto.s3.bucket.Bucket`. :ivar name: The name of this Key object. :ivar metadata: A dictionary containing user metadata that you wish to store with the object or that has been retrieved from an existing object. :ivar cache_control: The value of the `Cache-Control` HTTP header. :ivar content_type: The value of the `Content-Type` HTTP header. :ivar content_encoding: The value of the `Content-Encoding` HTTP header. :ivar content_disposition: The value of the `Content-Disposition` HTTP header. :ivar content_language: The value of the `Content-Language` HTTP header. :ivar etag: The `etag` associated with this object. :ivar last_modified: The string timestamp representing the last time this object was modified in S3. :ivar owner: The ID of the owner of this object. :ivar storage_class: The storage class of the object. Currently, one of: STANDARD | REDUCED_REDUNDANCY | GLACIER :ivar md5: The MD5 hash of the contents of the object. :ivar size: The size, in bytes, of the object. :ivar version_id: The version ID of this object, if it is a versioned object. :ivar encrypted: Whether the object is encrypted while at rest on the server. zapplication/octet-streamz�<?xml version="1.0" encoding="UTF-8"?> <RestoreRequest xmlns="http://s3.amazonaws.com/doc/2006-03-01"> <Days>%s</Days> </RestoreRequest>�BotoZkey_buffer_sizei )z cache-controlzcontent-dispositionzcontent-encodingzcontent-language�content-md5�content-typezx-robots-tag�expires�-�_)z last-modified�content-length�date�etagNc C s� || _ || _i | _d | _| j| _d | _d | _d | _d | _ d | _ d| _d | _d | _ d | _d | _d | _d | _d | _d | _d | _d| _d | _d | _d | _i | _d S )NF)�bucket�name�metadataZ cache_control�DefaultContentType�content_type�content_encoding�content_disposition�content_language�filenamer � is_latest� last_modified�owner�_storage_class�path�resp�mode�size� version_id�source_version_id� delete_marker� encrypted�ongoing_restore�expiry_date�local_hashes)�selfr! r"