Crypto library movement and changes to content helper interfaces
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
		 Derek McGowan
					Derek McGowan
				
			
				
					committed by
					
						 Brandon Lum
						Brandon Lum
					
				
			
			
				
	
			
			
			 Brandon Lum
						Brandon Lum
					
				
			
						parent
						
							bf8804c743
						
					
				
				
					commit
					dde436e65b
				
			| @@ -20,8 +20,8 @@ import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/containerd/containerd/cmd/ctr/commands" | ||||
| 	"github.com/containerd/containerd/images" | ||||
| 	encconfig "github.com/containerd/containerd/images/encryption/config" | ||||
| 	imgenc "github.com/containerd/containerd/images/encryption" | ||||
| 	encconfig "github.com/containerd/containerd/pkg/encryption/config" | ||||
| 	"github.com/pkg/errors" | ||||
| 	"github.com/urfave/cli" | ||||
| ) | ||||
| @@ -77,7 +77,7 @@ var decryptCommand = cli.Command{ | ||||
| 			return err | ||||
| 		} | ||||
|  | ||||
| 		isEncrypted := images.HasEncryptedLayer(ctx, descs) | ||||
| 		isEncrypted := imgenc.HasEncryptedLayer(ctx, descs) | ||||
| 		if !isEncrypted { | ||||
| 			fmt.Printf("Nothing to decrypted.\n") | ||||
| 			return nil | ||||
|   | ||||
		Reference in New Issue
	
	Block a user