Documentation ¶
Overview ¶
Package cleanup implements the API handlers for running data deletion jobs.
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 SecretManager secrets.Config Storage storage.Config ObservabilityExporter observability.Config Port string `env:"PORT, default=8080"` Timeout time.Duration `env:"CLEANUP_TIMEOUT, default=10m"` TTL time.Duration `env:"CLEANUP_TTL, default=336h"` DebugOverrideCleanupMinDuration bool `env:"DEBUG_OVERRIDE_CLEANUP_MIN_DURATION, default=false"` }
Config represents the configuration and associated environment variables for the cleanup components.
func (*Config) BlobstoreConfig ¶
func (*Config) DatabaseConfig ¶
func (*Config) ObservabilityExporterConfig ¶
func (c *Config) ObservabilityExporterConfig() *observability.Config
func (*Config) SecretManagerConfig ¶
type ExportServer ¶ added in v0.25.0
type ExportServer struct {
// contains filtered or unexported fields
}
func NewExportServer ¶ added in v0.25.0
func NewExportServer(cfg *Config, env *serverenv.ServerEnv) (*ExportServer, error)
NewExportServer creates a server that manages deletion of old export files that are no longer needed by clients for download.
type ExposureServer ¶ added in v0.25.0
type ExposureServer struct {
// contains filtered or unexported fields
}
func NewExposureServer ¶ added in v0.25.0
func NewExposureServer(cfg *Config, env *serverenv.ServerEnv) (*ExposureServer, error)
NewExposureServer creates a http.Handler for deleting exposure keys from the database.
Click to show internal directories.
Click to hide internal directories.