connection

package
v1.8.4-0...-33fe02a Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalListener

func LocalListener() (net.Listener, string, error)

LocalListener returns a listener that listens on a random port on localhost.

func TLSConn

func TLSConn(ctx context.Context, builder *machine.Machine) (net.Conn, error)

Connects to the buildkitd using the TLS certs provided by the Depot API. Attempts to connect every one second for two minutes until it succeeds or the context is canceled.

Types

type Proxy

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

func NewProxy

func NewProxy(listener net.Listener, builder *machine.Machine) *Proxy

func (*Proxy) Start

func (p *Proxy) Start(ctx context.Context) error

func (*Proxy) Stop

func (p *Proxy) Stop()

Jump to

Keyboard shortcuts

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