Versions in this module Expand all Collapse all v0 v0.1.0 Aug 28, 2026 Changes in this version + var ErrNotFound = errors.New("gcs object not found") + var ErrSignedURLUnsupported = errors.New("signed gcs URLs not supported by current credentials") + type Bucket struct + func OpenBucket(ctx context.Context, urlStr string) (*Bucket, error) + func (g *Bucket) Delete(ctx context.Context, path string) error + func (g *Bucket) Exists(ctx context.Context, path string) (bool, error) + func (g *Bucket) ListPrefix(ctx context.Context, prefix string) ([]ObjectInfo, error) + func (g *Bucket) Open(ctx context.Context, path string) (io.ReadCloser, error) + func (g *Bucket) SignedURL(ctx context.Context, path string, expiry time.Duration) (string, error) + func (g *Bucket) Size(ctx context.Context, path string) (int64, error) + func (g *Bucket) UsedSpace(ctx context.Context) (int64, error) + func (g *Bucket) Write(ctx context.Context, path string, r io.Reader) (int64, error) + type ObjectInfo struct + ModTime time.Time + Name string + Size int64