network

package
v0.37.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DARWIN_SSH_AUTH_SOCK = "/run/host-services/ssh-auth.sock"
)

Variables

View Source
var RuntimeOS = runtime.GOOS

Functions

This section is empty.

Types

type Address

type Address struct {
	Host         string
	InternalHost string
	Secret       string
	Port         int
}

func (*Address) ForContainer

func (a *Address) ForContainer(build container.Build) string

func (*Address) ForContainerDefault

func (a *Address) ForContainerDefault(arg *container.Build) string

func (*Address) NewAddress

func (a *Address) NewAddress(arg *container.Build)

type Forward

type Forward struct {
	Volume *types.Volume
	Source string
	Target string
	Env    string
}

func SSHForward

func SSHForward(build container.Build) (*Forward, error)

func (*Forward) Apply

TODO implement ssh socket forward with socat TCP-LISTEN:12345,reuseaddr,fork UNIX-CONNECT:$SSH_AUTH_SOCK on host socat TCP-LISTEN:12345,reuseaddr,fork UNIX-CONNECT:$SSH_AUTH_SOCK in container

Jump to

Keyboard shortcuts

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