Documentation
¶
Index ¶
- type DAO
- func (_m *DAO) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *DAO) Create(ctx context.Context, label *model.Label) (int64, error)
- func (_m *DAO) CreateReference(ctx context.Context, reference *model.Reference) (int64, error)
- func (_m *DAO) Delete(ctx context.Context, id int64) error
- func (_m *DAO) DeleteReference(ctx context.Context, id int64) error
- func (_m *DAO) DeleteReferences(ctx context.Context, query *q.Query) (int64, error)
- func (_m *DAO) Get(ctx context.Context, id int64) (*model.Label, error)
- func (_m *DAO) List(ctx context.Context, query *q.Query) ([]*model.Label, error)
- func (_m *DAO) ListByArtifact(ctx context.Context, artifactID int64) ([]*model.Label, error)
- func (_m *DAO) Update(ctx context.Context, label *model.Label) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DAO ¶
DAO is an autogenerated mock type for the DAO type
func NewDAO ¶
NewDAO creates a new instance of DAO. 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 (*DAO) CreateReference ¶
CreateReference provides a mock function with given fields: ctx, reference
func (*DAO) DeleteReference ¶
DeleteReference provides a mock function with given fields: ctx, id
func (*DAO) DeleteReferences ¶
DeleteReferences provides a mock function with given fields: ctx, query
func (*DAO) ListByArtifact ¶
ListByArtifact provides a mock function with given fields: ctx, artifactID
Click to show internal directories.
Click to hide internal directories.