Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockHttpClient ¶
Types ¶
type CodespaceConnection ¶
type CodespaceConnection struct { TunnelManager *tunnels.Manager TunnelClient *TunnelClient Options *tunnels.TunnelRequestOptions Tunnel *tunnels.Tunnel AllowedPortPrivacySettings []string // contains filtered or unexported fields }
func NewCodespaceConnection ¶
func NewCodespaceConnection(ctx context.Context, codespace *api.Codespace, httpClient *http.Client) (connection *CodespaceConnection, err error)
NewCodespaceConnection initializes a connection to a codespace. This connections allows for port forwarding which enables the use of most features of the codespace command.
func (*CodespaceConnection) Close ¶ added in v2.39.0
func (c *CodespaceConnection) Close() error
Close closes the underlying tunnel client SSH connection.
type TunnelClient ¶ added in v2.39.0
Click to show internal directories.
Click to hide internal directories.