connhelper

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 11

Documentation

Overview

Package connhelper provides helpers for connecting to a remote daemon host with custom logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(scheme string, fn func(*url.URL) (*ConnectionHelper, error))

Register registers new connectionhelper for scheme

Types

type ConnectionHelper

type ConnectionHelper struct {
	// ContextDialer can be passed to grpc.WithContextDialer
	ContextDialer func(ctx context.Context, addr string) (net.Conn, error)
}

ConnectionHelper allows to connect to a remote host with custom stream provider binary.

func GetConnectionHelper

func GetConnectionHelper(daemonURL string) (*ConnectionHelper, error)

GetConnectionHelper returns BuildKit-specific connection helper for the given URL. GetConnectionHelper returns nil without error when no helper is registered for the scheme.

Directories

Path Synopsis
Package dockercontainer provides connhelper for docker-container://<container>
Package dockercontainer provides connhelper for docker-container://<container>
Package kubepod provides connhelper for kube-pod://<pod>
Package kubepod provides connhelper for kube-pod://<pod>
Package podmancontainer provides connhelper for podman-container://<container>
Package podmancontainer provides connhelper for podman-container://<container>
Package ssh provides connhelper for ssh://<SSH URL>
Package ssh provides connhelper for ssh://<SSH URL>

Jump to

Keyboard shortcuts

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