Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EventFinalize is the GCS notification event type for object finalization (creation or update) EventFinalize string = "OBJECT_FINALIZE" // EventDelete is the GCS notification event type for object deletion EventDelete string = "OBJECT_DELETE" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage interface { ReaderForObject(ctx context.Context, bucketID string, objectID string) (io.ReadCloser, error) WriterForObject(ctx context.Context, bucketID string, objectID string) (io.WriteCloser, error) DeleteObject(ctx context.Context, bucketID string, objectID string) error }
Storage interface to deal with Google Cloud Storage. This interface is here to allow for testing to substitute something different.
Click to show internal directories.
Click to hide internal directories.