c

fly.play.s3

Bucket

case class Bucket(name: String, delimiter: Option[String] = Some("/"), s3: S3) extends Product with Serializable

Representation of a bucket

name

The name of the bucket needed to create a Bucket representation

delimiter

A delimiter to use for this Bucket instance, default is a / (slash)

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Bucket
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Bucket(name: String, delimiter: Option[String] = Some("/"), s3: S3)

    name

    The name of the bucket needed to create a Bucket representation

    delimiter

    A delimiter to use for this Bucket instance, default is a / (slash)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(bucketFile: BucketFile)(implicit executionContext: ExecutionContext): Future[Unit]

    See also

    add

  4. def -(itemName: String)(implicit executionContext: ExecutionContext): Future[Unit]

    See also

    remove

  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def abortMultipartUpload(uploadTicket: BucketFileUploadTicket)(implicit executionContext: ExecutionContext): Future[Unit]

    Aborts a multipart upload

    Aborts a multipart upload

    uploadTicket

    The ticket acquired from initiateMultipartUpload

  7. def add(bucketFile: BucketFile)(implicit executionContext: ExecutionContext): Future[Unit]

    Adds a file to this bucket

    Adds a file to this bucket

    bucketFile

    A representation of the file

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(sourceItemName: String, destinationItemName: String, acl: ACL = PUBLIC_READ, headers: Map[String, String] = Map.empty)(implicit executionContext: ExecutionContext): Future[Unit]

    Allows you to copy a file within this bucket.

    Allows you to copy a file within this bucket.

    Note that copying a file removes the server-side-encryption, storage-class, and website-redirect-location metadata.

    sourceItemName

    The source name of the item

    destinationItemName

    The destination name of the item

    acl

    The ACL for the new item, default is PUBLIC_READ

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def completeMultipartUpload(uploadTicket: BucketFileUploadTicket, partUploadTickets: Seq[BucketFilePartUploadTicket])(implicit executionContext: ExecutionContext): Future[Unit]

    Completes a multipart upload

    Completes a multipart upload

    uploadTicket

    The ticket acquired from initiateMultipartUpload

    partUploadTickets

    The tickets acquired from uploadPart

  12. val delimiter: Option[String]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  15. def get(itemName: String)(implicit executionContext: ExecutionContext): Future[BucketFile]

    Retrieves a single item with the given name

    Retrieves a single item with the given name

    itemName

    The name of the item you want to retrieve

  16. def getAcl(itemName: String)(implicit executionContext: ExecutionContext): Future[ACLList]

    Retrieves the ACL

    Retrieves the ACL

    itemName

    The name of the file that you want to retrieve the ACL for

  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getHeadersOf(itemName: String)(implicit executionContext: ExecutionContext): Future[Map[String, Seq[String]]]

    Retrieves the headers of a single item.

    Retrieves the headers of a single item.

    itemName

    The name of the item you want to receive the headers from

  19. def initiateMultipartUpload(bucketFile: BucketFile)(implicit executionContext: ExecutionContext): Future[BucketFileUploadTicket]

    Initiates a multipart upload

    Initiates a multipart upload

    bucketFile

    A representation of the file

    returns

    The upload id

  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def list(prefix: String)(implicit executionContext: ExecutionContext): Future[Iterable[BucketItem]]

    Lists the contents of a 'directory' in the bucket

  22. def list(implicit executionContext: ExecutionContext): Future[Iterable[BucketItem]]

    Lists the contents of the bucket

  23. val name: String
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. def remove(itemName: String)(implicit executionContext: ExecutionContext): Future[Unit]

    Removes a file from this bucket

    Removes a file from this bucket

    itemName

    The name of the file that needs to be removed

  29. def rename(sourceItemName: String, destinationItemName: String, acl: ACL = PUBLIC_READ, headers: Map[String, String] = Map.empty)(implicit executionContext: ExecutionContext): Future[Unit]

    Allows you to rename a file within this bucket.

    Allows you to rename a file within this bucket. It will actually do a copy and a remove.

    Note that renaming a file removes the server-side-encryption, storage-class, and website-redirect-location metadata.

    sourceItemName

    The old name of the item

    destinationItemName

    The new name of the item

    acl

    The ACL for the new item, default is PUBLIC_READ

  30. val s3: S3
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def updateAcl(itemName: String, acl: ACL)(implicit executionContext: ExecutionContext): Future[Unit]

    Updates the ACL of given item

    Updates the ACL of given item

    itemName

    The name of file that needs to be updated

    acl

    The ACL

  33. def uploadPart(uploadTicket: BucketFileUploadTicket, bucketFilePart: BucketFilePart)(implicit executionContext: ExecutionContext): Future[BucketFilePartUploadTicket]

    Uploads a part in the multipart upload

    Uploads a part in the multipart upload

    uploadTicket

    The ticket acquired from initiateMultipartUpload

    bucketFilePart

    The part that you want to upload

  34. def uploadPolicy(expiration: Date): PolicyBuilder

    Utility method to create a policy builder for this bucket

    Utility method to create a policy builder for this bucket

    expiration

    The date this policy expires

  35. def url(itemName: String, method: String = "GET"): String

    Creates an unsigned url for the given item name

    Creates an unsigned url for the given item name

    itemName

    The item for which the url should be created

  36. def url(itemName: String, expires: Int, method: String): String

    Creates an authenticated url for an item with the given name and method

    Creates an authenticated url for an item with the given name and method

    itemName

    The item for which the url should be created

    expires

    The expiration in seconds from now

  37. def url(itemName: String, expires: Int): String

    Creates an authenticated url for an item with the given name

    Creates an authenticated url for an item with the given name

    itemName

    The item for which the url should be created

    expires

    The expiration in seconds from now

  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. def withDelimiter(delimiter: Option[String]): Bucket

    Creates a new instance of the Bucket with another delimiter

  42. def withDelimiter(delimiter: String): Bucket

    Creates a new instance of the Bucket with another delimiter

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped