WIP
This commit is contained in:
parent
f91fb4c6eb
commit
ea88892839
@ -6,6 +6,7 @@ import (
|
|||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"hash"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
@ -113,11 +114,13 @@ func printFilesInTar(parentReader *tar.Reader, h *tar.Header) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeEntry(r *tar.Reader, h *tar.Header) {
|
func makeEntry(r *tar.Reader, h *tar.Header, hasher *hash.Hash) FileChangeInfo {
|
||||||
|
fileBytes := make([]byte, h.Size)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type FileChangeInfo struct {
|
type FileChangeInfo struct {
|
||||||
|
fileName string
|
||||||
typeflag int
|
typeflag int
|
||||||
md5sum [16]byte
|
md5sum [16]byte
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user