Documentation
¶
Index ¶
- func StopSshServer(ctx context.Context, server SshServer) error
- type SshServer
- func (s *SshServer) CopyFile(ctx context.Context, source, target string) error
- func (s *SshServer) Exec(ctx context.Context, command []string) (string, error)
- func (s *SshServer) Port(ctx context.Context) (string, error)
- func (s *SshServer) ReadFile(ctx context.Context, filePath string) (string, error)
- type SshServerOption
- type SshServerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SshServer ¶
type SshServer struct {
Container testcontainers.Container
}
func StartSshServer ¶
func StartSshServer(ctx context.Context, opts ...SshServerOption) (SshServer, error)
type SshServerOption ¶
type SshServerOption func(o *SshServerOptions)
func WithSshPassword ¶
func WithSshPassword(password string) SshServerOption
func WithSshPublicKey ¶
func WithSshPublicKey(key string) SshServerOption
func WithSshUsername ¶
func WithSshUsername(username string) SshServerOption
type SshServerOptions ¶
Click to show internal directories.
Click to hide internal directories.