package testutil

import "github.com/moby/buildkit/session/testutil"

Index

Types

type Dialer

type Dialer func(ctx context.Context, proto string, meta map[string][]string) (net.Conn, error)

Dialer is a function for dialing an outgoing connection

func TestStream

func TestStream(handler Handler) Dialer

TestStream creates an in memory session dialer for a handler function

type Handler

type Handler func(ctx context.Context, conn net.Conn, meta map[string][]string) error

Handler is function called to handle incoming connection

Source Files

testutil.go

Version
v0.21.0 (latest)
Published
Apr 11, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
2 days ago

Tools for package owners.