Documentation
¶
Overview ¶
Package executors provides abstractions for executing shell scripts remotely
Index ¶
Constants ¶
View Source
const DefaultPort = 22
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionSettings ¶
ConnectionSettings centralizes attributes related to the remote host settings
type Executor ¶
type Executor interface { // Execute connects to a host, runs the script and disconnects Execute(ctx context.Context, connection ConnectionSettings, script []byte) error }
Executor is the interface to provide operations related to script execution
type MockExecutor ¶
MockExecutor is an autogenerated mock type for the Executor type
func NewMockExecutor ¶ added in v0.3.0
func NewMockExecutor(t interface { mock.TestingT Cleanup(func()) }) *MockExecutor
NewMockExecutor creates a new instance of MockExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockExecutor) Execute ¶
func (_m *MockExecutor) Execute(ctx context.Context, connection ConnectionSettings, script []byte) error
Execute provides a mock function with given fields: ctx, connection, script
Click to show internal directories.
Click to hide internal directories.