mocks

package
v5.19.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

Jump to

Keyboard shortcuts

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