Debian Codegraph @

internal/testing/mocks/image_reference.go

raw
1 package mocks
2
3 import (
4 "context"
5
6 "go.podman.io/image/v5/docker/reference"
7 "go.podman.io/image/v5/types"
8 )
9
10 // ForbiddenImageReference is used when we don’t expect the ImageReference to be used in our tests.
11 type ForbiddenImageReference struct{}
12
13 // Transport is a mock that panics.
14 func (ref ForbiddenImageReference) Transport() types.ImageTransport {
15 panic("unexpected call to a mock function")
16 }
17
18 // StringWithinTransport is a mock that panics.
19 func (ref ForbiddenImageReference) StringWithinTransport() string {
20 panic("unexpected call to a mock function")
21 }
22
23 // DockerReference is a mock that panics.
24 func (ref ForbiddenImageReference) DockerReference() reference.Named {
25 panic("unexpected call to a mock function")
26 }
27
28 // PolicyConfigurationIdentity is a mock that panics.
29 func (ref ForbiddenImageReference) PolicyConfigurationIdentity() string {
30 panic("unexpected call to a mock function")
31 }
32
33 // PolicyConfigurationNamespaces is a mock that panics.
34 func (ref ForbiddenImageReference) PolicyConfigurationNamespaces() []string {
35 panic("unexpected call to a mock function")
36 }
37
38 // NewImage is a mock that panics.
39 func (ref ForbiddenImageReference) NewImage(ctx context.Context, sys *types.SystemContext) (types.ImageCloser, error) {
40 panic("unexpected call to a mock function")
41 }
42
43 // NewImageSource is a mock that panics.
44 func (ref ForbiddenImageReference) NewImageSource(ctx context.Context, sys *types.SystemContext) (types.ImageSource, error) {
45 panic("unexpected call to a mock function")
46 }
47
48 // NewImageDestination is a mock that panics.
49 func (ref ForbiddenImageReference) NewImageDestination(ctx context.Context, sys *types.SystemContext) (types.ImageDestination, error) {
50 panic("unexpected call to a mock function")
51 }
52
53 // DeleteImage is a mock that panics.
54 func (ref ForbiddenImageReference) DeleteImage(ctx context.Context, sys *types.SystemContext) error {
55 panic("unexpected call to a mock function")
56 }