mocks

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mocks contains Mockery-generated doubles for puboci.StateReader.

Generated files are produced by `mockery` from .mockery.yml. Do not edit them by hand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContentPusher

type MockContentPusher struct {
	mock.Mock
}

MockContentPusher is an autogenerated mock type for the ContentPusher type

func NewMockContentPusher

func NewMockContentPusher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockContentPusher

NewMockContentPusher creates a new instance of MockContentPusher. 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 (*MockContentPusher) EXPECT

func (*MockContentPusher) PushBlob

func (_mock *MockContentPusher) PushBlob(ctx context.Context, image puboci.Image, descriptor puboci.Descriptor, content io.Reader) error

PushBlob provides a mock function for the type MockContentPusher

func (*MockContentPusher) PushManifest

func (_mock *MockContentPusher) PushManifest(ctx context.Context, image puboci.Image, descriptor puboci.Descriptor, content io.Reader) error

PushManifest provides a mock function for the type MockContentPusher

func (*MockContentPusher) Verify

func (_mock *MockContentPusher) Verify(ctx context.Context, ref puboci.DigestRef) error

Verify provides a mock function for the type MockContentPusher

type MockContentPusher_Expecter

type MockContentPusher_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockContentPusher_Expecter) PushBlob

func (_e *MockContentPusher_Expecter) PushBlob(ctx any, image any, descriptor any, content any) *MockContentPusher_PushBlob_Call

PushBlob is a helper method to define mock.On call

  • ctx context.Context
  • image puboci.Image
  • descriptor puboci.Descriptor
  • content io.Reader

func (*MockContentPusher_Expecter) PushManifest

func (_e *MockContentPusher_Expecter) PushManifest(ctx any, image any, descriptor any, content any) *MockContentPusher_PushManifest_Call

PushManifest is a helper method to define mock.On call

  • ctx context.Context
  • image puboci.Image
  • descriptor puboci.Descriptor
  • content io.Reader

func (*MockContentPusher_Expecter) Verify

Verify is a helper method to define mock.On call

  • ctx context.Context
  • ref puboci.DigestRef

type MockContentPusher_PushBlob_Call

type MockContentPusher_PushBlob_Call struct {
	*mock.Call
}

MockContentPusher_PushBlob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushBlob'

func (*MockContentPusher_PushBlob_Call) Return

func (*MockContentPusher_PushBlob_Call) Run

func (*MockContentPusher_PushBlob_Call) RunAndReturn

func (_c *MockContentPusher_PushBlob_Call) RunAndReturn(run func(ctx context.Context, image puboci.Image, descriptor puboci.Descriptor, content io.Reader) error) *MockContentPusher_PushBlob_Call

type MockContentPusher_PushManifest_Call

type MockContentPusher_PushManifest_Call struct {
	*mock.Call
}

MockContentPusher_PushManifest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PushManifest'

func (*MockContentPusher_PushManifest_Call) Return

func (*MockContentPusher_PushManifest_Call) Run

func (*MockContentPusher_PushManifest_Call) RunAndReturn

type MockContentPusher_Verify_Call

type MockContentPusher_Verify_Call struct {
	*mock.Call
}

MockContentPusher_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'

func (*MockContentPusher_Verify_Call) Return

func (*MockContentPusher_Verify_Call) Run

func (*MockContentPusher_Verify_Call) RunAndReturn

type MockStateReader

type MockStateReader struct {
	mock.Mock
}

MockStateReader is an autogenerated mock type for the StateReader type

func NewMockStateReader

func NewMockStateReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStateReader

NewMockStateReader creates a new instance of MockStateReader. 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 (*MockStateReader) EXPECT

func (*MockStateReader) Resolve

func (_mock *MockStateReader) Resolve(ctx context.Context, ref puboci.Reference) (rel.Digest, error)

Resolve provides a mock function for the type MockStateReader

func (*MockStateReader) Version

func (_mock *MockStateReader) Version(ctx context.Context, ref puboci.Reference) (rel.Version, error)

Version provides a mock function for the type MockStateReader

type MockStateReader_Expecter

type MockStateReader_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockStateReader_Expecter) Resolve

Resolve is a helper method to define mock.On call

  • ctx context.Context
  • ref puboci.Reference

func (*MockStateReader_Expecter) Version

Version is a helper method to define mock.On call

  • ctx context.Context
  • ref puboci.Reference

type MockStateReader_Resolve_Call

type MockStateReader_Resolve_Call struct {
	*mock.Call
}

MockStateReader_Resolve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Resolve'

func (*MockStateReader_Resolve_Call) Return

func (*MockStateReader_Resolve_Call) Run

func (*MockStateReader_Resolve_Call) RunAndReturn

type MockStateReader_Version_Call

type MockStateReader_Version_Call struct {
	*mock.Call
}

MockStateReader_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'

func (*MockStateReader_Version_Call) Return

func (*MockStateReader_Version_Call) Run

func (*MockStateReader_Version_Call) RunAndReturn

type MockTagCommitter

type MockTagCommitter struct {
	mock.Mock
}

MockTagCommitter is an autogenerated mock type for the TagCommitter type

func NewMockTagCommitter

func NewMockTagCommitter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTagCommitter

NewMockTagCommitter creates a new instance of MockTagCommitter. 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 (*MockTagCommitter) Commit

func (_mock *MockTagCommitter) Commit(ctx context.Context, image puboci.Image, digest rel.Digest, tags []rel.Tag) error

Commit provides a mock function for the type MockTagCommitter

func (*MockTagCommitter) EXPECT

type MockTagCommitter_Commit_Call

type MockTagCommitter_Commit_Call struct {
	*mock.Call
}

MockTagCommitter_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*MockTagCommitter_Commit_Call) Return

func (*MockTagCommitter_Commit_Call) Run

func (_c *MockTagCommitter_Commit_Call) Run(run func(ctx context.Context, image puboci.Image, digest rel.Digest, tags []rel.Tag)) *MockTagCommitter_Commit_Call

func (*MockTagCommitter_Commit_Call) RunAndReturn

func (_c *MockTagCommitter_Commit_Call) RunAndReturn(run func(ctx context.Context, image puboci.Image, digest rel.Digest, tags []rel.Tag) error) *MockTagCommitter_Commit_Call

type MockTagCommitter_Expecter

type MockTagCommitter_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockTagCommitter_Expecter) Commit

func (_e *MockTagCommitter_Expecter) Commit(ctx any, image any, digest any, tags any) *MockTagCommitter_Commit_Call

Commit is a helper method to define mock.On call

  • ctx context.Context
  • image puboci.Image
  • digest rel.Digest
  • tags []rel.Tag

Jump to

Keyboard shortcuts

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