diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-05 03:57:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 03:57:17 -0500 |
commit | 05080a12a998802570ee123a39368a0fe97e2fd2 (patch) | |
tree | e2828a62966c6d05e2d79cb7cc90ae3254279657 /libpod/define | |
parent | 4e5cc6a3a61d9d2f1d3b97fc10684ec5617816ab (diff) | |
parent | a090301bbb10424ce4f99e40c97959f0e8664718 (diff) | |
download | podman-05080a12a998802570ee123a39368a0fe97e2fd2.tar.gz podman-05080a12a998802570ee123a39368a0fe97e2fd2.tar.bz2 podman-05080a12a998802570ee123a39368a0fe97e2fd2.zip |
Merge pull request #9593 from vrothberg/cp-tmp
podman cp: support copying on tmpfs mounts
Diffstat (limited to 'libpod/define')
-rw-r--r-- | libpod/define/fileinfo.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libpod/define/fileinfo.go b/libpod/define/fileinfo.go new file mode 100644 index 000000000..2c7b6fe99 --- /dev/null +++ b/libpod/define/fileinfo.go @@ -0,0 +1,16 @@ +package define + +import ( + "os" + "time" +) + +// FileInfo describes the attributes of a file or diretory. +type FileInfo struct { + Name string `json:"name"` + Size int64 `json:"size"` + Mode os.FileMode `json:"mode"` + ModTime time.Time `json:"mtime"` + IsDir bool `json:"isDir"` + LinkTarget string `json:"linkTarget"` +} |