transports

package
v0.0.0-...-efb87f3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport interface {
	// Dial should mimic net.Dial.
	Dial(network, address string) (net.Conn, error)

	// Exec should execute a binary on the host.
	Exec(cmd string, arguments ...string) (io.Reader, io.Reader, error)

	// ReadFile should mimic ioutil.ReadFile.
	ReadFile(filename string) ([]byte, error)
}

Transport defines a transport interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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