Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) Close()
- func (_m *Repository) CreateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
- func (_m *Repository) CreateTier(ctx context.Context, tier *model.Tier) (*model.Tier, error)
- func (_m *Repository) DeleteBackend(ctx context.Context, id string) error
- func (_m *Repository) DeleteTier(ctx context.Context, id string) error
- func (_m *Repository) GetBackend(ctx context.Context, id string) (*model.Backend, error)
- func (_m *Repository) GetTier(ctx context.Context, id string) (*model.Tier, error)
- func (_m *Repository) ListBackend(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Backend, error)
- func (_m *Repository) ListTiers(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Tier, error)
- func (_m *Repository) UpdateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
- func (_m *Repository) UpdateTier(ctx context.Context, tier *model.Tier) (*model.Tier, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) Close ¶
func (_m *Repository) Close()
Close provides a mock function with given fields:
func (*Repository) CreateBackend ¶
func (_m *Repository) CreateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
CreateBackend provides a mock function with given fields: ctx, backend
func (*Repository) CreateTier ¶ added in v1.3.1
CreateTier provides a mock function with given fields: ctx, tier
func (*Repository) DeleteBackend ¶
func (_m *Repository) DeleteBackend(ctx context.Context, id string) error
DeleteBackend provides a mock function with given fields: ctx, id
func (*Repository) DeleteTier ¶ added in v1.3.1
func (_m *Repository) DeleteTier(ctx context.Context, id string) error
DeleteTier provides a mock function with given fields: ctx, id
func (*Repository) GetBackend ¶
GetBackend provides a mock function with given fields: ctx, id
func (*Repository) GetTier ¶ added in v1.3.1
GetTier provides a mock function with given fields: ctx, id
func (*Repository) ListBackend ¶
func (_m *Repository) ListBackend(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Backend, error)
ListBackend provides a mock function with given fields: ctx, limit, offset, query
func (*Repository) ListTiers ¶ added in v1.3.1
func (_m *Repository) ListTiers(ctx context.Context, limit int, offset int, query interface{}) ([]*model.Tier, error)
ListTiers provides a mock function with given fields: ctx, limit, offset
func (*Repository) UpdateBackend ¶
func (_m *Repository) UpdateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error)
UpdateBackend provides a mock function with given fields: ctx, backend
func (*Repository) UpdateTier ¶ added in v1.3.1
UpdateTier provides a mock function with given fields: ctx, tier