artifactrash

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 3 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) Create

func (_m *Manager) Create(ctx context.Context, artifactrsh *model.ArtifactTrash) (int64, error)

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

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

func (_m *Manager) Filter(ctx context.Context, timeWindow int64) ([]model.ArtifactTrash, error)

Filter provides a mock function with given fields: ctx, timeWindow

func (*Manager) Flush

func (_m *Manager) Flush(ctx context.Context, timeWindow int64) error

Flush provides a mock function with given fields: ctx, timeWindow

Jump to

Keyboard shortcuts

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