Example #1
0
// SkipLayerVerification allows a manifest to be Put before it's
// layers are on the filesystem
func SkipLayerVerification(ms distribution.ManifestService) error {
	if ms, ok := ms.(*manifestStore); ok {
		ms.skipDependencyVerification = true
		return nil
	}
	return fmt.Errorf("skip layer verification only valid for manifestStore")
}
Example #2
0
// EnumerateAllDigests causes Enumerate method to include all the digests found
// without checking whether they exist and belong to manifest revisions or not.
func EnumerateAllDigests(ms distribution.ManifestService) error {
	if ms, ok := ms.(*manifestStore); ok {
		ms.enumerateAllDigests = true
		return nil
	}
	return fmt.Errorf("enumerate all digests only valid for manifeststore")
}