Documentation
¶
Overview ¶
Package storage wraps GCS bucket / object enumeration for cloudlist and bucket-check.
Index ¶
- type Driver
- func (d *Driver) AuditBucketACL(ctx context.Context, container string) ([]schema.BucketACLEntry, error)
- func (d *Driver) ExposeBucket(ctx context.Context, container, level string) (string, error)
- func (d *Driver) GetBuckets(ctx context.Context) ([]schema.Storage, error)
- func (d *Driver) ListObjects(ctx context.Context, infos map[string]string) ([]schema.BucketResult, error)
- func (d *Driver) UnexposeBucket(ctx context.Context, container string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
func (*Driver) AuditBucketACL ¶
func (d *Driver) AuditBucketACL(ctx context.Context, container string) ([]schema.BucketACLEntry, error)
AuditBucketACL returns the public-access posture of each bucket.
func (*Driver) ExposeBucket ¶
ExposeBucket grants `allUsers:objectViewer` on the bucket — the GCS equivalent of "public-read".
func (*Driver) GetBuckets ¶
GetBuckets lists GCS buckets across the configured projects.
func (*Driver) ListObjects ¶
func (d *Driver) ListObjects(ctx context.Context, infos map[string]string) ([]schema.BucketResult, error)
ListObjects walks objects in `infos` (bucket → "" since GCS is global).
Click to show internal directories.
Click to hide internal directories.