mocks

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVerifier

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

MockVerifier is a mock of Verifier interface.

func NewMockVerifier

func NewMockVerifier(ctrl *gomock.Controller) *MockVerifier

NewMockVerifier creates a new mock instance.

func (*MockVerifier) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVerifier) ResultFromBundle

func (m *MockVerifier) ResultFromBundle(bundle []byte, digest string) (*verifier.Result, error)

ResultFromBundle mocks base method.

func (*MockVerifier) VerifyBundleOffline

func (m *MockVerifier) VerifyBundleOffline(bundle []byte, digest string, expected *lockfile.Provenance) error

VerifyBundleOffline mocks base method.

func (*MockVerifier) VerifyBundleOfflineWithKey

func (m *MockVerifier) VerifyBundleOfflineWithKey(bundle []byte, imageRef, digest string, pubKeyPEM []byte) error

VerifyBundleOfflineWithKey mocks base method.

func (*MockVerifier) VerifyGit

func (m *MockVerifier) VerifyGit(ctx context.Context, payload, signature []byte, expected *lockfile.Provenance) (*verifier.Result, error)

VerifyGit mocks base method.

func (*MockVerifier) VerifyOCI

func (m *MockVerifier) VerifyOCI(ctx context.Context, imageRef, digest string, expected *lockfile.Provenance) (*verifier.Result, error)

VerifyOCI mocks base method.

func (*MockVerifier) VerifyOCIWithKey

func (m *MockVerifier) VerifyOCIWithKey(ctx context.Context, imageRef, digest string, pubKeyPEM []byte) (*verifier.Result, error)

VerifyOCIWithKey mocks base method.

type MockVerifierMockRecorder

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

MockVerifierMockRecorder is the mock recorder for MockVerifier.

func (*MockVerifierMockRecorder) ResultFromBundle

func (mr *MockVerifierMockRecorder) ResultFromBundle(bundle, digest any) *gomock.Call

ResultFromBundle indicates an expected call of ResultFromBundle.

func (*MockVerifierMockRecorder) VerifyBundleOffline

func (mr *MockVerifierMockRecorder) VerifyBundleOffline(bundle, digest, expected any) *gomock.Call

VerifyBundleOffline indicates an expected call of VerifyBundleOffline.

func (*MockVerifierMockRecorder) VerifyBundleOfflineWithKey

func (mr *MockVerifierMockRecorder) VerifyBundleOfflineWithKey(bundle, imageRef, digest, pubKeyPEM any) *gomock.Call

VerifyBundleOfflineWithKey indicates an expected call of VerifyBundleOfflineWithKey.

func (*MockVerifierMockRecorder) VerifyGit

func (mr *MockVerifierMockRecorder) VerifyGit(ctx, payload, signature, expected any) *gomock.Call

VerifyGit indicates an expected call of VerifyGit.

func (*MockVerifierMockRecorder) VerifyOCI

func (mr *MockVerifierMockRecorder) VerifyOCI(ctx, imageRef, digest, expected any) *gomock.Call

VerifyOCI indicates an expected call of VerifyOCI.

func (*MockVerifierMockRecorder) VerifyOCIWithKey

func (mr *MockVerifierMockRecorder) VerifyOCIWithKey(ctx, imageRef, digest, pubKeyPEM any) *gomock.Call

VerifyOCIWithKey indicates an expected call of VerifyOCIWithKey.

Jump to

Keyboard shortcuts

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