Documentation
¶
Index ¶
- Variables
- func CachePath(root, host, requestPath string) string
- func DecompressByName(filename string, reader io.Reader) (io.Reader, error)
- func HashFile(path string) (string, error)
- func IsHashRequest(path string) bool
- func IsIndexFile(path string) bool
- func ParseHashPath(path string) (algorithm, hash string, err error)
- func SanitizeHost(host string) string
- type Index
- func (i *Index) LoadExpected(records []hashstore.Expected)
- func (i *Index) LoadFile(cachePath string) error
- func (i *Index) LoadFileByHash(cachePath, requestPath string) error
- func (i *Index) LoadFromRoot(root string) error
- func (i *Index) SetHashStore(store *hashstore.Store)
- func (i *Index) ValidateByHash(cachePath, filePath, requestPath string) error
- func (i *Index) ValidateDeb(cachePath, filePath string) error
- func (i *Index) ValidateFile(cachePath, filePath string) error
- type PackageFile
- type Record
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheCorrupted = errors.New("apt cache validation failed")
Functions ¶
func IsHashRequest ¶
func IsIndexFile ¶
func ParseHashPath ¶
func SanitizeHost ¶
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) LoadExpected ¶
func (*Index) LoadFileByHash ¶
func (*Index) LoadFromRoot ¶
func (*Index) SetHashStore ¶
func (*Index) ValidateByHash ¶
func (*Index) ValidateDeb ¶
func (*Index) ValidateFile ¶
type PackageFile ¶
func ParsePackages ¶
func ParsePackages(reader io.Reader) []PackageFile
func ParseRelease ¶
func ParseRelease(reader io.Reader) []PackageFile
Click to show internal directories.
Click to hide internal directories.