iap

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2023 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithCompression

func WithCompression() func(*dialOptions)

func WithHost

func WithHost(host, region, network, destGroup string) func(*dialOptions)

func WithInstance

func WithInstance(instance, zone, ninterface string) func(*dialOptions)

func WithPort

func WithPort(port string) func(*dialOptions)

func WithProject

func WithProject(project string) func(*dialOptions)

func WithToken

func WithToken(token string) func(*dialOptions)

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(ctx context.Context, opts ...DialOption) (*Conn, error)

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Read

func (c *Conn) Read(buf []byte) (n int, err error)

func (*Conn) SessionID

func (c *Conn) SessionID() string

func (*Conn) Write

func (c *Conn) Write(buf []byte) (n int, err error)

type DialOption

type DialOption func(*dialOptions)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL