Documentation ¶
Overview ¶
Package mocktarget is a generated GoMock package.
Index ¶
- type MockTarget
- func (m *MockTarget) Close() error
- func (m *MockTarget) EXPECT() *MockTargetMockRecorder
- func (m *MockTarget) Get(ctx context.Context, req *schema_server.GetDataRequest) (*schema_server.GetDataResponse, error)
- func (m *MockTarget) Set(ctx context.Context, source target.TargetSource) (*schema_server.SetDataResponse, error)
- func (m *MockTarget) Status() string
- func (m *MockTarget) Sync(ctx context.Context, syncConfig *config.Sync, syncCh chan *target.SyncUpdate)
- type MockTargetMockRecorder
- func (mr *MockTargetMockRecorder) Close() *gomock.Call
- func (mr *MockTargetMockRecorder) Get(ctx, req any) *gomock.Call
- func (mr *MockTargetMockRecorder) Set(ctx, source any) *gomock.Call
- func (mr *MockTargetMockRecorder) Status() *gomock.Call
- func (mr *MockTargetMockRecorder) Sync(ctx, syncConfig, syncCh any) *gomock.Call
- type MockTargetSource
- func (m *MockTargetSource) EXPECT() *MockTargetSourceMockRecorder
- func (m *MockTargetSource) ToJson(onlyNewOrUpdated bool) (any, error)
- func (m *MockTargetSource) ToJsonIETF(onlyNewOrUpdated bool) (any, error)
- func (m *MockTargetSource) ToProtoDeletes(ctx context.Context) ([]*schema_server.Path, error)
- func (m *MockTargetSource) ToProtoUpdates(ctx context.Context, onlyNewOrUpdated bool) ([]*schema_server.Update, error)
- func (m *MockTargetSource) ToXML(...) (*etree.Document, error)
- type MockTargetSourceMockRecorder
- func (mr *MockTargetSourceMockRecorder) ToJson(onlyNewOrUpdated any) *gomock.Call
- func (mr *MockTargetSourceMockRecorder) ToJsonIETF(onlyNewOrUpdated any) *gomock.Call
- func (mr *MockTargetSourceMockRecorder) ToProtoDeletes(ctx any) *gomock.Call
- func (mr *MockTargetSourceMockRecorder) ToProtoUpdates(ctx, onlyNewOrUpdated any) *gomock.Call
- func (mr *MockTargetSourceMockRecorder) ToXML(...) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTarget ¶
type MockTarget struct {
// contains filtered or unexported fields
}
MockTarget is a mock of Target interface.
func NewMockTarget ¶
func NewMockTarget(ctrl *gomock.Controller) *MockTarget
NewMockTarget creates a new mock instance.
func (*MockTarget) EXPECT ¶
func (m *MockTarget) EXPECT() *MockTargetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTarget) Get ¶
func (m *MockTarget) Get(ctx context.Context, req *schema_server.GetDataRequest) (*schema_server.GetDataResponse, error)
Get mocks base method.
func (*MockTarget) Set ¶
func (m *MockTarget) Set(ctx context.Context, source target.TargetSource) (*schema_server.SetDataResponse, error)
Set mocks base method.
func (*MockTarget) Sync ¶
func (m *MockTarget) Sync(ctx context.Context, syncConfig *config.Sync, syncCh chan *target.SyncUpdate)
Sync mocks base method.
type MockTargetMockRecorder ¶
type MockTargetMockRecorder struct {
// contains filtered or unexported fields
}
MockTargetMockRecorder is the mock recorder for MockTarget.
func (*MockTargetMockRecorder) Close ¶
func (mr *MockTargetMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTargetMockRecorder) Get ¶
func (mr *MockTargetMockRecorder) Get(ctx, req any) *gomock.Call
Get indicates an expected call of Get.
func (*MockTargetMockRecorder) Set ¶
func (mr *MockTargetMockRecorder) Set(ctx, source any) *gomock.Call
Set indicates an expected call of Set.
func (*MockTargetMockRecorder) Status ¶
func (mr *MockTargetMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
type MockTargetSource ¶
type MockTargetSource struct {
// contains filtered or unexported fields
}
MockTargetSource is a mock of TargetSource interface.
func NewMockTargetSource ¶
func NewMockTargetSource(ctrl *gomock.Controller) *MockTargetSource
NewMockTargetSource creates a new mock instance.
func (*MockTargetSource) EXPECT ¶
func (m *MockTargetSource) EXPECT() *MockTargetSourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTargetSource) ToJson ¶
func (m *MockTargetSource) ToJson(onlyNewOrUpdated bool) (any, error)
ToJson mocks base method.
func (*MockTargetSource) ToJsonIETF ¶
func (m *MockTargetSource) ToJsonIETF(onlyNewOrUpdated bool) (any, error)
ToJsonIETF mocks base method.
func (*MockTargetSource) ToProtoDeletes ¶
func (m *MockTargetSource) ToProtoDeletes(ctx context.Context) ([]*schema_server.Path, error)
ToProtoDeletes mocks base method.
func (*MockTargetSource) ToProtoUpdates ¶
func (m *MockTargetSource) ToProtoUpdates(ctx context.Context, onlyNewOrUpdated bool) ([]*schema_server.Update, error)
ToProtoUpdates mocks base method.
type MockTargetSourceMockRecorder ¶
type MockTargetSourceMockRecorder struct {
// contains filtered or unexported fields
}
MockTargetSourceMockRecorder is the mock recorder for MockTargetSource.
func (*MockTargetSourceMockRecorder) ToJson ¶
func (mr *MockTargetSourceMockRecorder) ToJson(onlyNewOrUpdated any) *gomock.Call
ToJson indicates an expected call of ToJson.
func (*MockTargetSourceMockRecorder) ToJsonIETF ¶
func (mr *MockTargetSourceMockRecorder) ToJsonIETF(onlyNewOrUpdated any) *gomock.Call
ToJsonIETF indicates an expected call of ToJsonIETF.
func (*MockTargetSourceMockRecorder) ToProtoDeletes ¶
func (mr *MockTargetSourceMockRecorder) ToProtoDeletes(ctx any) *gomock.Call
ToProtoDeletes indicates an expected call of ToProtoDeletes.
func (*MockTargetSourceMockRecorder) ToProtoUpdates ¶
func (mr *MockTargetSourceMockRecorder) ToProtoUpdates(ctx, onlyNewOrUpdated any) *gomock.Call
ToProtoUpdates indicates an expected call of ToProtoUpdates.