sshserver

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 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 WithLogger

func WithLogger(logger destination.Logger) Option

WithLogger sets the logger 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 {
	Port string
	// contains filtered or unexported fields
}

func Setup

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

Jump to

Keyboard shortcuts

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