Attributes contains attributes about a blob.

Hierarchy

  • Attributes

Methods

  • As converts i to driver-specific types. See https://gocloud.dev/concepts/as/ for background information, the "As" examples in this package for examples, and the driver package documentation for the specific types supported for that driver.

    Parameters

    • i: {}

      Returns boolean

    Properties

    cacheControl: string

    CacheControl specifies caching attributes that services may use when serving the blob. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

    contentDisposition: string

    ContentDisposition specifies whether the blob content is expected to be displayed inline or as an attachment. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition

    contentEncoding: string

    ContentEncoding specifies the encoding used for the blob's content, if any. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding

    contentLanguage: string

    ContentLanguage specifies the language used in the blob's content, if any. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Language

    contentType: string

    ContentType is the MIME type of the blob. It will not be empty. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type

    createTime: Time

    CreateTime is the time the blob was created, if available. If not available, CreateTime will be the zero time.

    eTag: string
    md5: string | number[]

    MD5 is an MD5 hash of the blob contents or nil if not available.

    metadata: _TygojaDict

    Metadata holds key/value pairs associated with the blob. Keys are guaranteed to be in lowercase, even if the backend service has case-sensitive keys (although note that Metadata written via this package will always be lowercased). If there are duplicate case-insensitive keys (e.g., "foo" and "FOO"), only one value will be kept, and it is undefined which one.

    modTime: Time

    ModTime is the time the blob was last modified.

    size: number

    Size is the size of the blob's content in bytes.

    Generated using TypeDoc