EncryptImage encrypts an image; it accepts either an OCI descriptor representing a manifest list or a single manifest
(ctx context.Context, cs content.Store, desc ocispec.Descriptor, cc *encconfig.CryptoConfig, lf LayerFilter)
| 464 | |
| 465 | // EncryptImage encrypts an image; it accepts either an OCI descriptor representing a manifest list or a single manifest |
| 466 | func EncryptImage(ctx context.Context, cs content.Store, desc ocispec.Descriptor, cc *encconfig.CryptoConfig, lf LayerFilter) (ocispec.Descriptor, bool, error) { |
| 467 | return cryptImage(ctx, cs, desc, cc, lf, cryptoOpEncrypt) |
| 468 | } |
| 469 | |
| 470 | // DecryptImage decrypts an image; it accepts either an OCI descriptor representing a manifest list or a single manifest |
| 471 | func DecryptImage(ctx context.Context, cs content.Store, desc ocispec.Descriptor, cc *encconfig.CryptoConfig, lf LayerFilter) (ocispec.Descriptor, bool, error) { |
no test coverage detected
searching dependent graphs…