Documentation
¶
Overview ¶
Package iap provides a client for the IAP tunneling protocol.
Index ¶
- func WithCompression() func(*dialOptions)
- func WithHost(host, region, network, destGroup string) func(*dialOptions)
- func WithInstance(instance, zone, ninterface string) func(*dialOptions)
- func WithPort(port string) func(*dialOptions)
- func WithProject(project string) func(*dialOptions)
- func WithToken(token string) func(*dialOptions)
- type Conn
- type DialOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCompression ¶
func WithCompression() func(*dialOptions)
WithCompression is a functional option that enables compression.
func WithHost ¶
func WithHost(host, region, network, destGroup string) func(*dialOptions)
WithHost is a functional option that sets the host, region, network, and destination group.
func WithInstance ¶
func WithInstance(instance, zone, ninterface string) func(*dialOptions)
WithInstance is a functional option that sets the instance, zone, and network interface.
func WithPort ¶
func WithPort(port string) func(*dialOptions)
WithPort is a functional option that sets the destination port.
func WithProject ¶
func WithProject(project string) func(*dialOptions)
WithProject is a functional option that sets the project ID.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func Dial ¶
func Dial(ctx context.Context, opts ...DialOption) (*Conn, error)
Dial connects to the IAP proxy and returns a Conn or error if the connection fails.
type DialOption ¶
type DialOption func(*dialOptions)
Click to show internal directories.
Click to hide internal directories.