Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ObjectNotFoundError = errors.New("Object not found")
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object interface { NewReader() (io.ReadCloser, error) NewWriter() io.WriteCloser Version() (Version, error) }
public only because []Object != []ObjectImpl :(
type StorageClient ¶
type StorageClient interface { Download(filePath string) (Version, error) Upload(filePath string) (Version, error) Version() (Version, error) GetAllNewerVersions(watermark Version) ([]Version, error) DeleteBucket() error // test cleanup only }
func NewStorageClient ¶
func NewStorageClient(gcpServiceAccountKey, objectName, bucketName string) (StorageClient, error)
Click to show internal directories.
Click to hide internal directories.