Documentation ¶
Index ¶
- Constants
- Variables
- func AppendError(err error, errs ...error) error
- func ValidateAnnotations(annotations map[string]string) error
- func ValidateAnnotationsSize(annotations map[string]string) error
- func ValidateClientPluginOptions(c v1.ClientPluginOptions) error
- func ValidatePort(port int, fieldPath string) error
- func ValidateProxyConfigurerForClient(c v1.ProxyConfigurer) error
- func ValidateProxyConfigurerForServer(c v1.ProxyConfigurer, s *v1.ServerConfig) error
- func ValidateVisitorConfigurer(c v1.VisitorConfigurer) error
- type Warning
Constants ¶
View Source
const TotalAnnotationSizeLimitB int = 256 * (1 << 10) // 256 kB
Variables ¶
View Source
var ( SupportedTransportProtocols = []string{ "tcp", "kcp", "quic", "websocket", "wss", } SupportedAuthMethods = []v1.AuthMethod{ "token", "oidc", } SupportedAuthAdditionalScopes = []v1.AuthScope{ "HeartBeats", "NewWorkConns", } SupportedLogLevels = []string{ "trace", "debug", "info", "warn", "error", } SupportedHTTPPluginOps = []string{ splugin.OpLogin, splugin.OpNewProxy, splugin.OpCloseProxy, splugin.OpPing, splugin.OpNewWorkConn, splugin.OpNewUserConn, } )
Functions ¶
func AppendError ¶
func ValidateAnnotations ¶
ValidateAnnotations validates that a set of annotations are correctly defined.
func ValidateAnnotationsSize ¶
func ValidateClientPluginOptions ¶
func ValidateClientPluginOptions(c v1.ClientPluginOptions) error
func ValidatePort ¶
ValidatePort checks that the network port is in range
func ValidateProxyConfigurerForClient ¶
func ValidateProxyConfigurerForClient(c v1.ProxyConfigurer) error
func ValidateProxyConfigurerForServer ¶
func ValidateProxyConfigurerForServer(c v1.ProxyConfigurer, s *v1.ServerConfig) error
func ValidateVisitorConfigurer ¶
func ValidateVisitorConfigurer(c v1.VisitorConfigurer) error
Types ¶
type Warning ¶
type Warning error
func ValidateAllClientConfig ¶
func ValidateAllClientConfig(c *v1.ClientCommonConfig, proxyCfgs []v1.ProxyConfigurer, visitorCfgs []v1.VisitorConfigurer) (Warning, error)
func ValidateClientCommonConfig ¶
func ValidateClientCommonConfig(c *v1.ClientCommonConfig) (Warning, error)
func ValidateServerConfig ¶
func ValidateServerConfig(c *v1.ServerConfig) (Warning, error)
Click to show internal directories.
Click to hide internal directories.