Documentation ¶
Index ¶
- type DockerProvider
- func (d *DockerProvider) GetHost(ctx context.Context) (string, string, error)
- func (d *DockerProvider) GetScriptOutput(ctx context.Context, id string) (string, string, error)
- func (d *DockerProvider) Start(ctx context.Context) (err error)
- func (d *DockerProvider) Stop(ctx context.Context) error
- func (d *DockerProvider) StopHost(ctx context.Context, id string) error
- type SSH
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerProvider ¶
DockerProvider provides docker containers that run SSH servers that can serve attackers
func NewDockerProvider ¶
func NewDockerProvider(hostt string, config container.Config, hostConfig container.HostConfig, networkConfig network.NetworkingConfig, platform specs.Platform, hostBuffer int) *DockerProvider
NewDockerProvider creates a new docker provider
func (*DockerProvider) GetHost ¶
GetHost returns an available host in the format IP:PORT to connect to
func (*DockerProvider) GetScriptOutput ¶
GetScriptOutput gets the script output and timing files
Click to show internal directories.
Click to hide internal directories.