Documentation ¶
Overview ¶
Package gcs implements a blob store on Google Cloud Storage.
Index ¶
- type Store
- func (s *Store) AnchorMapRef(ctx context.Context) (bs.Ref, error)
- func (s *Store) Get(ctx context.Context, ref bs.Ref) (bs.Blob, error)
- func (s *Store) ListRefs(ctx context.Context, start bs.Ref, f func(bs.Ref) error) error
- func (s *Store) Put(ctx context.Context, b bs.Blob) (bs.Ref, bool, error)
- func (s *Store) UpdateAnchorMap(ctx context.Context, f anchor.UpdateFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a Google Cloud Storage-based implementation of a blob store. All blobs and other information are stored in a single GCS bucket.
A blob with ref R is stored in a bucket object named b:hex(R) (where hex(R) denotes the hexadecimal encoding of R).
The anchor map ref is stored in a bucket object named anchormapref.
func (*Store) AnchorMapRef ¶
AnchorMapRef implements anchor.Getter.
func (*Store) UpdateAnchorMap ¶
UpdateAnchorMap implements anchor.Store.
Click to show internal directories.
Click to hide internal directories.