mocks

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteSession

type RemoteSession struct {
	mock.Mock
}

func (*RemoteSession) Close

func (m *RemoteSession) Close() error

func (*RemoteSession) CombinedOutput

func (m *RemoteSession) CombinedOutput(cmd string) ([]byte, error)

func (*RemoteSession) Output

func (m *RemoteSession) Output(cmd string) ([]byte, error)

func (*RemoteSession) Run

func (m *RemoteSession) Run(cmd string) error

func (*RemoteSession) Setenv

func (m *RemoteSession) Setenv(name string, value string) error

func (*RemoteSession) Shell

func (m *RemoteSession) Shell() error

func (*RemoteSession) Signal

func (m *RemoteSession) Signal(sig ssh.Signal) error

func (*RemoteSession) Start

func (m *RemoteSession) Start(cmd string) error

func (*RemoteSession) StderrPipe

func (m *RemoteSession) StderrPipe() (io.Reader, error)

func (*RemoteSession) StdinPipe

func (m *RemoteSession) StdinPipe() (io.WriteCloser, error)

func (*RemoteSession) StdoutPipe

func (m *RemoteSession) StdoutPipe() (io.Reader, error)

func (*RemoteSession) Wait

func (m *RemoteSession) Wait() error

type WriteCloser

type WriteCloser struct {
	mock.Mock
}

func (*WriteCloser) Close

func (mwc *WriteCloser) Close() error

func (*WriteCloser) Write

func (mwc *WriteCloser) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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