Documentation ¶
Index ¶
- type ForbiddenImageReference
- func (ref ForbiddenImageReference) DeleteImage(ctx context.Context, sys *types.SystemContext) error
- func (ref ForbiddenImageReference) DockerReference() reference.Named
- func (ref ForbiddenImageReference) NewImage(ctx context.Context, sys *types.SystemContext) (types.ImageCloser, error)
- func (ref ForbiddenImageReference) NewImageDestination(ctx context.Context, sys *types.SystemContext) (types.ImageDestination, error)
- func (ref ForbiddenImageReference) NewImageSource(ctx context.Context, sys *types.SystemContext) (types.ImageSource, error)
- func (ref ForbiddenImageReference) PolicyConfigurationIdentity() string
- func (ref ForbiddenImageReference) PolicyConfigurationNamespaces() []string
- func (ref ForbiddenImageReference) StringWithinTransport() string
- func (ref ForbiddenImageReference) Transport() types.ImageTransport
- type ForbiddenImageSource
- func (f ForbiddenImageSource) Close() error
- func (f ForbiddenImageSource) GetBlob(context.Context, types.BlobInfo, types.BlobInfoCache) (io.ReadCloser, int64, error)
- func (f ForbiddenImageSource) GetManifest(context.Context, *digest.Digest) ([]byte, string, error)
- func (f ForbiddenImageSource) GetSignatures(context.Context, *digest.Digest) ([][]byte, error)
- func (f ForbiddenImageSource) HasThreadSafeGetBlob() bool
- func (f ForbiddenImageSource) LayerInfosForCopy(context.Context, *digest.Digest) ([]types.BlobInfo, error)
- func (f ForbiddenImageSource) Reference() types.ImageReference
- type ForbiddenUnparsedImage
- func (ref ForbiddenUnparsedImage) Manifest(ctx context.Context) ([]byte, string, error)
- func (ref ForbiddenUnparsedImage) Reference() types.ImageReference
- func (ref ForbiddenUnparsedImage) Signatures(context.Context) ([][]byte, error)
- func (ref ForbiddenUnparsedImage) UntrustedSignatures(ctx context.Context) ([]signature.Signature, error)
- type NameImageTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForbiddenImageReference ¶ added in v5.22.0
type ForbiddenImageReference struct{}
ForbiddenImageReference is used when we don’t expect the ImageReference to be used in our tests.
func (ForbiddenImageReference) DeleteImage ¶ added in v5.22.0
func (ref ForbiddenImageReference) DeleteImage(ctx context.Context, sys *types.SystemContext) error
DeleteImage is a mock that panics.
func (ForbiddenImageReference) DockerReference ¶ added in v5.22.0
func (ref ForbiddenImageReference) DockerReference() reference.Named
DockerReference is a mock that panics.
func (ForbiddenImageReference) NewImage ¶ added in v5.22.0
func (ref ForbiddenImageReference) NewImage(ctx context.Context, sys *types.SystemContext) (types.ImageCloser, error)
NewImage is a mock that panics.
func (ForbiddenImageReference) NewImageDestination ¶ added in v5.22.0
func (ref ForbiddenImageReference) NewImageDestination(ctx context.Context, sys *types.SystemContext) (types.ImageDestination, error)
NewImageDestination is a mock that panics.
func (ForbiddenImageReference) NewImageSource ¶ added in v5.22.0
func (ref ForbiddenImageReference) NewImageSource(ctx context.Context, sys *types.SystemContext) (types.ImageSource, error)
NewImageSource is a mock that panics.
func (ForbiddenImageReference) PolicyConfigurationIdentity ¶ added in v5.22.0
func (ref ForbiddenImageReference) PolicyConfigurationIdentity() string
PolicyConfigurationIdentity is a mock that panics.
func (ForbiddenImageReference) PolicyConfigurationNamespaces ¶ added in v5.22.0
func (ref ForbiddenImageReference) PolicyConfigurationNamespaces() []string
PolicyConfigurationNamespaces is a mock that panics.
func (ForbiddenImageReference) StringWithinTransport ¶ added in v5.22.0
func (ref ForbiddenImageReference) StringWithinTransport() string
StringWithinTransport is a mock that panics.
func (ForbiddenImageReference) Transport ¶ added in v5.22.0
func (ref ForbiddenImageReference) Transport() types.ImageTransport
Transport is a mock that panics.
type ForbiddenImageSource ¶ added in v5.22.0
type ForbiddenImageSource struct{}
ForbiddenImageSource is used when we don't expect the ImageSource to be used in our tests.
func (ForbiddenImageSource) Close ¶ added in v5.22.0
func (f ForbiddenImageSource) Close() error
Close is a mock that panics.
func (ForbiddenImageSource) GetBlob ¶ added in v5.22.0
func (f ForbiddenImageSource) GetBlob(context.Context, types.BlobInfo, types.BlobInfoCache) (io.ReadCloser, int64, error)
GetBlob is a mock that panics.
func (ForbiddenImageSource) GetManifest ¶ added in v5.22.0
GetManifest is a mock that panics.
func (ForbiddenImageSource) GetSignatures ¶ added in v5.22.0
func (f ForbiddenImageSource) GetSignatures(context.Context, *digest.Digest) ([][]byte, error)
GetSignatures is a mock that panics.
func (ForbiddenImageSource) HasThreadSafeGetBlob ¶ added in v5.22.0
func (f ForbiddenImageSource) HasThreadSafeGetBlob() bool
HasThreadSafeGetBlob is a mock that panics.
func (ForbiddenImageSource) LayerInfosForCopy ¶ added in v5.22.0
func (f ForbiddenImageSource) LayerInfosForCopy(context.Context, *digest.Digest) ([]types.BlobInfo, error)
LayerInfosForCopy is a mock that panics.
func (ForbiddenImageSource) Reference ¶ added in v5.22.0
func (f ForbiddenImageSource) Reference() types.ImageReference
Reference is a mock that panics.
type ForbiddenUnparsedImage ¶ added in v5.22.0
type ForbiddenUnparsedImage struct{}
ForbiddenUnparsedImage is used when we don't expect the UnparsedImage to be used in our tests.
func (ForbiddenUnparsedImage) Reference ¶ added in v5.22.0
func (ref ForbiddenUnparsedImage) Reference() types.ImageReference
Reference is a mock that panics.
func (ForbiddenUnparsedImage) Signatures ¶ added in v5.22.0
func (ref ForbiddenUnparsedImage) Signatures(context.Context) ([][]byte, error)
Signatures is a mock that panics.
func (ForbiddenUnparsedImage) UntrustedSignatures ¶ added in v5.22.0
func (ref ForbiddenUnparsedImage) UntrustedSignatures(ctx context.Context) ([]signature.Signature, error)
UntrustedSignatures is a mock that panics.
type NameImageTransport ¶
type NameImageTransport string
NameImageTransport is a mock of types.ImageTransport which returns itself in Name.
func (NameImageTransport) Name ¶
func (name NameImageTransport) Name() string
Name returns the name of the transport, which must be unique among other transports.
func (NameImageTransport) ParseReference ¶
func (name NameImageTransport) ParseReference(reference string) (types.ImageReference, error)
ParseReference converts a string, which should not start with the ImageTransport.Name prefix, into an ImageReference.
func (NameImageTransport) ValidatePolicyConfigurationScope ¶
func (name NameImageTransport) ValidatePolicyConfigurationScope(scope string) error
ValidatePolicyConfigurationScope checks that scope is a valid name for a signature.PolicyTransportScopes keys (i.e. a valid PolicyConfigurationIdentity() or PolicyConfigurationNamespaces() return value). It is acceptable to allow an invalid value which will never be matched, it can "only" cause user confusion. scope passed to this function will not be "", that value is always allowed.