pasta

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

View Source
const (
	BinaryName = "pasta"
)

Variables

This section is empty.

Functions

func Setup

func Setup(opts *SetupOptions) error

Setup start the pasta process for the given netns. The pasta binary is looked up in the HelperBinariesDir and $PATH. Note that there is no need any special cleanup logic, the pasta process will automatically exit when the netns path is deleted.

Types

type SetupOptions

type SetupOptions struct {
	// Config used to get pasta options and binary path via HelperBinariesDir
	Config *config.Config
	// Netns is the path to the container Netns
	Netns string
	// Ports that should be forwarded in the container
	Ports []types.PortMapping
	// ExtraOptions are pasta(1) cli options, these will be appended after the
	// pasta options from containers.conf to allow some form of overwrite.
	ExtraOptions []string
}

Jump to

Keyboard shortcuts

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