mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-09-30 21:10:15 +02:00
``` * use go 1.17 semantics in go.mod * pin tonistiigi/fsutil dep to match docker/docker's dep go get -u ./... go mod vendor ```
13 lines
525 B
Go
13 lines
525 B
Go
package copy
|
|
|
|
// This is a cloned definition of os.FileInfo (go1.15) or fs.FileInfo (go1.16~)
|
|
// A FileInfo describes a file and is returned by Stat.
|
|
type fileInfo interface {
|
|
// Name() string // base name of the file
|
|
// Size() int64 // length in bytes for regular files; system-dependent for others
|
|
// Mode() FileMode // file mode bits
|
|
// ModTime() time.Time // modification time
|
|
// IsDir() bool // abbreviation for Mode().IsDir()
|
|
Sys() interface{} // underlying data source (can return nil)
|
|
}
|