Documentation
¶
Overview ¶
Package storagex extends cloud.google.com/go/storage.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct { *storage.BucketHandle // contains filtered or unexported fields }
Bucket extends storage.BucketHandle operations.
func (*Bucket) Dirs ¶ added in v0.1.21
Dirs returns a slice of strings naming directories found at Prefix. Note: the root starts at "" (empty string) not "/".
type Object ¶
type Object struct { *storage.ObjectHandle *storage.ObjectAttrs // contains filtered or unexported fields }
Object extends the storage.ObjectHandle operations on GCS Objects. Objects are generated during a Bucket.Walk.
func (*Object) LocalName ¶
LocalName returns a path suitable for creating a local file. The local name may include path components because it is derived from the original GCS Object name with the original Walk pathPrefix removed. If the pathPrefix equals the GCS Object name (such as when pathPrefix is a single object), then the Object base name is returned.