sshserver

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*config)

func WithCredentials

func WithCredentials(username, password string) Option

WithCredentials sets the username and password to use for the SSH server.

func WithDockerNetwork

func WithDockerNetwork(network *dc.Network) Option

WithDockerNetwork sets the Docker network to use for the SSH server.

func WithPublicKeyPath

func WithPublicKeyPath(publicKeyPath string) Option

WithPublicKeyPath sets the public key path to use for the SSH server.

type Resource

type Resource struct {
	Host string
	Port int
	// contains filtered or unexported fields
}

func Setup

func Setup(pool *dockertest.Pool, cln resource.Cleaner, opts ...Option) (*Resource, error)

Jump to

Keyboard shortcuts

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