Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketHandle ¶
type BucketHandle struct {
stiface.BucketHandle
}
BucketHandle adds functionality to stiface.BucketHandle
func GetBucket ¶
func GetBucket(ctx context.Context, sClient stiface.Client, bucketName string) (*BucketHandle, error)
GetBucket gets an enhanced BucketHandle
func (*BucketHandle) GetFilesSince ¶
func (bh *BucketHandle) GetFilesSince(ctx context.Context, prefix string, filter *regexp.Regexp, after time.Time) ([]*storage.ObjectAttrs, int64, error)
GetFilesSince returns list of all normal file objects with prefix and mTime > after. prefix is the path not including gs://bucket-name/, including the final / Will retry iterator errors up to five total. returns (objects, byteCount, error) Performance: This takes about 5000 objects/second, including objects rejected by the regex and time cutoff.
Click to show internal directories.
Click to hide internal directories.