Documentation
¶
Overview ¶
Package mocks provides mock implementations for testing.
Package mocks is a generated GoMock package.
Index ¶
- type MockExec
- func (m *MockExec) EXPECT() *MockExecMockRecorder
- func (m *MockExec) RunCmd(ctx context.Context, name string, args []string) (string, error)
- func (m *MockExec) RunCmdFull(ctx context.Context, name string, args []string, cwd string, timeout int) (*exec.CmdResult, error)
- func (m *MockExec) RunPrivilegedCmd(ctx context.Context, name string, args []string) (string, error)
- func (m *MockExec) RunPrivilegedCmdFull(ctx context.Context, name string, args []string, stdin string) (string, string, int, error)
- func (m *MockExec) RunPrivilegedCmdWithStdin(ctx context.Context, name string, args []string, stdin string) (string, error)
- func (m *MockExec) RunReadCmd(ctx context.Context, name string, args []string) ([]byte, error)
- type MockExecMockRecorder
- func (mr *MockExecMockRecorder) RunCmd(ctx, name, args any) *gomock.Call
- func (mr *MockExecMockRecorder) RunCmdFull(ctx, name, args, cwd, timeout any) *gomock.Call
- func (mr *MockExecMockRecorder) RunPrivilegedCmd(ctx, name, args any) *gomock.Call
- func (mr *MockExecMockRecorder) RunPrivilegedCmdFull(ctx, name, args, stdin any) *gomock.Call
- func (mr *MockExecMockRecorder) RunPrivilegedCmdWithStdin(ctx, name, args, stdin any) *gomock.Call
- func (mr *MockExecMockRecorder) RunReadCmd(ctx, name, args any) *gomock.Call
- type MockObjects
- type MockObjectsMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExec ¶
type MockExec struct {
// contains filtered or unexported fields
}
MockExec is a mock of Exec interface.
func NewMockExec ¶
func NewMockExec(ctrl *gomock.Controller) *MockExec
NewMockExec creates a new mock instance.
func (*MockExec) EXPECT ¶
func (m *MockExec) EXPECT() *MockExecMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExec) RunCmdFull ¶
func (m *MockExec) RunCmdFull(ctx context.Context, name string, args []string, cwd string, timeout int) (*exec.CmdResult, error)
RunCmdFull mocks base method.
func (*MockExec) RunPrivilegedCmd ¶
func (m *MockExec) RunPrivilegedCmd(ctx context.Context, name string, args []string) (string, error)
RunPrivilegedCmd mocks base method.
func (*MockExec) RunPrivilegedCmdFull ¶
func (m *MockExec) RunPrivilegedCmdFull(ctx context.Context, name string, args []string, stdin string) (string, string, int, error)
RunPrivilegedCmdFull mocks base method.
type MockExecMockRecorder ¶
type MockExecMockRecorder struct {
// contains filtered or unexported fields
}
MockExecMockRecorder is the mock recorder for MockExec.
func (*MockExecMockRecorder) RunCmd ¶
func (mr *MockExecMockRecorder) RunCmd(ctx, name, args any) *gomock.Call
RunCmd indicates an expected call of RunCmd.
func (*MockExecMockRecorder) RunCmdFull ¶
func (mr *MockExecMockRecorder) RunCmdFull(ctx, name, args, cwd, timeout any) *gomock.Call
RunCmdFull indicates an expected call of RunCmdFull.
func (*MockExecMockRecorder) RunPrivilegedCmd ¶
func (mr *MockExecMockRecorder) RunPrivilegedCmd(ctx, name, args any) *gomock.Call
RunPrivilegedCmd indicates an expected call of RunPrivilegedCmd.
func (*MockExecMockRecorder) RunPrivilegedCmdFull ¶
func (mr *MockExecMockRecorder) RunPrivilegedCmdFull(ctx, name, args, stdin any) *gomock.Call
RunPrivilegedCmdFull indicates an expected call of RunPrivilegedCmdFull.
func (*MockExecMockRecorder) RunPrivilegedCmdWithStdin ¶
func (mr *MockExecMockRecorder) RunPrivilegedCmdWithStdin(ctx, name, args, stdin any) *gomock.Call
RunPrivilegedCmdWithStdin indicates an expected call of RunPrivilegedCmdWithStdin.
func (*MockExecMockRecorder) RunReadCmd ¶
func (mr *MockExecMockRecorder) RunReadCmd(ctx, name, args any) *gomock.Call
RunReadCmd indicates an expected call of RunReadCmd.
type MockObjects ¶
type MockObjects struct {
// contains filtered or unexported fields
}
MockObjects is a mock of Objects interface.
func NewMockObjects ¶
func NewMockObjects(ctrl *gomock.Controller) *MockObjects
NewMockObjects creates a new mock instance.
func (*MockObjects) EXPECT ¶
func (m *MockObjects) EXPECT() *MockObjectsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockObjects) Object ¶
func (m *MockObjects) Object(ctx context.Context, name string) ([]byte, types.ContentType, error)
Object mocks base method.
type MockObjectsMockRecorder ¶
type MockObjectsMockRecorder struct {
// contains filtered or unexported fields
}
MockObjectsMockRecorder is the mock recorder for MockObjects.