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 AuthUserConfig
- type BackendMode
- type BasicAuthConfig
- type FrontendConfig
- type Metrics
- type OauthConfig
- 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" Oauth AuthScheme = "oauth" )
func ParseAuthScheme ¶
func ParseAuthScheme(authScheme string) (AuthScheme, error)
type AuthUserConfig ¶ added in v0.4.7
type BackendMode ¶
type BackendMode string
const ( ProxyBackendMode BackendMode = "proxy" WebBackendMode BackendMode = "web" TcpTunnelBackendMode BackendMode = "tcpTunnel" UdpTunnelBackendMode BackendMode = "udpTunnel" CaddyBackendMode BackendMode = "caddy" )
type BasicAuthConfig ¶ added in v0.4.7
type BasicAuthConfig struct {
Users []*AuthUserConfig `json:"users"`
}
type FrontendConfig ¶ added in v0.4.7
type FrontendConfig struct { AuthScheme AuthScheme `json:"auth_scheme"` BasicAuth *BasicAuthConfig `json:"basic_auth"` OauthAuth *OauthConfig `json:"oauth"` }
type Metrics ¶
type Metrics struct { Namespace string Sessions map[string]SessionMetrics }
type OauthConfig ¶ added in v0.4.7
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.