class Google::Cloud::Storage

Defined in:

cloud/storage.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(credentials : Google::ServiceAccount::Key, storage_host : String = "storage.googleapis.com") #

[View source]

Instance Method Detail

def buckets #

[View source]
def credentials : ServiceAccount::Key #

[View source]
def delete(path : String, headers = HTTP::Headers.new, &) #

[View source]
def get(path : String, headers = HTTP::Headers.new, &) #

[View source]
def objects #

[View source]
def post(path : String, body, headers = HTTP::Headers.new, &) #

[View source]
def presigned_url(bucket : String, key : String, method : String = "GET", expires_in : Time::Span = 1.hour, content_type : String | Nil = nil, content_md5_base64 : String | Nil = nil, headers : HTTP::Headers = HTTP::Headers.new, payload_handling : String = "UNSIGNED-PAYLOAD") #

[View source]