Documentation ¶
Index ¶
- type Connection
- type GoogleCloudStorageConnection
- func (conn GoogleCloudStorageConnection) CachedGet(name string) (string, error)
- func (conn GoogleCloudStorageConnection) Get(name string) (string, error)
- func (c GoogleCloudStorageConnection) GetCacheDirectory() string
- func (conn GoogleCloudStorageConnection) ListObjectsAsAll(prefix string) ([]Object, error)
- func (conn GoogleCloudStorageConnection) ListObjectsAsFolders(prefix string) ([]Object, error)
- func (c GoogleCloudStorageConnection) String() string
- type GoogleCloudStorageObject
- type Object
- type S3Connection
- func (conn S3Connection) CachedGet(key string) (string, error)
- func (conn S3Connection) Get(key string) (string, error)
- func (c S3Connection) GetCacheDirectory() string
- func (conn S3Connection) ListObjectsAsAll(prefix string) ([]Object, error)
- func (conn S3Connection) ListObjectsAsFolders(prefix string) ([]Object, error)
- func (c S3Connection) String() string
- type S3Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type GoogleCloudStorageConnection ¶
type GoogleCloudStorageConnection struct { Context context.Context BucketName string CacheDirectory string }
func (GoogleCloudStorageConnection) CachedGet ¶
func (conn GoogleCloudStorageConnection) CachedGet(name string) (string, error)
func (GoogleCloudStorageConnection) Get ¶
func (conn GoogleCloudStorageConnection) Get(name string) (string, error)
func (GoogleCloudStorageConnection) GetCacheDirectory ¶
func (c GoogleCloudStorageConnection) GetCacheDirectory() string
func (GoogleCloudStorageConnection) ListObjectsAsAll ¶
func (conn GoogleCloudStorageConnection) ListObjectsAsAll(prefix string) ([]Object, error)
func (GoogleCloudStorageConnection) ListObjectsAsFolders ¶
func (conn GoogleCloudStorageConnection) ListObjectsAsFolders(prefix string) ([]Object, error)
func (GoogleCloudStorageConnection) String ¶
func (c GoogleCloudStorageConnection) String() string
type GoogleCloudStorageObject ¶
type GoogleCloudStorageObject struct {
Name string
}
func (GoogleCloudStorageObject) GetPath ¶
func (o GoogleCloudStorageObject) GetPath() string
func (GoogleCloudStorageObject) String ¶
func (o GoogleCloudStorageObject) String() string
type S3Connection ¶
type S3Connection struct { Connection *s3.S3 BucketName string CacheDirectory string Downloader *s3manager.Downloader }
func NewS3Connection ¶
func NewS3Connection(connection *s3.S3, cacheDirectory string, s3BucketName string, options *s3manager.DownloadOptions) S3Connection
func (S3Connection) GetCacheDirectory ¶
func (c S3Connection) GetCacheDirectory() string
func (S3Connection) ListObjectsAsAll ¶
func (conn S3Connection) ListObjectsAsAll(prefix string) ([]Object, error)
func (S3Connection) ListObjectsAsFolders ¶
func (conn S3Connection) ListObjectsAsFolders(prefix string) ([]Object, error)
func (S3Connection) String ¶
func (c S3Connection) String() string
Click to show internal directories.
Click to hide internal directories.