StubPlayObjectStoreClient
uk.gov.hmrc.objectstore.client.play.test.stub.StubPlayObjectStoreClient
class StubPlayObjectStoreClient(val config: ObjectStoreClientConfig)(implicit m: Materializer, ec: ExecutionContext) extends PlayObjectStoreClient, StubObjectStoreClient[Future]
Attributes
- Graph
-
- Supertypes
-
trait StubObjectStoreClient[Future]class PlayObjectStoreClientclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Inherited methods
Attributes
- Definition Classes
- Inherited from:
- StubObjectStoreClient
Attributes
- Definition Classes
- Inherited from:
- StubObjectStoreClient
override def listObjects(path: Directory, owner: String)(implicit hc: HeaderCarrier): Future[ObjectListing]
Attributes
- Definition Classes
- Inherited from:
- StubObjectStoreClient
Attributes
- Definition Classes
- Inherited from:
- StubObjectStoreClient
def uploadFromUrl(from: URL, to: File, retentionPeriod: RetentionPeriod, contentType: Option[String], contentMd5: Option[Md5Hash], owner: String)(implicit hc: HeaderCarrier): Future[ObjectSummaryWithMd5]
Upload object from a url
Upload object from a url
Value parameters
- contentMd5
-
Optional MD5 hash of content
- contentType
-
Optional Content-Type
- from
-
Path of the object in object-store under owner
- owner
-
Owner service of this object
- retentionPeriod
-
Retention period of the object in object-store
- to
-
Url of content to upload
Attributes
- Returns
-
ObjectSummaryWithMd5 wrapped in the effect F
- Note
-
Storing an object on an existing path will overwrite the previously stored object on that path.
- Inherited from:
- ObjectStoreClient
def zip(from: Directory, to: File, retentionPeriod: RetentionPeriod, fromOwner: String, toOwner: String)(implicit hc: HeaderCarrier): Future[ObjectSummaryWithMd5]
Zip objects in a directory
Zip objects in a directory
Value parameters
- from
-
Path of the directory to be zipped
- fromOwner
-
Owner service of the directory to be zipped
- retentionPeriod
-
Retention period of the object in object-store
- to
-
Path of the target zip file
- toOwner
-
Owner service of the target zip file
Attributes
- Returns
-
ObjectSummaryWithMd5 wrapped in the effect F
- Inherited from:
- ObjectStoreClient
Concrete fields
In this article