func (s *dockerImageSource) GetSignatures(ctx context.Context, instanceDigest *digest.Digest) ([][]byte, error) {
	if err := s.c.detectProperties(ctx); err != nil {
		return nil, err
	}
	switch {
	case s.c.signatureBase != nil:
		return s.getSignaturesFromLookaside(ctx, instanceDigest)
	case s.c.supportsSignatures:
		return s.getSignaturesFromAPIExtension(ctx, instanceDigest)
	default:
		return [][]byte{}, nil
	}
}
func (s *dockerImageSource) GetSignatures(ctx context.Context, instanceDigest *digest.Digest) ([][]byte, error) {
	if err := s.c.detectProperties(ctx); err != nil {
		return nil, err
	}
	switch {
	case s.c.signatureBase != nil:
		return s.getSignaturesFromLookaside(ctx, instanceDigest)
	case s.c.supportsSignatures:
		return s.getSignaturesFromAPIExtension(ctx, instanceDigest)
	default:
		return [][]byte{}, nil
	}
}
func ( s * dockerImageSource ) GetSignatures ( ctx context . Context , instanceDigest * digest . Digest ) ( [ ] [ ] byte , error ) { if err := s . c . detectProperties ( ctx ) ; err != nil { return nil , err } switch { case s . c . signatureBase != nil : return s . getSignaturesFromLookaside ( ctx , instanceDigest ) case s . c . supportsSignatures : return s . getSignaturesFromAPIExtension ( ctx , instanceDigest ) default : return [ ] [ ] byte { } , nil } }
// GetSignatures returns the image's signatures.  It may use a remote (= slow) service.
// If instanceDigest is not nil, it contains a digest of the specific manifest instance to retrieve signatures for
// (when the primary manifest is a manifest list); this never happens if the primary manifest is not a manifest list
// (e.g. if the source never returns manifest lists).
GetSignatures returns the image s signatures . It may use a remote ( = slow ) service . If instanceDigest is not nil it contains a digest of the specific manifest instance to retrieve signatures for ( when the primary manifest is a manifest list ) ; this never happens if the primary manifest is not a manifest list ( e . g . if the source never returns manifest lists ) .