Documentation
¶
Index ¶
Constants ¶
const CacheKeyValueFileName = "cache_key_value.json"
CacheKeyValueFileName is the name of local cache key value file.
const DefaultBinaryPath = "/makisu-internal/makisu"
DefaultBinaryPath is Makisu binary path. It should be excluded from all file operations.
const DefaultCACertsPath = "/makisu-internal/certs/cacerts.pem"
DefaultCACertsPath containsa list of common CA certs. These certs are generated by ca-certficates debian package and appended to system certs.
const DefaultInternalDir = "/makisu-internal"
DefaultInternalDir is used for Makisu binary and certs.
const DefaultStorageDir = "/makisu-storage"
DefaultStorageDir is the default directory makisu uses for persisted data like cached image layers. This directory should be mounted for better performance, if makisu runs in a container.
Variables ¶
var ( // DefaultBlacklist is the list of all paths that should be ignored when // copying directories around and computing filesystem diffs. DefaultBlacklist = append([]string{ DefaultInternalDir, "/dev", "/.dockerinit", "/srv", "/mnt", }, dockerBlacklist...) )
Functions ¶
func AbsPath ¶
AbsPath fixes leading and trailing slashes of paths for all cases: - Layers generated by docker doesn't have leading slashes. - Internally generated paths might have leading slashes. - Directories have trailing slashes. - Files don't have trailing slashes.
func IsDescendantOfAny ¶
IsDescendantOfAny returns true if filename is in any ancestor's subtree.
func RelPath ¶
RelPath removes leading "/". Tar headers produced by docker doesn't have leading slashes.
Types ¶
This section is empty.