class UploadSigner::AzureStorage

Defined in:

backends/azure_blob.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Instance methods inherited from class UploadSigner::Storage

commit_file(bucket : String, object_key : String, resumable_id : String, headers = {} of String => String) commit_file, delete_file(bucket : String, object_key : String, resumable_id : String | Nil = nil) delete_file, get_object(bucket : String, filename : String, expires = 5 * 60) get_object, get_parts(bucket : String, object_key : String, size : Int64, resumable_id : String, headers = {} of String => String) get_parts, multipart? : Bool multipart?, name : String name, set_part(bucket : String, object_key : String, size : Int64, md5 : String | Nil, part : String, resumable_id : String, headers = {} of String => String) set_part, 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 sign_upload

Class methods inherited from class UploadSigner::Storage

signer(type : StorageType, account_name : String, account_key : String, region : String | Nil = nil, endpoint : String | Nil = nil) signer

Constructor Detail

def self.new(account_name : String, account_key : String, endpoint : String | Nil = nil) #

[View source]
def self.new(connection_string : String) #

[View source]

Instance Method Detail

def client : AZBlob::Client #

[View source]
def commit_file(bucket : String, object_key : String, resumable_id : String, headers = {} of String => String) #

[View source]
def delete_file(bucket : String, object_key : String, resumable_id : String | Nil = nil) #

[View source]
def get_object(bucket : String, filename : String, expires = 5 * 60) #
Description copied from class UploadSigner::Storage

Create a signed URL for access a private file


[View source]
def get_parts(bucket : String, object_key : String, size : Int64, resumable_id : String, headers = {} of String => String) #
Description copied from class UploadSigner::Storage

Returns the request to get the parts of a resumable upload


[View source]
def name : String #

[View source]
def set_part(bucket : String, object_key : String, size : Int64, md5 : String | Nil, part : String, resumable_id : String, headers = {} of String => String) #

[View source]
def 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 #
Description copied from class UploadSigner::Storage

Creates a new upload request (either single shot or multi-part)


[View source]