Documentation ¶
Overview ¶
Package funcmock is a generated GoMock package.
Index ¶
- func NewUDSGRPCBasedUDF() (*udsGRPCBasedUDF, error)
- func NewUdsGRPCBasedUDFWithClient(client functionsdk.Client) *udsGRPCBasedUDF
- type ApplyUDFErr
- type InternalErr
- type MockUserDefinedFunction_ReduceFnClient
- func (m *MockUserDefinedFunction_ReduceFnClient) CloseAndRecv() (*v1.DatumList, error)
- func (m *MockUserDefinedFunction_ReduceFnClient) CloseSend() error
- func (m *MockUserDefinedFunction_ReduceFnClient) Context() context.Context
- func (m *MockUserDefinedFunction_ReduceFnClient) EXPECT() *MockUserDefinedFunction_ReduceFnClientMockRecorder
- func (m *MockUserDefinedFunction_ReduceFnClient) Header() (metadata.MD, error)
- func (m *MockUserDefinedFunction_ReduceFnClient) RecvMsg(arg0 interface{}) error
- func (m *MockUserDefinedFunction_ReduceFnClient) Send(arg0 *v1.Datum) error
- func (m *MockUserDefinedFunction_ReduceFnClient) SendMsg(arg0 interface{}) error
- func (m *MockUserDefinedFunction_ReduceFnClient) Trailer() metadata.MD
- type MockUserDefinedFunction_ReduceFnClientMockRecorder
- func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) CloseAndRecv() *gomock.Call
- func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) CloseSend() *gomock.Call
- func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) Context() *gomock.Call
- func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) Header() *gomock.Call
- func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) Send(arg0 interface{}) *gomock.Call
- func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) Trailer() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUDSGRPCBasedUDF ¶
func NewUDSGRPCBasedUDF() (*udsGRPCBasedUDF, error)
NewUDSGRPCBasedUDF returns a new udsGRPCBasedUDF object.
func NewUdsGRPCBasedUDFWithClient ¶
func NewUdsGRPCBasedUDFWithClient(client functionsdk.Client) *udsGRPCBasedUDF
NewUdsGRPCBasedUDFWithClient need this for testing
Types ¶
type ApplyUDFErr ¶
type ApplyUDFErr struct { UserUDFErr bool Message string InternalErr }
ApplyUDFErr represents any UDF related error
func (ApplyUDFErr) Error ¶
func (e ApplyUDFErr) Error() string
func (ApplyUDFErr) IsInternalErr ¶
func (e ApplyUDFErr) IsInternalErr() bool
IsInternalErr is true if this is a platform issue. This is a blocking error.
func (ApplyUDFErr) IsUserUDFErr ¶
func (e ApplyUDFErr) IsUserUDFErr() bool
IsUserUDFErr is true if the problem is due to the user code in the UDF.
type InternalErr ¶
InternalErr represents errors internal to the platform
type MockUserDefinedFunction_ReduceFnClient ¶
type MockUserDefinedFunction_ReduceFnClient struct {
// contains filtered or unexported fields
}
MockUserDefinedFunction_ReduceFnClient is a mock of UserDefinedFunction_ReduceFnClient interface.
func NewMockUserDefinedFunction_ReduceFnClient ¶
func NewMockUserDefinedFunction_ReduceFnClient(ctrl *gomock.Controller) *MockUserDefinedFunction_ReduceFnClient
NewMockUserDefinedFunction_ReduceFnClient creates a new mock instance.
func (*MockUserDefinedFunction_ReduceFnClient) CloseAndRecv ¶
func (m *MockUserDefinedFunction_ReduceFnClient) CloseAndRecv() (*v1.DatumList, error)
CloseAndRecv mocks base method.
func (*MockUserDefinedFunction_ReduceFnClient) CloseSend ¶
func (m *MockUserDefinedFunction_ReduceFnClient) CloseSend() error
CloseSend mocks base method.
func (*MockUserDefinedFunction_ReduceFnClient) Context ¶
func (m *MockUserDefinedFunction_ReduceFnClient) Context() context.Context
Context mocks base method.
func (*MockUserDefinedFunction_ReduceFnClient) EXPECT ¶
func (m *MockUserDefinedFunction_ReduceFnClient) EXPECT() *MockUserDefinedFunction_ReduceFnClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserDefinedFunction_ReduceFnClient) Header ¶
func (m *MockUserDefinedFunction_ReduceFnClient) Header() (metadata.MD, error)
Header mocks base method.
func (*MockUserDefinedFunction_ReduceFnClient) RecvMsg ¶
func (m *MockUserDefinedFunction_ReduceFnClient) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method.
func (*MockUserDefinedFunction_ReduceFnClient) Send ¶
func (m *MockUserDefinedFunction_ReduceFnClient) Send(arg0 *v1.Datum) error
Send mocks base method.
func (*MockUserDefinedFunction_ReduceFnClient) SendMsg ¶
func (m *MockUserDefinedFunction_ReduceFnClient) SendMsg(arg0 interface{}) error
SendMsg mocks base method.
func (*MockUserDefinedFunction_ReduceFnClient) Trailer ¶
func (m *MockUserDefinedFunction_ReduceFnClient) Trailer() metadata.MD
Trailer mocks base method.
type MockUserDefinedFunction_ReduceFnClientMockRecorder ¶
type MockUserDefinedFunction_ReduceFnClientMockRecorder struct {
// contains filtered or unexported fields
}
MockUserDefinedFunction_ReduceFnClientMockRecorder is the mock recorder for MockUserDefinedFunction_ReduceFnClient.
func (*MockUserDefinedFunction_ReduceFnClientMockRecorder) CloseAndRecv ¶
func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) CloseAndRecv() *gomock.Call
CloseAndRecv indicates an expected call of CloseAndRecv.
func (*MockUserDefinedFunction_ReduceFnClientMockRecorder) CloseSend ¶
func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockUserDefinedFunction_ReduceFnClientMockRecorder) Context ¶
func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockUserDefinedFunction_ReduceFnClientMockRecorder) Header ¶
func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockUserDefinedFunction_ReduceFnClientMockRecorder) RecvMsg ¶
func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockUserDefinedFunction_ReduceFnClientMockRecorder) Send ¶
func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockUserDefinedFunction_ReduceFnClientMockRecorder) SendMsg ¶
func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockUserDefinedFunction_ReduceFnClientMockRecorder) Trailer ¶
func (mr *MockUserDefinedFunction_ReduceFnClientMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.