Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrSet ¶
type AttrSet struct {
// contains filtered or unexported fields
}
AttrSet used to set optional GCS object attributes in upload, write, and update operations
func (AttrSet) CacheControl ¶
CacheControl sets the Cache-Control attribute of an object
func (AttrSet) GetCacheControl ¶
GetCacheControl returns the configured Cache-Control object for this AttrSet. (nil if not set)
type AttrSetter ¶
AttrSetter used to set optional GCS object attributes in upload, write, and update operations
type Attrs ¶
type Attrs interface { Attrs() *storage.ObjectAttrs SyncOperation }
Attrs reads the attributes of an object in a GCS bucket
type Exists ¶
type Exists interface { Exists() bool SyncOperation }
type Read ¶
type Read interface { Content() []byte SyncOperation }
Read reads the content of an object in a GCS bucket
type SyncOperation ¶ added in v1.0.8
type SyncOperation interface { // Handler performs the call, given object and logger references Handler(object Object, logger zerolog.Logger) error // Kind returns the a description of the kind of this operation (eg. "delete", "upload") Kind() string }
SyncOperation is an interface for synchronous operations on GCS bucket objects
type Update ¶
type Update interface { SyncOperation }
Update updates attributes of an object in a GCS bucket
type Upload ¶
type Upload interface { SyncOperation }
Click to show internal directories.
Click to hide internal directories.