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 ¶
- type MockContentPusher
- func (_m *MockContentPusher) EXPECT() *MockContentPusher_Expecter
- func (_mock *MockContentPusher) PushBlob(ctx context.Context, image puboci.Image, descriptor puboci.Descriptor, ...) error
- func (_mock *MockContentPusher) PushManifest(ctx context.Context, image puboci.Image, descriptor puboci.Descriptor, ...) error
- func (_mock *MockContentPusher) Verify(ctx context.Context, ref puboci.DigestRef) error
- type MockContentPusher_Expecter
- func (_e *MockContentPusher_Expecter) PushBlob(ctx any, image any, descriptor any, content any) *MockContentPusher_PushBlob_Call
- func (_e *MockContentPusher_Expecter) PushManifest(ctx any, image any, descriptor any, content any) *MockContentPusher_PushManifest_Call
- func (_e *MockContentPusher_Expecter) Verify(ctx any, ref any) *MockContentPusher_Verify_Call
- type MockContentPusher_PushBlob_Call
- type MockContentPusher_PushManifest_Call
- type MockContentPusher_Verify_Call
- func (_c *MockContentPusher_Verify_Call) Return(err error) *MockContentPusher_Verify_Call
- func (_c *MockContentPusher_Verify_Call) Run(run func(ctx context.Context, ref puboci.DigestRef)) *MockContentPusher_Verify_Call
- func (_c *MockContentPusher_Verify_Call) RunAndReturn(run func(ctx context.Context, ref puboci.DigestRef) error) *MockContentPusher_Verify_Call
- type MockStateReader
- type MockStateReader_Expecter
- type MockStateReader_Resolve_Call
- func (_c *MockStateReader_Resolve_Call) Return(digest rel.Digest, err error) *MockStateReader_Resolve_Call
- func (_c *MockStateReader_Resolve_Call) Run(run func(ctx context.Context, ref puboci.Reference)) *MockStateReader_Resolve_Call
- func (_c *MockStateReader_Resolve_Call) RunAndReturn(run func(ctx context.Context, ref puboci.Reference) (rel.Digest, error)) *MockStateReader_Resolve_Call
- type MockStateReader_Version_Call
- func (_c *MockStateReader_Version_Call) Return(version rel.Version, err error) *MockStateReader_Version_Call
- func (_c *MockStateReader_Version_Call) Run(run func(ctx context.Context, ref puboci.Reference)) *MockStateReader_Version_Call
- func (_c *MockStateReader_Version_Call) RunAndReturn(run func(ctx context.Context, ref puboci.Reference) (rel.Version, error)) *MockStateReader_Version_Call
- type MockTagCommitter
- type MockTagCommitter_Commit_Call
- type MockTagCommitter_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContentPusher ¶
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 (_m *MockContentPusher) EXPECT() *MockContentPusher_Expecter
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
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 ¶
func (_e *MockContentPusher_Expecter) Verify(ctx any, ref any) *MockContentPusher_Verify_Call
Verify is a helper method to define mock.On call
- ctx context.Context
- ref puboci.DigestRef
type MockContentPusher_PushBlob_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 (_c *MockContentPusher_PushBlob_Call) Return(err error) *MockContentPusher_PushBlob_Call
func (*MockContentPusher_PushBlob_Call) Run ¶
func (_c *MockContentPusher_PushBlob_Call) Run(run func(ctx context.Context, image puboci.Image, descriptor puboci.Descriptor, content io.Reader)) *MockContentPusher_PushBlob_Call
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 ¶
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 (_c *MockContentPusher_PushManifest_Call) Return(err error) *MockContentPusher_PushManifest_Call
func (*MockContentPusher_PushManifest_Call) Run ¶
func (_c *MockContentPusher_PushManifest_Call) Run(run func(ctx context.Context, image puboci.Image, descriptor puboci.Descriptor, content io.Reader)) *MockContentPusher_PushManifest_Call
func (*MockContentPusher_PushManifest_Call) RunAndReturn ¶
func (_c *MockContentPusher_PushManifest_Call) RunAndReturn(run func(ctx context.Context, image puboci.Image, descriptor puboci.Descriptor, content io.Reader) error) *MockContentPusher_PushManifest_Call
type MockContentPusher_Verify_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 (_c *MockContentPusher_Verify_Call) Return(err error) *MockContentPusher_Verify_Call
func (*MockContentPusher_Verify_Call) Run ¶
func (_c *MockContentPusher_Verify_Call) Run(run func(ctx context.Context, ref puboci.DigestRef)) *MockContentPusher_Verify_Call
func (*MockContentPusher_Verify_Call) RunAndReturn ¶
func (_c *MockContentPusher_Verify_Call) RunAndReturn(run func(ctx context.Context, ref puboci.DigestRef) error) *MockContentPusher_Verify_Call
type MockStateReader ¶
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 (_m *MockStateReader) EXPECT() *MockStateReader_Expecter
type MockStateReader_Expecter ¶
type MockStateReader_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStateReader_Expecter) Resolve ¶
func (_e *MockStateReader_Expecter) Resolve(ctx any, ref any) *MockStateReader_Resolve_Call
Resolve is a helper method to define mock.On call
- ctx context.Context
- ref puboci.Reference
func (*MockStateReader_Expecter) Version ¶
func (_e *MockStateReader_Expecter) Version(ctx any, ref any) *MockStateReader_Version_Call
Version is a helper method to define mock.On call
- ctx context.Context
- ref puboci.Reference
type MockStateReader_Resolve_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 (_c *MockStateReader_Resolve_Call) Return(digest rel.Digest, err error) *MockStateReader_Resolve_Call
func (*MockStateReader_Resolve_Call) Run ¶
func (_c *MockStateReader_Resolve_Call) Run(run func(ctx context.Context, ref puboci.Reference)) *MockStateReader_Resolve_Call
func (*MockStateReader_Resolve_Call) RunAndReturn ¶
func (_c *MockStateReader_Resolve_Call) RunAndReturn(run func(ctx context.Context, ref puboci.Reference) (rel.Digest, error)) *MockStateReader_Resolve_Call
type MockStateReader_Version_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 (_c *MockStateReader_Version_Call) Return(version rel.Version, err error) *MockStateReader_Version_Call
func (*MockStateReader_Version_Call) Run ¶
func (_c *MockStateReader_Version_Call) Run(run func(ctx context.Context, ref puboci.Reference)) *MockStateReader_Version_Call
func (*MockStateReader_Version_Call) RunAndReturn ¶
func (_c *MockStateReader_Version_Call) RunAndReturn(run func(ctx context.Context, ref puboci.Reference) (rel.Version, error)) *MockStateReader_Version_Call
type MockTagCommitter ¶
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 ¶
func (_m *MockTagCommitter) EXPECT() *MockTagCommitter_Expecter
type MockTagCommitter_Commit_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 (_c *MockTagCommitter_Commit_Call) Return(err error) *MockTagCommitter_Commit_Call
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 ¶
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