actions

package
v0.19.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 53 Imported by: 2

Documentation

Index

Constants

View Source
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

func App(logger *log.Logger, conf *config.Config) (http.Handler, func(), error)

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

func RunVerify(conf *config.Config, purge bool, out io.Writer) error

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

func ValidateVerifyFlags(verifyStorage, purge bool) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL