Documentation ¶
Index ¶
- Constants
- func ParseProxyObj(c *gin.Context, path string) *audit.ProxyObject
- func RoundTripOf(cli agents.Client) http.RoundTripper
- func Transport(local, proxy *websocket.Conn, c *gin.Context, user models.CommonUserIface, ...)
- type Msg
- type ProxyHandler
- type ProxyObject
- type RoundTripperFunc
- type WebSocketProxy
Constants ¶
View Source
const ( AgentModeApiServer = "apiServerProxy" AgentModeAHTTP = "http" AgentModeHTTPS = "https" )
Variables ¶
This section is empty.
Functions ¶
func ParseProxyObj ¶
func ParseProxyObj(c *gin.Context, path string) *audit.ProxyObject
Types ¶
type ProxyHandler ¶
type ProxyHandler struct {
base.BaseHandler
}
func (*ProxyHandler) ProxyHTTP ¶
func (h *ProxyHandler) ProxyHTTP(c *gin.Context)
func (*ProxyHandler) ProxyService ¶
func (h *ProxyHandler) ProxyService(c *gin.Context)
func (*ProxyHandler) ProxyWebsocket ¶
func (h *ProxyHandler) ProxyWebsocket(c *gin.Context)
func (*ProxyHandler) ReverseProxyOn ¶
func (h *ProxyHandler) ReverseProxyOn(cli agents.Client) *httputil.ReverseProxy
type ProxyObject ¶
type ProxyObject struct { NamespacedScoped bool Cluster string Namespace string Name string Group string Version string Resource string Action string }
func (*ProxyObject) InNamespace ¶
func (p *ProxyObject) InNamespace() bool
type RoundTripperFunc ¶
Click to show internal directories.
Click to hide internal directories.