Help us shape the future of Go! Take the 2026 Go Developer Survey

connhelper

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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 DevKit-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 nerdctlcontainer provides connhelper for nerdctl-container://<container>
Package nerdctlcontainer provides connhelper for nerdctl-container://<container>
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