Documentation ¶
Index ¶
- func FileSize(path string) (int64, error)
- func HashDir(path string) []byte
- func HashFile(path string) []byte
- func IsDirectory(path string) (bool, error)
- type FileError
- type FileErrorID
- type FileErrors
- type Jar
- func (j Jar) CheckFile(path string) ([]byte, error)
- func (j Jar) CheckFileInZip(file *zip.File) ([]byte, error)
- func (j *Jar) CheckPath()
- func (j *Jar) CheckZip(pathToFile string, rd io.ReaderAt, size int64, depth int)
- func (j Jar) Excluded() bool
- func (j *Jar) Hash() string
- func (j Jar) PrintStates(logOk bool, logJarHash bool, logLibHash bool, logVersion bool)
- type Jars
- type Paths
- type ScanType
- type ScanTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDirectory ¶
Types ¶
type FileError ¶
type FileError struct {
ID FileErrorID
}
func NewFileError ¶
func NewFileError(fEID FileErrorID) (fe FileError)
type FileErrorID ¶
type FileErrorID int
const ( FileErrorNone FileErrorID = iota FileErrorEmpty FileErrorNoZip FileErrorNoFile FileErrorUnknown )
func (FileErrorID) String ¶
func (fEID FileErrorID) String() string
type FileErrors ¶
type FileErrors []FileError
func (FileErrors) MaxID ¶
func (fes FileErrors) MaxID() (maxID FileErrorID)
type Jar ¶
type Jar struct {
// contains filtered or unexported fields
}
func (Jar) CheckFileInZip ¶ added in v0.9.3
type ScanType ¶ added in v0.9.4
type ScanType struct {
// contains filtered or unexported fields
}
func (*ScanType) AddVersion ¶ added in v0.9.4
func (st *ScanType) AddVersion(version version.Version)
func (ScanType) LowestVersion ¶ added in v0.9.4
func (st ScanType) LowestVersion() *version.Version
Click to show internal directories.
Click to hide internal directories.