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.