Interface GCPRawStorage
- All Known Subinterfaces:
GCPStorage
- All Known Implementing Classes:
GCPRawStorageImpl,GCPStorageImpl,LocalStorage
public interface GCPRawStorage
Create as you need GCPRawStorage methods - create in
GCPRawStorage, GCPStorage, GCPRawStorageImpl, LocalStorage for each
method as we go.
With the switch to the underlying google.Storage interface that is mockable, the implementation
of GCPStorage here is ONE TO ONE since we cannot test ANY code behind this interface as we
swap it out with a mock object to test our systems.
THIS IS WHAT YOU SHOULD MOCK!!! It is the lowest level AND 1 to 1 to Google Storage so
we do not have to test anything as Google will test it for us.
-
Method Summary
Modifier and TypeMethodDescriptioncopy(com.google.cloud.storage.Storage.CopyRequest copyRequest) booleancom.google.cloud.storage.Bucketcom.google.api.gax.paging.Page<GCPBlob>byte[]readAllBytes(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options) writer(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options)
-
Method Details
-
get
com.google.cloud.storage.Bucket get(String bucket, com.google.cloud.storage.Storage.BucketGetOption... options) -
get
-
list
-
delete
-
readAllBytes
-
reader
ReadableByteChannel reader(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options) -
writer
WritableByteChannel writer(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options) -
copy
-