Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider describes the GCS provider.
func NewCloudStorageProvider ¶
NewCloudStorageProvider creates a new GCS provider.
func (Provider) CollectionRef ¶
CollectionRef returns an reference to a storage collection/bucket.
func (Provider) DownloadFile ¶
DownloadFile gets the file from the storage provider.
func (Provider) UploadFile ¶
UploadFile puts the given file to the storage provider.
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage describes a new GCS client storage object.
func (*Storage) GetReadCloser ¶
func (s *Storage) GetReadCloser(bucket, ref string) (io.ReadCloser, error)
GetReadCloser gets a new io.ReadCloser for the storage client.
func (*Storage) GetWriteCloser ¶
func (s *Storage) GetWriteCloser(bucket, ref string) (io.WriteCloser, error)
GetWriteCloser gets a new io.WriteCloser for the storage client.
type StorageClient ¶
type StorageClient interface { GetWriteCloser(bucket, ref string) (io.WriteCloser, error) GetReadCloser(bucket, ref string) (io.ReadCloser, error) }
StorageClient interface describes a new storage client.
func GSCClient ¶
func GSCClient(ctx context.Context) StorageClient
GSCClient returns a new StorageClient.
Click to show internal directories.
Click to hide internal directories.