Documentation ¶
Index ¶
- type Manager
- func (_m *Manager) Count(ctx context.Context, query *q.Query) (int64, error)
- func (_m *Manager) Create(ctx context.Context, _a1 *artifact.Artifact) (int64, error)
- func (_m *Manager) Delete(ctx context.Context, id int64) error
- func (_m *Manager) DeleteReference(ctx context.Context, id int64) error
- func (_m *Manager) Get(ctx context.Context, id int64) (*artifact.Artifact, error)
- func (_m *Manager) GetByDigest(ctx context.Context, repository string, digest string) (*artifact.Artifact, error)
- func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*artifact.Artifact, error)
- func (_m *Manager) ListReferences(ctx context.Context, query *q.Query) ([]*artifact.Reference, error)
- func (_m *Manager) ListWithLatest(ctx context.Context, query *q.Query) ([]*artifact.Artifact, error)
- func (_m *Manager) Update(ctx context.Context, _a1 *artifact.Artifact, props ...string) error
- func (_m *Manager) UpdatePullTime(ctx context.Context, id int64, pullTime time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. 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 (*Manager) DeleteReference ¶
DeleteReference provides a mock function with given fields: ctx, id
func (*Manager) GetByDigest ¶
func (_m *Manager) GetByDigest(ctx context.Context, repository string, digest string) (*artifact.Artifact, error)
GetByDigest provides a mock function with given fields: ctx, repository, digest
func (*Manager) ListReferences ¶
func (_m *Manager) ListReferences(ctx context.Context, query *q.Query) ([]*artifact.Reference, error)
ListReferences provides a mock function with given fields: ctx, query
func (*Manager) ListWithLatest ¶
func (_m *Manager) ListWithLatest(ctx context.Context, query *q.Query) ([]*artifact.Artifact, error)
ListWithLatest provides a mock function with given fields: ctx, query
Click to show internal directories.
Click to hide internal directories.