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
}
Click to show internal directories.
Click to hide internal directories.