network

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 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
}

func (*Address) ForContainer

func (a *Address) ForContainer(env container.EnvType) 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 {
	Source string
	Target string
	Env    string
	Volume *types.Volume
}

func SSHForward

func SSHForward() (*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