Documentation
¶
Index ¶
- Constants
- func DeleteAccess(root env_core.Root, acc *Access) error
- func DeleteShare(root env_core.Root, shr *Share) error
- func NewDialer(shrToken string, root env_core.Root) (edge.Conn, error)
- func NewListener(shrToken string, root env_core.Root) (edge.Listener, error)
- func NewListenerWithOptions(shrToken string, root env_core.Root, opts *ziti.ListenOptions) (edge.Listener, error)
- type Access
- type AccessRequest
- type AuthScheme
- type AuthUser
- type BackendMode
- type BasicAuth
- type Metrics
- type ProxyConfig
- type SessionMetrics
- type Share
- type ShareMode
- type ShareRequest
Constants ¶
View Source
const ZrokProxyConfig = "zrok.proxy.v1"
Variables ¶
This section is empty.
Functions ¶
func NewListenerWithOptions ¶
Types ¶
type Access ¶
type Access struct {
Token string
BackendMode BackendMode
}
func CreateAccess ¶
func CreateAccess(root env_core.Root, request *AccessRequest) (*Access, error)
type AccessRequest ¶
type AccessRequest struct {
}
type AuthScheme ¶
type AuthScheme string
const ( None AuthScheme = "none" Basic AuthScheme = "basic" )
func ParseAuthScheme ¶
func ParseAuthScheme(authScheme string) (AuthScheme, error)
type BackendMode ¶
type BackendMode string
const ( ProxyBackendMode BackendMode = "proxy" WebBackendMode BackendMode = "web" TcpTunnelBackendMode BackendMode = "tcpTunnel" UdpTunnelBackendMode BackendMode = "udpTunnel" )
type Metrics ¶
type Metrics struct {
Namespace string
Sessions map[string]SessionMetrics
}
type ProxyConfig ¶
type ProxyConfig struct {
AuthScheme AuthScheme `json:"auth_scheme"`
BasicAuth *BasicAuth `json:"basic_auth"`
}
type SessionMetrics ¶
type Share ¶
type Share struct {
}
func CreateShare ¶
func CreateShare(root env_core.Root, request *ShareRequest) (*Share, error)
type ShareRequest ¶
type ShareRequest struct {
}
Click to show internal directories.
Click to hide internal directories.