abstract class UploadSigner::Storage
- UploadSigner::Storage
- Reference
- Object
Direct Known Subclasses
Defined in:
storage.crConstant Summary
-
UPLOAD_THRESHOLD =
5000000
Class Method Summary
Instance Method Summary
- #commit_file(bucket : String, object_key : String, resumable_id : String, headers = {} of String => String)
- #delete_file(bucket : String, object_key : String, resumable_id : String | Nil = nil)
-
#get_object(bucket : String, filename : String, expires = 5 * 60)
Create a signed URL for access a private file
-
#get_parts(bucket : String, object_key : String, size : Int64, resumable_id : String, headers = {} of String => String)
Returns the request to get the parts of a resumable upload
- #multipart? : Bool
- #name : String
- #set_part(bucket : String, object_key : String, size : Int64, md5 : String | Nil, part : String, resumable_id : String, headers = {} of String => String)
-
#sign_upload(bucket : String, object_key : String, size : Int64, md5 : String, mime = "binary/octet-stream", permissions = :public, expires = 5 * 60, headers = {} of String => String) : SignResp
Creates a new upload request (either single shot or multi-part)
Class Method Detail
def self.signer(type : StorageType, account_name : String, account_key : String, region : String | Nil = nil, endpoint : String | Nil = nil)
#
Instance Method Detail
abstract
def commit_file(bucket : String, object_key : String, resumable_id : String, headers = {} of String => String)
#
abstract
def delete_file(bucket : String, object_key : String, resumable_id : String | Nil = nil)
#
Create a signed URL for access a private file
abstract
def get_parts(bucket : String, object_key : String, size : Int64, resumable_id : String, headers = {} of String => String)
#
Returns the request to get the parts of a resumable upload
abstract
def set_part(bucket : String, object_key : String, size : Int64, md5 : String | Nil, part : String, resumable_id : String, headers = {} of String => String)
#