Documentation
¶
Index ¶
- Constants
- func App(logger *log.Logger, conf *config.Config) (http.Handler, func(), error)
- func GetStorage(storageType string, storageConfig *config.Storage, timeout time.Duration, ...) (storage.Backend, error)
- func RunVerify(conf *config.Config, purge bool, out io.Writer) error
- func ValidateVerifyFlags(verifyStorage, purge bool) error
Constants ¶
const Service = "proxy"
Service is the name of the service that we want to tag our processes with.
Variables ¶
This section is empty.
Functions ¶
func App ¶
App is where all routes and middleware for the proxy should be defined. This is the nerve center of your application.
App returns the HTTP handler, a cleanup function that should be called when the server is shutting down (to flush and stop exporters), and an error.
func GetStorage ¶
func GetStorage(storageType string, storageConfig *config.Storage, timeout time.Duration, client *http.Client) (storage.Backend, error)
GetStorage returns storage backend based on env configuration.
func RunVerify ¶ added in v0.19.0
RunVerify builds the configured storage backend and sweeps it for zips that disagree with the checksum database, writing a report to out. When purge is true, mismatches are deleted. It does not start the server.
func ValidateVerifyFlags ¶ added in v0.19.0
ValidateVerifyFlags enforces that -purge is only meaningful together with -verify-storage. -purge is not a general purge; it only acts on the mismatch set produced by the verify pass.
Types ¶
This section is empty.