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