summaryrefslogtreecommitdiff
path: root/libpod/common
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2019-03-13 17:17:07 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2019-03-29 08:27:33 -0400
commitc37589f503913ac85622cc9110e2eb983b1b38f3 (patch)
tree9061248749f167ec6a5674efa97fef55d2890a95 /libpod/common
parent6ab27c6355a4df228ed6d527162d5251d867b9b3 (diff)
downloadpodman-c37589f503913ac85622cc9110e2eb983b1b38f3.tar.gz
podman-c37589f503913ac85622cc9110e2eb983b1b38f3.tar.bz2
podman-c37589f503913ac85622cc9110e2eb983b1b38f3.zip
Set blob cache directory based on GraphDriver
Currently in rootless containers, we end up not using the blob cache. We also don't store the blob cache based on the users specified graph storage. This change will cause the cache directory to be stored with the rest of the containe images. While doing this patch, I found that we had duplicated GetSystemContext in two places in libpod. I cleaned this up. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/common')
-rw-r--r--libpod/common/common.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/libpod/common/common.go b/libpod/common/common.go
index 5d10bee36..93a736af2 100644
--- a/libpod/common/common.go
+++ b/libpod/common/common.go
@@ -1,20 +1,5 @@
package common
-import (
- "github.com/containers/image/types"
-)
-
-// GetSystemContext Constructs a new containers/image/types.SystemContext{} struct from the given signaturePolicy path
-func GetSystemContext(signaturePolicyPath, authFilePath string, forceCompress bool) *types.SystemContext {
- sc := &types.SystemContext{}
- if signaturePolicyPath != "" {
- sc.SignaturePolicyPath = signaturePolicyPath
- }
- sc.AuthFilePath = authFilePath
- sc.DirForceCompress = forceCompress
- return sc
-}
-
// IsTrue determines whether the given string equals "true"
func IsTrue(str string) bool {
return str == "true"