backup

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 24 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidBackupName = errors.New("invalid backup name")

ErrInvalidBackupName is returned by ValidateBackupName for any input that is not a valid RFC 1123 subdomain.

Functions

func ValidateBackupName added in v1.2.0

func ValidateBackupName(backupName string) error

ValidateBackupName rejects values that could traverse outside of the backup log directory when joined into a file path. backupName is taken from the HTTP request URL, so untrusted input reaches filepath.Join.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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