Versions in this module Expand all Collapse all v0 v0.2.1 Jul 13, 2026 v0.2.0 Jul 13, 2026 Changes in this version + const CLEANUP_CONTAINER_CMD + const DEFAULT_NET_INTERFACE + const DELAY_CONTAINER_CMD + const IMAGE_NAME + const PACKET_LOSS_CONTAINER_CMD + const START_CONTAINER_CMD + type ComposeUpCommand struct + func NewComposeUpCommand(cmd *parser.SetupCommandDTO, baseDir string, ctx context.Context) (*ComposeUpCommand, error) + func (s *ComposeUpCommand) Cleanup() error + func (s *ComposeUpCommand) Execute() error + type ContainerCommandExecutor interface + Execute func(containerId string, cmd string) error + type ContainerKiller interface + Kill func(containerId string) error + type ContainerPauser interface + Pause func(containerId string) error + type ContainerStarter interface + Start func(containerId string) error + type ContainerStopper interface + Stop func(containerId string) error + type ContainerThrottler interface + Throttle func(cmd string, netInterface string, targetContainerId string) error + Unthrottle func(netInterface string, targetContainerId string) error + type ContainerUnpauser interface + Unpause func(containerId string) error + type CustomQdiscContainerCommand struct + func NewCustomQdiscContainerCommand(cmd *parser.SetupCommandDTO, throttler ContainerThrottler) (*CustomQdiscContainerCommand, error) + func (s *CustomQdiscContainerCommand) Cleanup() error + func (s *CustomQdiscContainerCommand) Execute() error + type DelayContainerCommand struct + func NewDelayContainerCommand(cmd *parser.SetupCommandDTO, throttler ContainerThrottler) (*DelayContainerCommand, error) + func (s *DelayContainerCommand) Cleanup() error + func (s *DelayContainerCommand) Execute() error + type DockerContainerThrottler struct + func NewDockerContainerThrottler(builder HelperContainerBuilder, starter ContainerStarter, ...) *DockerContainerThrottler + func (t *DockerContainerThrottler) Throttle(cmd string, netInterface string, targetContainerId string) error + func (t *DockerContainerThrottler) Unthrottle(netInterface string, targetContainerId string) error + type DockerHandler struct + func NewDockerHandler(cli *client.Client, baseDir string, ctx context.Context) *DockerHandler + func (e *DockerHandler) Build(targetContainerId string, netInterface string, cmd string) (string, error) + func (e *DockerHandler) Execute(containerId string, cmd string) error + func (e *DockerHandler) Kill(containerId string) error + func (e *DockerHandler) Pause(containerId string) error + func (e *DockerHandler) Start(containerId string) error + func (e *DockerHandler) Stop(containerId string) error + func (e *DockerHandler) Unpause(containerId string) error + type DockerSetupCommand interface + Cleanup func() error + Execute func() error + func NewDockerSetupCommand(cmd *parser.SetupCommandDTO, handler *DockerHandler) (DockerSetupCommand, error) + type ExecContainerCleanupCommand struct + func NewExecContainerCleanupCommand(cleanupCmd *parser.CleanupCommandDTO, containerId string, ...) (*ExecContainerCleanupCommand, error) + func (c *ExecContainerCleanupCommand) Cleanup() error + type ExecContainerCommand struct + func NewExecContainerCommand(cmd *parser.SetupCommandDTO, executor ContainerCommandExecutor) (*ExecContainerCommand, error) + func (s *ExecContainerCommand) Cleanup() error + func (s *ExecContainerCommand) Execute() error + type HelperContainerBuilder interface + Build func(targetContainerId string, netInterface string, cmd string) (string, error) + type KillContainerCommand struct + func NewKillContainerCommand(cmd *parser.SetupCommandDTO, killer ContainerKiller, starter ContainerStarter) (*KillContainerCommand, error) + func (s *KillContainerCommand) Cleanup() error + func (s *KillContainerCommand) Execute() error + type PacketLossContainerCommand struct + func NewPacketLossContainerCommand(cmd *parser.SetupCommandDTO, throttler ContainerThrottler) (*PacketLossContainerCommand, error) + func (s *PacketLossContainerCommand) Cleanup() error + func (s *PacketLossContainerCommand) Execute() error + type PauseContainerCommand struct + func NewPauseContainerCommand(cmd *parser.SetupCommandDTO, pauser ContainerPauser, ...) (*PauseContainerCommand, error) + func (s *PauseContainerCommand) Cleanup() error + func (s *PauseContainerCommand) Execute() error + type StartContainerCommand struct + func NewStartContainerCommand(cmd *parser.SetupCommandDTO, starter ContainerStarter, ...) (*StartContainerCommand, error) + func (s *StartContainerCommand) Cleanup() error + func (s *StartContainerCommand) Execute() error + type StopContainerCommand struct + func NewStopContainerCommand(cmd *parser.SetupCommandDTO, stopper ContainerStopper, ...) (*StopContainerCommand, error) + func (s *StopContainerCommand) Cleanup() error + func (s *StopContainerCommand) Execute() error + type UnpauseContainerCommand struct + func NewUnpauseContainerCommand(cmd *parser.SetupCommandDTO, unpauser ContainerUnpauser, ...) (*UnpauseContainerCommand, error) + func (s *UnpauseContainerCommand) Cleanup() error + func (s *UnpauseContainerCommand) Execute() error