Versions in this module Expand all Collapse all v0 v0.8.2 Jul 8, 2022 v0.8.1 Jun 30, 2022 Changes in this version + type Config struct + Bucket string + CredentialsFilePath string + RootDirectory string + Workers int + type GcsBucket struct + Client *storage.Client + func NewGcsDatastore(conf Config) (*GcsBucket, error) + func (s *GcsBucket) Batch(_ context.Context) (ds.Batch, error) + func (s *GcsBucket) Close() error + func (s *GcsBucket) Delete(ctx context.Context, k ds.Key) error + func (s *GcsBucket) Get(ctx context.Context, k ds.Key) ([]byte, error) + func (s *GcsBucket) GetSize(ctx context.Context, k ds.Key) (size int, err error) + func (s *GcsBucket) Has(ctx context.Context, k ds.Key) (exists bool, err error) + func (s *GcsBucket) Put(ctx context.Context, k ds.Key, value []byte) error + func (s *GcsBucket) Query(ctx context.Context, q dsq.Query) (dsq.Results, error) + func (s *GcsBucket) Sync(ctx context.Context, prefix ds.Key) error