Versions in this module Expand all Collapse all v0 v0.3.0 Jul 31, 2018 Changes in this version + func CheckWhitelist(path string) bool + func RetrieveSourceImage(index int, buildArgs []string, stages []instructions.Stage) (v1.Image, error) v0.2.0 Jul 9, 2018 Changes in this version + func GetBucketAndItem(context string) (string, string) + func GetUserFromUsername(userStr string, groupStr string) (string, string, error) v0.1.0 May 16, 2018 Changes in this version + func AddPathToVolumeWhitelist(path string) error + func AddToTar(p string, i os.FileInfo, hardlinks map[uint64]string, w *tar.Writer) error + func ChildDirInWhitelist(path, directory string) bool + func ContainsWildcards(paths []string) bool + func CopyDir(src, dest string) error + func CopyFile(src, dest string) error + func CopySymlink(src, dest string) error + func CreateFile(path string, reader io.Reader, perm os.FileMode) error + func DeleteFilesystem() error + func DestinationFilepath(src, dest, cwd string) (string, error) + func DownloadFileToDest(rawurl, dest string) error + func FilepathExists(path string) bool + func Files(root string) ([]string, error) + func GetFSFromImage(img v1.Image) error + func HasFilepathPrefix(path, prefix string) bool + func Hasher() func(string) (string, error) + func IsDestDir(path string) bool + func IsFileLocalTarArchive(src string) bool + func IsSrcRemoteFileURL(rawurl string) bool + func IsSrcsValid(srcsAndDest instructions.SourcesAndDest, resolvedSources []string, root string) error + func MoveVolumeWhitelistToWhitelist() error + func MtimeHasher() func(string) (string, error) + func ParentDirectories(path string) []string + func PathInWhitelist(path, directory string) bool + func RelativeFiles(fp string, root string) ([]string, error) + func ResolveEnvironmentReplacement(value string, envs []string, isFilepath bool) (string, error) + func ResolveEnvironmentReplacementList(values, envs []string, isFilepath bool) ([]string, error) + func ResolveSources(srcsAndDest instructions.SourcesAndDest, root string) ([]string, error) + func SetLogLevel(logLevel string) error + func URLDestinationFilepath(rawurl, dest, cwd string) string + func UnpackCompressedTar(path, dir string) error + func UnpackLocalTarArchive(path, dest string) error + func UnpackTarFromGCSBucket(bucketName, directory string) error + func UpdateConfigEnv(newEnvs []instructions.KeyValuePair, config *v1.Config, ...) error + func Whiteout(p string, w *tar.Writer) error