reverseproxy

package
v0.0.0-...-c1a7918 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteContainerProxy

func DeleteContainerProxy(ctName string)

DeleteContainerProxy() removes proxy from map. Should be called when destroying the container

func HandleReverseProxy

func HandleReverseProxy(w http.ResponseWriter, r *http.Request)

HandleReverseProxy() gets the proxy from the map and serves it

func HandleUnauthorized

func HandleUnauthorized(w http.ResponseWriter, r *http.Request)

HandleUnauthorized() returns an unauthorized HTTP error (Used to e.g. block file explorer)

func NewContainerProxy

func NewContainerProxy(ctName string, url string) error

NewContainerProxy is a wrapper around newProxy that fetches the required info about the container, creates a proxy and stores the pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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