iap

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

func Dial

func Dial(ctx context.Context, ts oauth2.TokenSource, opts DialOptions) (*Conn, error)

Dial connects to the IAP proxy and returns a Conn or error if the connection fails.

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Read

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

func (*Conn) Write

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

type DialOptions

type DialOptions struct {
	Project  string
	Zone     string
	Instance string
	Port     int
}

Jump to

Keyboard shortcuts

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