Documentation
¶
Index ¶
Constants ¶
View Source
const CONNECT_ENDPOINT = "connect"
View Source
const MTLS_URL_HOST = "mtls.tunnel.cloudproxy.app"
View Source
const RECONNECT_ENDPOINT = "reconnect"
View Source
const SEC_PROTOCOL_SUFFIX = "bearer.relay.tunnel.cloudproxy.app"
View Source
const SUBPROTOCOL_HEADER_LEN = SUBPROTOCOL_TAG_LEN + 4
View Source
const SUBPROTOCOL_MAX_DATA_FRAME_SIZE = 16384
View Source
const SUBPROTOCOL_NAME = "relay.tunnel.cloudproxy.app"
View Source
const SUBPROTOCOL_TAG_ACK uint16 = 0x0007
View Source
const SUBPROTOCOL_TAG_CONNECT_SUCCESS_SID uint16 = 0x0001
View Source
const SUBPROTOCOL_TAG_DATA uint16 = 0x0004
View Source
const SUBPROTOCOL_TAG_LEN = 2
View Source
const SUBPROTOCOL_TAG_RECONNECT_SUCCESS_ACK uint16 = 0x0002
View Source
const TUNNEL_CLOUDPROXY_ORIGIN = "bot:iap-tunneler"
View Source
const URL_HOST = "tunnel.cloudproxy.app"
View Source
const URL_PATH_ROOT = "/v4"
View Source
const URL_SCHEME = "wss"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TunnelManager ¶
type TunnelManager struct { Project string RemotePort int LocalPort int Zone string Instance string Interface string // contains filtered or unexported fields }
func (*TunnelManager) StartProxy ¶
func (m *TunnelManager) StartProxy(ctx context.Context) error
func (*TunnelManager) StartTunnel ¶
func (m *TunnelManager) StartTunnel(ctx context.Context) (io.ReadWriteCloser, error)
Click to show internal directories.
Click to hide internal directories.