Documentation
¶
Index ¶
- type RuleRepositoryMock
- func (_m *RuleRepositoryMock) Commit(ctx context.Context) error
- func (_m *RuleRepositoryMock) Get(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, ...) ([]domain.Rule, error)
- func (_m *RuleRepositoryMock) Migrate() error
- func (_m *RuleRepositoryMock) Rollback(ctx context.Context) error
- func (_m *RuleRepositoryMock) Upsert(_a0 context.Context, _a1 *domain.Rule) error
- func (_m *RuleRepositoryMock) WithTransaction(ctx context.Context) context.Context
- type Service
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuleRepositoryMock ¶
RuleRepositoryMock is an autogenerated mock type for the RuleRepositoryMock type
func (*RuleRepositoryMock) Commit ¶ added in v0.4.0
func (_m *RuleRepositoryMock) Commit(ctx context.Context) error
Commit provides a mock function with given fields: ctx
func (*RuleRepositoryMock) Get ¶
func (_m *RuleRepositoryMock) Get(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string, _a5 uint64) ([]domain.Rule, error)
Get provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5
func (*RuleRepositoryMock) Migrate ¶
func (_m *RuleRepositoryMock) Migrate() error
Migrate provides a mock function with given fields:
func (*RuleRepositoryMock) Rollback ¶ added in v0.4.0
func (_m *RuleRepositoryMock) Rollback(ctx context.Context) error
Rollback provides a mock function with given fields: ctx
func (*RuleRepositoryMock) WithTransaction ¶ added in v0.4.0
func (_m *RuleRepositoryMock) WithTransaction(ctx context.Context) context.Context
WithTransaction provides a mock function with given fields: ctx
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service handles business logic
func NewService ¶
func NewService( repository store.RuleRepository, templateService domain.TemplatesService, namespaceService domain.NamespaceService, providerService domain.ProviderService, ) *Service
NewService returns repository struct
Click to show internal directories.
Click to hide internal directories.