artifact

package
v0.0.0-...-cc6ace1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	mock.Mock
}

Controller is an autogenerated mock type for the Controller type

func NewController

func NewController(t interface {
	mock.TestingT
	Cleanup(func())
}) *Controller

NewController creates a new instance of Controller. 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 (*Controller) AddLabel

func (_m *Controller) AddLabel(ctx context.Context, artifactID int64, labelID int64) error

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

func (*Controller) Copy

func (_m *Controller) Copy(ctx context.Context, srcRepo string, reference string, dstRepo string) (int64, error)

Copy provides a mock function with given fields: ctx, srcRepo, reference, dstRepo

func (*Controller) Count

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

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

func (*Controller) Delete

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

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

func (*Controller) Ensure

func (_m *Controller) Ensure(ctx context.Context, repository string, digest string, option *artifact.ArtOption) (bool, int64, error)

Ensure provides a mock function with given fields: ctx, repository, digest, option

func (*Controller) Get

func (_m *Controller) Get(ctx context.Context, id int64, option *artifact.Option) (*artifact.Artifact, error)

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

func (*Controller) GetAddition

func (_m *Controller) GetAddition(ctx context.Context, artifactID int64, additionType string) (*processor.Addition, error)

GetAddition provides a mock function with given fields: ctx, artifactID, additionType

func (*Controller) GetByReference

func (_m *Controller) GetByReference(ctx context.Context, repository string, reference string, option *artifact.Option) (*artifact.Artifact, error)

GetByReference provides a mock function with given fields: ctx, repository, reference, option

func (*Controller) HasUnscannableLayer

func (_m *Controller) HasUnscannableLayer(ctx context.Context, dgst string) (bool, error)

HasUnscannableLayer provides a mock function with given fields: ctx, dgst

func (*Controller) List

func (_m *Controller) List(ctx context.Context, query *q.Query, option *artifact.Option) ([]*artifact.Artifact, error)

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

func (*Controller) ListWithLatest

func (_m *Controller) ListWithLatest(ctx context.Context, query *q.Query, option *artifact.Option) ([]*artifact.Artifact, error)

ListWithLatest provides a mock function with given fields: ctx, query, option

func (*Controller) RemoveLabel

func (_m *Controller) RemoveLabel(ctx context.Context, artifactID int64, labelID int64) error

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

func (*Controller) UpdatePullTime

func (_m *Controller) UpdatePullTime(ctx context.Context, artifactID int64, tagID int64, _a3 time.Time) error

UpdatePullTime provides a mock function with given fields: ctx, artifactID, tagID, _a3

func (*Controller) Walk

func (_m *Controller) Walk(ctx context.Context, root *artifact.Artifact, walkFn func(*artifact.Artifact) error, option *artifact.Option) error

Walk provides a mock function with given fields: ctx, root, walkFn, option

Jump to

Keyboard shortcuts

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