proxy

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PBSProxy

type PBSProxy struct {
	DB           *db.DB
	TokenManager *auth.TokenManager
	// contains filtered or unexported fields
}

PBSProxy handles authenticated, scoped reverse proxying of backup chunk streams to Proxmox Backup Server

func NewPBSProxy

func NewPBSProxy(database *db.DB, tm *auth.TokenManager) *PBSProxy

NewPBSProxy creates a new PBSProxy instance

func (*PBSProxy) HandleProxyRequest

func (p *PBSProxy) HandleProxyRequest(w http.ResponseWriter, r *http.Request)

HandleProxyRequest validates the short-lived backup ticket and forwards the request to PBS

func (*PBSProxy) RegisterRoutes

func (p *PBSProxy) RegisterRoutes(r chi.Router)

RegisterRoutes mounts the PBS proxy routes onto Chi router

func (*PBSProxy) SetTarget

func (p *PBSProxy) SetTarget(target *db.BackupTarget)

SetTarget caches a backup target in memory

Jump to

Keyboard shortcuts

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