| 1 |
package mocks |
| 2 |
|
| 3 |
import ( |
| 4 |
"context" |
| 5 |
|
| 6 |
"go.podman.io/image/v5/internal/signature" |
| 7 |
"go.podman.io/image/v5/types" |
| 8 |
) |
| 9 |
|
| 10 |
// ForbiddenUnparsedImage is used when we don't expect the UnparsedImage to be used in our tests. |
| 11 |
type ForbiddenUnparsedImage struct{} |
| 12 |
|
| 13 |
// Reference is a mock that panics. |
| 14 |
func (ref ForbiddenUnparsedImage) Reference() types.ImageReference { |
| 15 |
panic("unexpected call to a mock function") |
| 16 |
} |
| 17 |
|
| 18 |
// Manifest is a mock that panics. |
| 19 |
func (ref ForbiddenUnparsedImage) Manifest(ctx context.Context) ([]byte, string, error) { |
| 20 |
panic("unexpected call to a mock function") |
| 21 |
} |
| 22 |
|
| 23 |
// Signatures is a mock that panics. |
| 24 |
func (ref ForbiddenUnparsedImage) Signatures(context.Context) ([][]byte, error) { |
| 25 |
panic("unexpected call to a mock function") |
| 26 |
} |
| 27 |
|
| 28 |
// UntrustedSignatures is a mock that panics. |
| 29 |
func (ref ForbiddenUnparsedImage) UntrustedSignatures(ctx context.Context) ([]signature.Signature, error) { |
| 30 |
panic("unexpected call to a mock function") |
| 31 |
} |