Interface GCPRawStorage
-
- All Known Subinterfaces:
GCPStorage
- All Known Implementing Classes:
GCPRawStorageImpl,GCPStorageImpl,LocalStorage
public interface GCPRawStorageCreate 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CopyInterfacecopy(com.google.cloud.storage.Storage.CopyRequest copyRequest)booleandelete(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)com.google.cloud.storage.Bucketget(java.lang.String bucket, com.google.cloud.storage.Storage.BucketGetOption... options)GCPBlobget(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobGetOption... options)com.google.api.gax.paging.Page<GCPBlob>list(java.lang.String bucket, com.google.cloud.storage.Storage.BlobListOption... options)byte[]readAllBytes(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)java.nio.channels.ReadableByteChannelreader(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)java.nio.channels.WritableByteChannelwriter(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options)
-
-
-
Method Detail
-
get
com.google.cloud.storage.Bucket get(java.lang.String bucket, com.google.cloud.storage.Storage.BucketGetOption... options)
-
get
GCPBlob get(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobGetOption... options)
-
list
com.google.api.gax.paging.Page<GCPBlob> list(java.lang.String bucket, com.google.cloud.storage.Storage.BlobListOption... options)
-
delete
boolean delete(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
-
readAllBytes
byte[] readAllBytes(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
-
reader
java.nio.channels.ReadableByteChannel reader(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
-
writer
java.nio.channels.WritableByteChannel writer(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options)
-
copy
CopyInterface copy(com.google.cloud.storage.Storage.CopyRequest copyRequest)
-
-