Documentation
¶
Overview ¶
Package sockproxy will provide a tcp forwarding proxy as a buildkit session Attachable. This can be used to provide a tcp protocol bridge to the buildkit built-in unix protocol forwarding.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(confs []AgentConfig) (session.Attachable, error)
NewProvider creates a session provider for arbitrary socket forwarding by piggy-backing off the SSH forwarding protocol.
Types ¶
type AgentConfig ¶
type AgentConfig struct {
// ID should be a digest string that uniquely identifies this config.
ID string
// Path is the list of paths to forward. If empty, SSH_AUTH_SOCK will be
// used unless SSH is false.
Paths []string
// SSH when true will fall back to forward the file located at the
// SSH_AUTH_SOCK environment variable.
SSH bool
}
AgentConfig holds data necessary for to create a tcp forwarding agent.
Click to show internal directories.
Click to hide internal directories.