Documentation
¶
Overview ¶
Package gcp contains a GCP-based storage implementation for Tessera.
TODO: decide whether to rename this package.
This storage implementation uses GCS for long-term storage and serving of entry bundles and log tiles, and Spanner for coordinating updates to GCS when multiple instances of a personality binary are running.
A single GCS bucket is used to hold entry bundles and log internal tiles. The object keys for the bucket are selected so as to conform to the expected layout of a tile-based log.
A Spanner database provides a transactional mechanism to allow multiple frontends to safely update the contents of the log.
Index ¶
Constants ¶
const ( DefaultPushbackMaxOutstanding = 4096 DefaultIntegrationSizeLimit = 5 * 4096 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // ProjectID is the GCP project which hosts the storage bucket and Spanner database for the log. ProjectID string // Bucket is the name of the GCS bucket to use for storing log state. Bucket string // Spanner is the GCP resource URI of the spanner database instance to use. Spanner string }
Config holds GCP project and resource configuration for a storage instance.