File: unparsed_image.go

package info (click to toggle)
golang-github-containers-image 5.28.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,104 kB
  • sloc: sh: 194; makefile: 73
file content (31 lines) | stat: -rw-r--r-- 962 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package mocks

import (
	"context"

	"github.com/containers/image/v5/internal/signature"
	"github.com/containers/image/v5/types"
)

// ForbiddenUnparsedImage is used when we don't expect the UnparsedImage to be used in our tests.
type ForbiddenUnparsedImage struct{}

// Reference is a mock that panics.
func (ref ForbiddenUnparsedImage) Reference() types.ImageReference {
	panic("unexpected call to a mock function")
}

// Manifest is a mock that panics.
func (ref ForbiddenUnparsedImage) Manifest(ctx context.Context) ([]byte, string, error) {
	panic("unexpected call to a mock function")
}

// Signatures is a mock that panics.
func (ref ForbiddenUnparsedImage) Signatures(context.Context) ([][]byte, error) {
	panic("unexpected call to a mock function")
}

// UntrustedSignatures is a mock that panics.
func (ref ForbiddenUnparsedImage) UntrustedSignatures(ctx context.Context) ([]signature.Signature, error) {
	panic("unexpected call to a mock function")
}