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 Type
    Method
    Description
    copy(com.google.cloud.storage.Storage.CopyRequest copyRequest)
     
    boolean
    delete(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
     
    com.google.cloud.storage.Bucket
    get(String bucket, com.google.cloud.storage.Storage.BucketGetOption... options)
     
    get(String bucket, String blob, com.google.cloud.storage.Storage.BlobGetOption... options)
     
    com.google.api.gax.paging.Page<GCPBlob>
    list(String bucket, com.google.cloud.storage.Storage.BlobListOption... options)
     
    byte[]
    readAllBytes(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
     
    reader(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

      GCPBlob get(String bucket, String blob, com.google.cloud.storage.Storage.BlobGetOption... options)
    • list

      com.google.api.gax.paging.Page<GCPBlob> list(String bucket, com.google.cloud.storage.Storage.BlobListOption... options)
    • delete

      boolean delete(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
    • readAllBytes

      byte[] readAllBytes(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
    • 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

      CopyInterface copy(com.google.cloud.storage.Storage.CopyRequest copyRequest)