Documentation ¶
Index ¶
- Constants
- func Compare(dumpFileName1 string, dumpFileName2 string) error
- func Load(listFlg bool, filename string) error
- func Run(path string, recursive bool, absolute bool, dumpFlg bool) error
- type CompareMap
- type CompareResult
- type CompareResultRecord
- type DumpFile
- type DumpHeader
- type DumpRecord
- type File
- type PrintableRecord
Constants ¶
const VERSION = "0.0.0"
VERSION of this application
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompareMap ¶
CompareMap ...
func (*CompareMap) Compare ¶
func (c *CompareMap) Compare(other *CompareMap) *CompareResult
Compare ...
type CompareResult ¶
type CompareResult struct { New []CompareResultRecord Updated []CompareResultRecord Deleted []CompareResultRecord }
CompareResult ...
type CompareResultRecord ¶
type CompareResultRecord struct { Path string BeforeSize int64 AfterSize int64 RecordType recordType }
CompareResultRecord ...
func (*CompareResultRecord) PrintRecord ¶
func (crr *CompareResultRecord) PrintRecord()
PrintRecord ...
type DumpFile ¶
type DumpFile struct { Header DumpHeader Records []DumpRecord }
DumpFile holes single header and multiple records
func (*DumpFile) BuildCompareMap ¶
func (f *DumpFile) BuildCompareMap() *CompareMap
BuildCompareMap ...
type DumpHeader ¶
DumpHeader describes general information of dumped records
func MakeDumpHeader ¶
func MakeDumpHeader(path string) DumpHeader
MakeDumpHeader creates new DumpHeader instance (value)
func NewDumpHeader ¶
func NewDumpHeader(path string) *DumpHeader
NewDumpHeader creates new DumpHeader instance (pointer)
type DumpRecord ¶
DumpRecord describes one file information
func MakeDumpRecord ¶
func MakeDumpRecord(f *File) DumpRecord
MakeDumpRecord creates new DumpRecord instance (value)
func NewDumpRecord ¶
func NewDumpRecord(f *File) *DumpRecord
NewDumpRecord creates new DumpRecord instance (pointer)
func (DumpRecord) HSize ¶
func (d DumpRecord) HSize() string
HSize returns file size of File with human-readable format
func (DumpRecord) RelativePath ¶
func (d DumpRecord) RelativePath() string
RelativePath returns the relative path of File
type File ¶
type File struct {
// contains filtered or unexported fields
}
File is abstracted file object
func (*File) RelativePath ¶
RelativePath returns the relative path of File
type PrintableRecord ¶
PrintableRecord is an interface for print du records