Documentation ¶
Overview ¶
Package backup implements periodic backups.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database database.Config ObservabilityExporter observability.Config SecretManager secrets.Config Port string `env:"PORT, default=8080"` // MinTTL is the minimum amount of time that must elapse between attempting // backups. This is used to control whether the pull is actually attempted at // the controller layer, independent of the data layer. In effect, it rate // limits the number of requests. MinTTL time.Duration `env:"BACKUP_MIN_PERIOD, default=5m"` // Timeout is the maximum amount of time to wait for a backup operation to // complete. Timeout time.Duration `env:"BACKUP_TIMEOUT, default=10m"` // Bucket is the name of the Cloud Storage bucket where backups should be // stored. Bucket string `env:"BACKUP_BUCKET, required"` // DatabaseInstanceURL is the full self-link of the URL to the SQL instance. DatabaseInstanceURL string `env:"BACKUP_DATABASE_INSTANCE_URL, required"` // DatabaseName is the name of the database to backup. DatabaseName string `env:"BACKUP_DATABASE_NAME, required"` }
Config represents the configuration and associated environment variables for the cleanup components.
func (*Config) DatabaseConfig ¶
func (*Config) ObservabilityExporterConfig ¶
func (c *Config) ObservabilityExporterConfig() *observability.Config
func (*Config) SecretManagerConfig ¶
Click to show internal directories.
Click to hide internal directories.