Documentation
¶
Index ¶
- type MockCustomLlmsInterface
- func (_m *MockCustomLlmsInterface) Cancel(ctx context.Context, request aibuilder.CancelCustomLlmOptimizationRunRequest) error
- func (_m *MockCustomLlmsInterface) Create(ctx context.Context, request aibuilder.StartCustomLlmOptimizationRunRequest) (*aibuilder.CustomLlm, error)
- func (_m *MockCustomLlmsInterface) EXPECT() *MockCustomLlmsInterface_Expecter
- func (_m *MockCustomLlmsInterface) Get(ctx context.Context, request aibuilder.GetCustomLlmRequest) (*aibuilder.CustomLlm, error)
- func (_m *MockCustomLlmsInterface) GetById(ctx context.Context, id string) (*aibuilder.CustomLlm, error)
- func (_m *MockCustomLlmsInterface) Update(ctx context.Context, request aibuilder.UpdateCustomLlmRequest) (*aibuilder.CustomLlm, error)
- type MockCustomLlmsInterface_Cancel_Call
- type MockCustomLlmsInterface_Create_Call
- func (_c *MockCustomLlmsInterface_Create_Call) Return(_a0 *aibuilder.CustomLlm, _a1 error) *MockCustomLlmsInterface_Create_Call
- func (_c *MockCustomLlmsInterface_Create_Call) Run(...) *MockCustomLlmsInterface_Create_Call
- func (_c *MockCustomLlmsInterface_Create_Call) RunAndReturn(...) *MockCustomLlmsInterface_Create_Call
- type MockCustomLlmsInterface_Expecter
- func (_e *MockCustomLlmsInterface_Expecter) Cancel(ctx interface{}, request interface{}) *MockCustomLlmsInterface_Cancel_Call
- func (_e *MockCustomLlmsInterface_Expecter) Create(ctx interface{}, request interface{}) *MockCustomLlmsInterface_Create_Call
- func (_e *MockCustomLlmsInterface_Expecter) Get(ctx interface{}, request interface{}) *MockCustomLlmsInterface_Get_Call
- func (_e *MockCustomLlmsInterface_Expecter) GetById(ctx interface{}, id interface{}) *MockCustomLlmsInterface_GetById_Call
- func (_e *MockCustomLlmsInterface_Expecter) Update(ctx interface{}, request interface{}) *MockCustomLlmsInterface_Update_Call
- type MockCustomLlmsInterface_GetById_Call
- func (_c *MockCustomLlmsInterface_GetById_Call) Return(_a0 *aibuilder.CustomLlm, _a1 error) *MockCustomLlmsInterface_GetById_Call
- func (_c *MockCustomLlmsInterface_GetById_Call) Run(run func(ctx context.Context, id string)) *MockCustomLlmsInterface_GetById_Call
- func (_c *MockCustomLlmsInterface_GetById_Call) RunAndReturn(run func(context.Context, string) (*aibuilder.CustomLlm, error)) *MockCustomLlmsInterface_GetById_Call
- type MockCustomLlmsInterface_Get_Call
- func (_c *MockCustomLlmsInterface_Get_Call) Return(_a0 *aibuilder.CustomLlm, _a1 error) *MockCustomLlmsInterface_Get_Call
- func (_c *MockCustomLlmsInterface_Get_Call) Run(run func(ctx context.Context, request aibuilder.GetCustomLlmRequest)) *MockCustomLlmsInterface_Get_Call
- func (_c *MockCustomLlmsInterface_Get_Call) RunAndReturn(...) *MockCustomLlmsInterface_Get_Call
- type MockCustomLlmsInterface_Update_Call
- func (_c *MockCustomLlmsInterface_Update_Call) Return(_a0 *aibuilder.CustomLlm, _a1 error) *MockCustomLlmsInterface_Update_Call
- func (_c *MockCustomLlmsInterface_Update_Call) Run(run func(ctx context.Context, request aibuilder.UpdateCustomLlmRequest)) *MockCustomLlmsInterface_Update_Call
- func (_c *MockCustomLlmsInterface_Update_Call) RunAndReturn(...) *MockCustomLlmsInterface_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCustomLlmsInterface ¶
MockCustomLlmsInterface is an autogenerated mock type for the CustomLlmsInterface type
func NewMockCustomLlmsInterface ¶
func NewMockCustomLlmsInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockCustomLlmsInterface
NewMockCustomLlmsInterface creates a new instance of MockCustomLlmsInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockCustomLlmsInterface) Cancel ¶
func (_m *MockCustomLlmsInterface) Cancel(ctx context.Context, request aibuilder.CancelCustomLlmOptimizationRunRequest) error
Cancel provides a mock function with given fields: ctx, request
func (*MockCustomLlmsInterface) Create ¶
func (_m *MockCustomLlmsInterface) Create(ctx context.Context, request aibuilder.StartCustomLlmOptimizationRunRequest) (*aibuilder.CustomLlm, error)
Create provides a mock function with given fields: ctx, request
func (*MockCustomLlmsInterface) EXPECT ¶
func (_m *MockCustomLlmsInterface) EXPECT() *MockCustomLlmsInterface_Expecter
func (*MockCustomLlmsInterface) Get ¶
func (_m *MockCustomLlmsInterface) Get(ctx context.Context, request aibuilder.GetCustomLlmRequest) (*aibuilder.CustomLlm, error)
Get provides a mock function with given fields: ctx, request
func (*MockCustomLlmsInterface) GetById ¶
func (_m *MockCustomLlmsInterface) GetById(ctx context.Context, id string) (*aibuilder.CustomLlm, error)
GetById provides a mock function with given fields: ctx, id
func (*MockCustomLlmsInterface) Update ¶
func (_m *MockCustomLlmsInterface) Update(ctx context.Context, request aibuilder.UpdateCustomLlmRequest) (*aibuilder.CustomLlm, error)
Update provides a mock function with given fields: ctx, request
type MockCustomLlmsInterface_Cancel_Call ¶
MockCustomLlmsInterface_Cancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cancel'
func (*MockCustomLlmsInterface_Cancel_Call) Return ¶
func (_c *MockCustomLlmsInterface_Cancel_Call) Return(_a0 error) *MockCustomLlmsInterface_Cancel_Call
func (*MockCustomLlmsInterface_Cancel_Call) Run ¶
func (_c *MockCustomLlmsInterface_Cancel_Call) Run(run func(ctx context.Context, request aibuilder.CancelCustomLlmOptimizationRunRequest)) *MockCustomLlmsInterface_Cancel_Call
func (*MockCustomLlmsInterface_Cancel_Call) RunAndReturn ¶
func (_c *MockCustomLlmsInterface_Cancel_Call) RunAndReturn(run func(context.Context, aibuilder.CancelCustomLlmOptimizationRunRequest) error) *MockCustomLlmsInterface_Cancel_Call
type MockCustomLlmsInterface_Create_Call ¶
MockCustomLlmsInterface_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockCustomLlmsInterface_Create_Call) Return ¶
func (_c *MockCustomLlmsInterface_Create_Call) Return(_a0 *aibuilder.CustomLlm, _a1 error) *MockCustomLlmsInterface_Create_Call
func (*MockCustomLlmsInterface_Create_Call) Run ¶
func (_c *MockCustomLlmsInterface_Create_Call) Run(run func(ctx context.Context, request aibuilder.StartCustomLlmOptimizationRunRequest)) *MockCustomLlmsInterface_Create_Call
func (*MockCustomLlmsInterface_Create_Call) RunAndReturn ¶
func (_c *MockCustomLlmsInterface_Create_Call) RunAndReturn(run func(context.Context, aibuilder.StartCustomLlmOptimizationRunRequest) (*aibuilder.CustomLlm, error)) *MockCustomLlmsInterface_Create_Call
type MockCustomLlmsInterface_Expecter ¶
type MockCustomLlmsInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCustomLlmsInterface_Expecter) Cancel ¶
func (_e *MockCustomLlmsInterface_Expecter) Cancel(ctx interface{}, request interface{}) *MockCustomLlmsInterface_Cancel_Call
Cancel is a helper method to define mock.On call
- ctx context.Context
- request aibuilder.CancelCustomLlmOptimizationRunRequest
func (*MockCustomLlmsInterface_Expecter) Create ¶
func (_e *MockCustomLlmsInterface_Expecter) Create(ctx interface{}, request interface{}) *MockCustomLlmsInterface_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- request aibuilder.StartCustomLlmOptimizationRunRequest
func (*MockCustomLlmsInterface_Expecter) Get ¶
func (_e *MockCustomLlmsInterface_Expecter) Get(ctx interface{}, request interface{}) *MockCustomLlmsInterface_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- request aibuilder.GetCustomLlmRequest
func (*MockCustomLlmsInterface_Expecter) GetById ¶
func (_e *MockCustomLlmsInterface_Expecter) GetById(ctx interface{}, id interface{}) *MockCustomLlmsInterface_GetById_Call
GetById is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockCustomLlmsInterface_Expecter) Update ¶
func (_e *MockCustomLlmsInterface_Expecter) Update(ctx interface{}, request interface{}) *MockCustomLlmsInterface_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- request aibuilder.UpdateCustomLlmRequest
type MockCustomLlmsInterface_GetById_Call ¶
MockCustomLlmsInterface_GetById_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetById'
func (*MockCustomLlmsInterface_GetById_Call) Return ¶
func (_c *MockCustomLlmsInterface_GetById_Call) Return(_a0 *aibuilder.CustomLlm, _a1 error) *MockCustomLlmsInterface_GetById_Call
func (*MockCustomLlmsInterface_GetById_Call) Run ¶
func (_c *MockCustomLlmsInterface_GetById_Call) Run(run func(ctx context.Context, id string)) *MockCustomLlmsInterface_GetById_Call
func (*MockCustomLlmsInterface_GetById_Call) RunAndReturn ¶
func (_c *MockCustomLlmsInterface_GetById_Call) RunAndReturn(run func(context.Context, string) (*aibuilder.CustomLlm, error)) *MockCustomLlmsInterface_GetById_Call
type MockCustomLlmsInterface_Get_Call ¶
MockCustomLlmsInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockCustomLlmsInterface_Get_Call) Return ¶
func (_c *MockCustomLlmsInterface_Get_Call) Return(_a0 *aibuilder.CustomLlm, _a1 error) *MockCustomLlmsInterface_Get_Call
func (*MockCustomLlmsInterface_Get_Call) Run ¶
func (_c *MockCustomLlmsInterface_Get_Call) Run(run func(ctx context.Context, request aibuilder.GetCustomLlmRequest)) *MockCustomLlmsInterface_Get_Call
func (*MockCustomLlmsInterface_Get_Call) RunAndReturn ¶
func (_c *MockCustomLlmsInterface_Get_Call) RunAndReturn(run func(context.Context, aibuilder.GetCustomLlmRequest) (*aibuilder.CustomLlm, error)) *MockCustomLlmsInterface_Get_Call
type MockCustomLlmsInterface_Update_Call ¶
MockCustomLlmsInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockCustomLlmsInterface_Update_Call) Return ¶
func (_c *MockCustomLlmsInterface_Update_Call) Return(_a0 *aibuilder.CustomLlm, _a1 error) *MockCustomLlmsInterface_Update_Call
func (*MockCustomLlmsInterface_Update_Call) Run ¶
func (_c *MockCustomLlmsInterface_Update_Call) Run(run func(ctx context.Context, request aibuilder.UpdateCustomLlmRequest)) *MockCustomLlmsInterface_Update_Call
func (*MockCustomLlmsInterface_Update_Call) RunAndReturn ¶
func (_c *MockCustomLlmsInterface_Update_Call) RunAndReturn(run func(context.Context, aibuilder.UpdateCustomLlmRequest) (*aibuilder.CustomLlm, error)) *MockCustomLlmsInterface_Update_Call