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 ¶
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
Click to show internal directories.
Click to hide internal directories.