backup

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

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