Packages

c

uk.gov.hmrc.objectstore.client.play.test.stub

StubPlayObjectStoreClientEither

class StubPlayObjectStoreClientEither extends PlayObjectStoreClientEither with StubObjectStoreClient[FutureEither]

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StubPlayObjectStoreClientEither
  2. StubObjectStoreClient
  3. PlayObjectStoreClientEither
  4. ObjectStoreClient
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new StubPlayObjectStoreClientEither(config: ObjectStoreClientConfig)(implicit m: Materializer, ec: ExecutionContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val M: PlayMonad[FutureEither]
    Attributes
    protected
    Definition Classes
    StubPlayObjectStoreClientEitherStubObjectStoreClient
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. val config: ObjectStoreClientConfig
  8. def deleteObject(path: File, owner: String = config.owner)(implicit hc: HeaderCarrier): FutureEither[Unit]
    Definition Classes
    StubObjectStoreClient
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getObject[CONTENT](path: File, owner: String = config.owner)(implicit cr: ObjectStoreContentRead[FutureEither, ResBody, CONTENT], hc: HeaderCarrier): FutureEither[Option[Object[CONTENT]]]
    Definition Classes
    StubObjectStoreClient
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def listObjects(path: Directory, owner: String = config.owner)(implicit hc: HeaderCarrier): FutureEither[ObjectListing]
    Definition Classes
    StubObjectStoreClient
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. def presignedDownloadUrl(path: File, owner: String = config.owner)(implicit hc: HeaderCarrier): FutureEither[PresignedDownloadUrl]

    Get a presigned download URL for an object

    Get a presigned download URL for an object

    path

    Path of the object in object-store under owner

    owner

    Owner service of this object

    returns

    PresignedDownloadUrl wrapped in the effect F

    Definition Classes
    ObjectStoreClient
    Note

    The downloadUrl has an expiration of 15 minutes.

  20. def putObject[CONTENT](path: File, content: CONTENT, retentionPeriod: RetentionPeriod = config.defaultRetentionPeriod, contentType: Option[String] = None, contentMd5: Option[Md5Hash] = None, owner: String = config.owner)(implicit w: ObjectStoreContentWrite[FutureEither, CONTENT, Request], hc: HeaderCarrier): FutureEither[ObjectSummaryWithMd5]
    Definition Classes
    StubObjectStoreClient
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def uploadFromUrl(from: URL, to: File, retentionPeriod: RetentionPeriod = config.defaultRetentionPeriod, contentType: Option[String] = None, contentMd5: Option[Md5Hash] = None, contentSha256: Option[Sha256Checksum] = None, owner: String = config.owner)(implicit hc: HeaderCarrier): FutureEither[ObjectSummaryWithMd5]

    Upload object from a url

    Upload object from a url

    from

    Path of the object in object-store under owner

    to

    Url of content to upload

    retentionPeriod

    Retention period of the object in object-store

    contentType

    Optional Content-Type

    contentMd5

    Optional Base64 encoded MD5 hash of content

    contentSha256

    Optional Base64 encoded SHA-256 checksum of content

    owner

    Owner service of this object

    returns

    ObjectSummaryWithMd5 wrapped in the effect F

    Definition Classes
    ObjectStoreClient
    Note

    Storing an object on an existing path will overwrite the previously stored object on that path.

  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  27. val wsClient: AhcWSClient
    Attributes
    protected
    Definition Classes
    StubPlayObjectStoreClientEitherStubObjectStoreClient
  28. def zip(from: Directory, to: File, retentionPeriod: RetentionPeriod = config.defaultRetentionPeriod, fromOwner: String = config.owner, toOwner: String = config.owner)(implicit hc: HeaderCarrier): FutureEither[ObjectSummaryWithMd5]

    Zip objects in a directory

    Zip objects in a directory

    from

    Path of the directory to be zipped

    to

    Path of the target zip file

    retentionPeriod

    Retention period of the object in object-store

    fromOwner

    Owner service of the directory to be zipped

    toOwner

    Owner service of the target zip file

    returns

    ObjectSummaryWithMd5 wrapped in the effect F

    Definition Classes
    ObjectStoreClient

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped