module AZBlob

Defined in:

azblob.cr
azblob/client.cr
azblob/config.cr
azblob/constants.cr
azblob/credential/shared_key.cr
azblob/helper.cr
azblob/models/blob.cr
azblob/net/downloader.cr
azblob/net/options.cr
azblob/net/range.cr
azblob/net/uploader.cr
azblob/pager.cr
azblob/sas/permission.cr
azblob/sas/sas.cr

Constant Summary

AZURE_ENDPOINT_URL = "https://%s.blob.core.windows.net/"
AZURE_ENDPOINT_URL_SHARED = "https://%s.blob.core.windows.net/?%s"
AZURE_STORAGE_ACCOUNT_KEY = ENV["AZURE_STORAGE_ACCOUNT_KEY"]?
AZURE_STORAGE_ACCOUNT_NAME = ENV["AZURE_STORAGE_ACCOUNT_NAME"]?
AZURE_STORAGE_CONNECTION_STRING = ENV["AZURE_STORAGE_CONNECTION_STRING"]?
AZURE_STORAGE_SHARED_ACCESS_SIGNATURE = ENV["AZURE_STORAGE_SHARED_ACCESS_SIGNATURE"]?
ContentTypeAppJSON = "application/json"
ContentTypeAppXML = "application/xml"
ContentTypeBinary = "application/octet-stream"
ContentTypeTextPlain = "text/plain"
DefaultConcurrency = 5
DefaultDownloadBlockSize = ((4 * 1024) * 1024).to_i64
DEFUALT_SCHEME = "https"
DEFUALT_SUFFIX = "core.windows.net"
HeaderAuthorization = "Authorization"
HeaderAuxiliaryAuthorization = "x-ms-authorization-auxiliary"
HeaderAzureAsync = "Azure-AsyncOperation"
HeaderContentEncoding = "Content-Encoding"
HeaderContentLanguage = "Content-Language"
HeaderContentLength = "Content-Length"
HeaderContentMD5 = "Content-MD5"
HeaderContentType = "Content-Type"
HeaderFakePollerStatus = "Fake-Poller-Status"
HeaderIfMatch = "If-Match"
HeaderIfModifiedSince = "If-Modified-Since"
HeaderIfNoneMatch = "If-None-Match"
HeaderIfUnmodifiedSince = "If-Unmodified-Since"
HeaderLocation = "Location"
HeaderOperationLocation = "Operation-Location"
HeaderRange = "Range"
HeaderRetryAfter = "Retry-After"
HeaderRetryAfterMS = "Retry-After-Ms"
HeaderUserAgent = "User-Agent"
HeaderWWWAuthenticate = "WWW-Authenticate"
HeaderXMSClientRequestID = "x-ms-client-request-id"
HeaderXmsDate = "x-ms-date"
HeaderXMSErrorCode = "x-ms-error-code"
HeaderXMSRequestID = "x-ms-request-id"
HeaderXMSRetryAfterMS = "x-ms-retry-after-ms"
HeaderXmsVersion = "x-ms-version"
INVALID_CONNECTION_STRING = "\n connection string is either blank or malformed. The expected connection string should contain key value pairs separated by semicolons.\n For example 'DefaultEndpointsProtocol=https;AccountName=<accountName>;AccountKey=<accountKey>;EndpointSuffix=core.windows.net'\n "
MaxBlocks = 50000

MaxBlocks indicates the maximum number of blocks allowed in a block blob.

MaxStageBlockBytes = (4000_i64 * 1024) * 1024

MaxStageBlockBytes indicates the maximum number of bytes that can be sent in a call to StageBlock.

MaxUploadBlobBytes = (256 * 1024) * 1024

MaxUploadBlobBytes indicates the maximum number of bytes that can be sent in a call to Upload.

ServiceVersion = "2024-05-04"
VERSION = {{ (`shards version \"/srv/crystaldoc.info/github-spider-gazelle-azblob.cr-v0.1.0/src\"`).chomp.stringify.downcase }}

Class Method Summary

Class Method Detail

def self.client(connection_string : String, proxy : Client::ProxyConfig | Nil = nil) #

[View source]
def self.client_from_env #

[View source]