Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockAutoOpsRuleStorage
- func (m *MockAutoOpsRuleStorage) CreateAutoOpsRule(ctx context.Context, e *domain.AutoOpsRule, environmentNamespace string) error
- func (m *MockAutoOpsRuleStorage) EXPECT() *MockAutoOpsRuleStorageMockRecorder
- func (m *MockAutoOpsRuleStorage) GetAutoOpsRule(ctx context.Context, id, environmentNamespace string) (*domain.AutoOpsRule, error)
- func (m *MockAutoOpsRuleStorage) ListAutoOpsRules(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, ...) ([]*autoops.AutoOpsRule, int, error)
- func (m *MockAutoOpsRuleStorage) UpdateAutoOpsRule(ctx context.Context, e *domain.AutoOpsRule, environmentNamespace string) error
- type MockAutoOpsRuleStorageMockRecorder
- func (mr *MockAutoOpsRuleStorageMockRecorder) CreateAutoOpsRule(ctx, e, environmentNamespace interface{}) *gomock.Call
- func (mr *MockAutoOpsRuleStorageMockRecorder) GetAutoOpsRule(ctx, id, environmentNamespace interface{}) *gomock.Call
- func (mr *MockAutoOpsRuleStorageMockRecorder) ListAutoOpsRules(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
- func (mr *MockAutoOpsRuleStorageMockRecorder) UpdateAutoOpsRule(ctx, e, environmentNamespace interface{}) *gomock.Call
- type MockWebhookStorage
- func (m *MockWebhookStorage) CreateWebhook(ctx context.Context, webhook *domain.Webhook, environmentNamespace string) error
- func (m *MockWebhookStorage) DeleteWebhook(ctx context.Context, id, environmentNamespace string) error
- func (m *MockWebhookStorage) EXPECT() *MockWebhookStorageMockRecorder
- func (m *MockWebhookStorage) GetWebhook(ctx context.Context, id, environmentNamespace string) (*domain.Webhook, error)
- func (m *MockWebhookStorage) ListWebhooks(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, ...) ([]*autoops.Webhook, int, int64, error)
- func (m *MockWebhookStorage) UpdateWebhook(ctx context.Context, webhook *domain.Webhook, environmentNamespace string) error
- type MockWebhookStorageMockRecorder
- func (mr *MockWebhookStorageMockRecorder) CreateWebhook(ctx, webhook, environmentNamespace interface{}) *gomock.Call
- func (mr *MockWebhookStorageMockRecorder) DeleteWebhook(ctx, id, environmentNamespace interface{}) *gomock.Call
- func (mr *MockWebhookStorageMockRecorder) GetWebhook(ctx, id, environmentNamespace interface{}) *gomock.Call
- func (mr *MockWebhookStorageMockRecorder) ListWebhooks(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
- func (mr *MockWebhookStorageMockRecorder) UpdateWebhook(ctx, webhook, environmentNamespace interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAutoOpsRuleStorage ¶
type MockAutoOpsRuleStorage struct {
// contains filtered or unexported fields
}
MockAutoOpsRuleStorage is a mock of AutoOpsRuleStorage interface.
func NewMockAutoOpsRuleStorage ¶
func NewMockAutoOpsRuleStorage(ctrl *gomock.Controller) *MockAutoOpsRuleStorage
NewMockAutoOpsRuleStorage creates a new mock instance.
func (*MockAutoOpsRuleStorage) CreateAutoOpsRule ¶
func (m *MockAutoOpsRuleStorage) CreateAutoOpsRule(ctx context.Context, e *domain.AutoOpsRule, environmentNamespace string) error
CreateAutoOpsRule mocks base method.
func (*MockAutoOpsRuleStorage) EXPECT ¶
func (m *MockAutoOpsRuleStorage) EXPECT() *MockAutoOpsRuleStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAutoOpsRuleStorage) GetAutoOpsRule ¶
func (m *MockAutoOpsRuleStorage) GetAutoOpsRule(ctx context.Context, id, environmentNamespace string) (*domain.AutoOpsRule, error)
GetAutoOpsRule mocks base method.
func (*MockAutoOpsRuleStorage) ListAutoOpsRules ¶
func (m *MockAutoOpsRuleStorage) ListAutoOpsRules(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*autoops.AutoOpsRule, int, error)
ListAutoOpsRules mocks base method.
func (*MockAutoOpsRuleStorage) UpdateAutoOpsRule ¶
func (m *MockAutoOpsRuleStorage) UpdateAutoOpsRule(ctx context.Context, e *domain.AutoOpsRule, environmentNamespace string) error
UpdateAutoOpsRule mocks base method.
type MockAutoOpsRuleStorageMockRecorder ¶
type MockAutoOpsRuleStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockAutoOpsRuleStorageMockRecorder is the mock recorder for MockAutoOpsRuleStorage.
func (*MockAutoOpsRuleStorageMockRecorder) CreateAutoOpsRule ¶
func (mr *MockAutoOpsRuleStorageMockRecorder) CreateAutoOpsRule(ctx, e, environmentNamespace interface{}) *gomock.Call
CreateAutoOpsRule indicates an expected call of CreateAutoOpsRule.
func (*MockAutoOpsRuleStorageMockRecorder) GetAutoOpsRule ¶
func (mr *MockAutoOpsRuleStorageMockRecorder) GetAutoOpsRule(ctx, id, environmentNamespace interface{}) *gomock.Call
GetAutoOpsRule indicates an expected call of GetAutoOpsRule.
func (*MockAutoOpsRuleStorageMockRecorder) ListAutoOpsRules ¶
func (mr *MockAutoOpsRuleStorageMockRecorder) ListAutoOpsRules(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
ListAutoOpsRules indicates an expected call of ListAutoOpsRules.
func (*MockAutoOpsRuleStorageMockRecorder) UpdateAutoOpsRule ¶
func (mr *MockAutoOpsRuleStorageMockRecorder) UpdateAutoOpsRule(ctx, e, environmentNamespace interface{}) *gomock.Call
UpdateAutoOpsRule indicates an expected call of UpdateAutoOpsRule.
type MockWebhookStorage ¶
type MockWebhookStorage struct {
// contains filtered or unexported fields
}
MockWebhookStorage is a mock of WebhookStorage interface.
func NewMockWebhookStorage ¶
func NewMockWebhookStorage(ctrl *gomock.Controller) *MockWebhookStorage
NewMockWebhookStorage creates a new mock instance.
func (*MockWebhookStorage) CreateWebhook ¶
func (m *MockWebhookStorage) CreateWebhook(ctx context.Context, webhook *domain.Webhook, environmentNamespace string) error
CreateWebhook mocks base method.
func (*MockWebhookStorage) DeleteWebhook ¶
func (m *MockWebhookStorage) DeleteWebhook(ctx context.Context, id, environmentNamespace string) error
DeleteWebhook mocks base method.
func (*MockWebhookStorage) EXPECT ¶
func (m *MockWebhookStorage) EXPECT() *MockWebhookStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWebhookStorage) GetWebhook ¶
func (m *MockWebhookStorage) GetWebhook(ctx context.Context, id, environmentNamespace string) (*domain.Webhook, error)
GetWebhook mocks base method.
func (*MockWebhookStorage) ListWebhooks ¶
func (m *MockWebhookStorage) ListWebhooks(ctx context.Context, whereParts []mysql.WherePart, orders []*mysql.Order, limit, offset int) ([]*autoops.Webhook, int, int64, error)
ListWebhooks mocks base method.
func (*MockWebhookStorage) UpdateWebhook ¶
func (m *MockWebhookStorage) UpdateWebhook(ctx context.Context, webhook *domain.Webhook, environmentNamespace string) error
UpdateWebhook mocks base method.
type MockWebhookStorageMockRecorder ¶
type MockWebhookStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockWebhookStorageMockRecorder is the mock recorder for MockWebhookStorage.
func (*MockWebhookStorageMockRecorder) CreateWebhook ¶
func (mr *MockWebhookStorageMockRecorder) CreateWebhook(ctx, webhook, environmentNamespace interface{}) *gomock.Call
CreateWebhook indicates an expected call of CreateWebhook.
func (*MockWebhookStorageMockRecorder) DeleteWebhook ¶
func (mr *MockWebhookStorageMockRecorder) DeleteWebhook(ctx, id, environmentNamespace interface{}) *gomock.Call
DeleteWebhook indicates an expected call of DeleteWebhook.
func (*MockWebhookStorageMockRecorder) GetWebhook ¶
func (mr *MockWebhookStorageMockRecorder) GetWebhook(ctx, id, environmentNamespace interface{}) *gomock.Call
GetWebhook indicates an expected call of GetWebhook.
func (*MockWebhookStorageMockRecorder) ListWebhooks ¶
func (mr *MockWebhookStorageMockRecorder) ListWebhooks(ctx, whereParts, orders, limit, offset interface{}) *gomock.Call
ListWebhooks indicates an expected call of ListWebhooks.
func (*MockWebhookStorageMockRecorder) UpdateWebhook ¶
func (mr *MockWebhookStorageMockRecorder) UpdateWebhook(ctx, webhook, environmentNamespace interface{}) *gomock.Call
UpdateWebhook indicates an expected call of UpdateWebhook.