label

package
v0.0.0-...-fba4c40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

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) AddTo

func (_m *Manager) AddTo(ctx context.Context, labelID int64, artifactID int64) error

AddTo provides a mock function with given fields: ctx, labelID, artifactID

func (*Manager) Count

func (_m *Manager) Count(ctx context.Context, query *q.Query) (int64, error)

Count provides a mock function with given fields: ctx, query

func (*Manager) Create

func (_m *Manager) Create(ctx context.Context, _a1 *model.Label) (int64, error)

Create provides a mock function with given fields: ctx, _a1

func (*Manager) Delete

func (_m *Manager) Delete(ctx context.Context, id int64) error

Delete provides a mock function with given fields: ctx, id

func (*Manager) Get

func (_m *Manager) Get(ctx context.Context, id int64) (*model.Label, error)

Get provides a mock function with given fields: ctx, id

func (*Manager) List

func (_m *Manager) List(ctx context.Context, query *q.Query) ([]*model.Label, error)

List provides a mock function with given fields: ctx, query

func (*Manager) ListByArtifact

func (_m *Manager) ListByArtifact(ctx context.Context, artifactID int64) ([]*model.Label, error)

ListByArtifact provides a mock function with given fields: ctx, artifactID

func (*Manager) RemoveAllFrom

func (_m *Manager) RemoveAllFrom(ctx context.Context, artifactID int64) error

RemoveAllFrom provides a mock function with given fields: ctx, artifactID

func (*Manager) RemoveFrom

func (_m *Manager) RemoveFrom(ctx context.Context, labelID int64, artifactID int64) error

RemoveFrom provides a mock function with given fields: ctx, labelID, artifactID

func (*Manager) RemoveFromAllArtifacts

func (_m *Manager) RemoveFromAllArtifacts(ctx context.Context, labelID int64) error

RemoveFromAllArtifacts provides a mock function with given fields: ctx, labelID

func (*Manager) Update

func (_m *Manager) Update(ctx context.Context, _a1 *model.Label) error

Update provides a mock function with given fields: ctx, _a1

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL