Documentation
¶
Index ¶
- type BlobStoreGCS
- func (d *BlobStoreGCS) Bucket() *storage.BucketHandle
- func (d *BlobStoreGCS) Client() *storage.Client
- func (d *BlobStoreGCS) Close() error
- func (b *BlobStoreGCS) GetCommitTimestamp(ctx context.Context) (int64, error)
- func (b *BlobStoreGCS) SetCommitTimestamp(ctx context.Context, timestamp int64) error
- type GcsLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobStoreGCS ¶
type BlobStoreGCS struct {
// contains filtered or unexported fields
}
BlobStoreGCS stores data in a Google Cloud Storage bucket.
func New ¶
func New( dataDir string, logger *slog.Logger, promRegistry prometheus.Registerer, ) (*BlobStoreGCS, error)
New creates a new GCS-backed blob store.
func (*BlobStoreGCS) Bucket ¶
func (d *BlobStoreGCS) Bucket() *storage.BucketHandle
Returns the bucket handle.
func (*BlobStoreGCS) Client ¶
func (d *BlobStoreGCS) Client() *storage.Client
Returns the GCS client.
func (*BlobStoreGCS) GetCommitTimestamp ¶
func (b *BlobStoreGCS) GetCommitTimestamp(ctx context.Context) (int64, error)
func (*BlobStoreGCS) SetCommitTimestamp ¶
func (b *BlobStoreGCS) SetCommitTimestamp(ctx context.Context, timestamp int64) error
type GcsLogger ¶
type GcsLogger struct {
// contains filtered or unexported fields
}
GcsLogger is a wrapper type to give our logger a consistent interface
func NewGcsLogger ¶
Click to show internal directories.
Click to hide internal directories.