Documentation ¶
Index ¶
- type MerlinClient
- func (_m *MerlinClient) EXPECT() *MerlinClient_Expecter
- func (_m *MerlinClient) ModelVersion(ctx context.Context, modelID int64, versionID int64) (merlin.ModelVersion, error)
- func (_m *MerlinClient) Models(ctx context.Context, projectID int64) ([]merlin.Model, error)
- func (_m *MerlinClient) Projects(ctx context.Context) ([]merlin.Project, error)
- type MerlinClient_Expecter
- func (_e *MerlinClient_Expecter) ModelVersion(ctx interface{}, modelID interface{}, versionID interface{}) *MerlinClient_ModelVersion_Call
- func (_e *MerlinClient_Expecter) Models(ctx interface{}, projectID interface{}) *MerlinClient_Models_Call
- func (_e *MerlinClient_Expecter) Projects(ctx interface{}) *MerlinClient_Projects_Call
- type MerlinClient_ModelVersion_Call
- type MerlinClient_Models_Call
- type MerlinClient_Projects_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MerlinClient ¶
MerlinClient is an autogenerated mock type for the Client type
func NewMerlinClient ¶
func NewMerlinClient(t mockConstructorTestingTNewMerlinClient) *MerlinClient
NewMerlinClient creates a new instance of MerlinClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MerlinClient) EXPECT ¶
func (_m *MerlinClient) EXPECT() *MerlinClient_Expecter
func (*MerlinClient) ModelVersion ¶
func (_m *MerlinClient) ModelVersion(ctx context.Context, modelID int64, versionID int64) (merlin.ModelVersion, error)
ModelVersion provides a mock function with given fields: ctx, modelID, versionID
type MerlinClient_Expecter ¶
type MerlinClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MerlinClient_Expecter) ModelVersion ¶
func (_e *MerlinClient_Expecter) ModelVersion(ctx interface{}, modelID interface{}, versionID interface{}) *MerlinClient_ModelVersion_Call
ModelVersion is a helper method to define mock.On call
- ctx context.Context
- modelID int64
- versionID int64
func (*MerlinClient_Expecter) Models ¶
func (_e *MerlinClient_Expecter) Models(ctx interface{}, projectID interface{}) *MerlinClient_Models_Call
Models is a helper method to define mock.On call
- ctx context.Context
- projectID int64
func (*MerlinClient_Expecter) Projects ¶
func (_e *MerlinClient_Expecter) Projects(ctx interface{}) *MerlinClient_Projects_Call
Projects is a helper method to define mock.On call
- ctx context.Context
type MerlinClient_ModelVersion_Call ¶
MerlinClient_ModelVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ModelVersion'
func (*MerlinClient_ModelVersion_Call) Return ¶
func (_c *MerlinClient_ModelVersion_Call) Return(_a0 merlin.ModelVersion, _a1 error) *MerlinClient_ModelVersion_Call
func (*MerlinClient_ModelVersion_Call) Run ¶
func (_c *MerlinClient_ModelVersion_Call) Run(run func(ctx context.Context, modelID int64, versionID int64)) *MerlinClient_ModelVersion_Call
type MerlinClient_Models_Call ¶
MerlinClient_Models_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Models'
func (*MerlinClient_Models_Call) Return ¶
func (_c *MerlinClient_Models_Call) Return(_a0 []merlin.Model, _a1 error) *MerlinClient_Models_Call
func (*MerlinClient_Models_Call) Run ¶
func (_c *MerlinClient_Models_Call) Run(run func(ctx context.Context, projectID int64)) *MerlinClient_Models_Call
type MerlinClient_Projects_Call ¶
MerlinClient_Projects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Projects'
func (*MerlinClient_Projects_Call) Return ¶
func (_c *MerlinClient_Projects_Call) Return(_a0 []merlin.Project, _a1 error) *MerlinClient_Projects_Call
func (*MerlinClient_Projects_Call) Run ¶
func (_c *MerlinClient_Projects_Call) Run(run func(ctx context.Context)) *MerlinClient_Projects_Call