Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
Executor is an autogenerated mock type for the Executor type
func NewExecutor ¶
NewExecutor creates a new instance of Executor. 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 (*Executor) EXPECT ¶
func (_m *Executor) EXPECT() *Executor_Expecter
func (*Executor) Exec ¶
func (_m *Executor) Exec(ctx context.Context, config *rest.Config, podName string, podNamespace string, containerName string, command []string) (*bytes.Buffer, *bytes.Buffer, error)
Exec provides a mock function with given fields: ctx, config, podName, podNamespace, containerName, command
type Executor_Exec_Call ¶
Executor_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*Executor_Exec_Call) Return ¶
func (_c *Executor_Exec_Call) Return(stdOut *bytes.Buffer, stdErr *bytes.Buffer, err error) *Executor_Exec_Call
type Executor_Expecter ¶
type Executor_Expecter struct {
// contains filtered or unexported fields
}
func (*Executor_Expecter) Exec ¶
func (_e *Executor_Expecter) Exec(ctx interface{}, config interface{}, podName interface{}, podNamespace interface{}, containerName interface{}, command interface{}) *Executor_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- config *rest.Config
- podName string
- podNamespace string
- containerName string
- command []string
Click to show internal directories.
Click to hide internal directories.