executor

package
v1.12.10 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package executor is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudGRPCExecutor

type CloudGRPCExecutor struct {
	// contains filtered or unexported fields
}

func NewCloudGRPCExecutor

func NewCloudGRPCExecutor(client cloud.TestKubeCloudAPIClient, grpcConn *grpc.ClientConn, apiKey string) *CloudGRPCExecutor

func (*CloudGRPCExecutor) Close added in v1.10.40

func (e *CloudGRPCExecutor) Close() error

func (*CloudGRPCExecutor) Execute

func (e *CloudGRPCExecutor) Execute(ctx context.Context, command Command, payload any) (response []byte, err error)

type Command

type Command string

type Executor

type Executor interface {
	Execute(ctx context.Context, command Command, payload any) (response []byte, err error)
	Close() error
}

type MockExecutor

type MockExecutor struct {
	// contains filtered or unexported fields
}

MockExecutor is a mock of Executor interface.

func NewMockExecutor

func NewMockExecutor(ctrl *gomock.Controller) *MockExecutor

NewMockExecutor creates a new mock instance.

func (*MockExecutor) Close added in v1.10.40

func (m *MockExecutor) Close() error

Close mocks base method.

func (*MockExecutor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockExecutor) Execute

func (m *MockExecutor) Execute(arg0 context.Context, arg1 Command, arg2 interface{}) ([]byte, error)

Execute mocks base method.

type MockExecutorMockRecorder

type MockExecutorMockRecorder struct {
	// contains filtered or unexported fields
}

MockExecutorMockRecorder is the mock recorder for MockExecutor.

func (*MockExecutorMockRecorder) Close added in v1.10.40

func (mr *MockExecutorMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockExecutorMockRecorder) Execute

func (mr *MockExecutorMockRecorder) Execute(arg0, arg1, arg2 interface{}) *gomock.Call

Execute indicates an expected call of Execute.

Jump to

Keyboard shortcuts

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