Versions in this module Expand all Collapse all v2 v2.10.1 Aug 18, 2023 v2.9.0 Aug 18, 2023 Changes in this version + var ErrNoChecksumExtracted = errors.New("no checksum is extracted") + var ErrNoChecksumIsFound = errors.New("no checksum is found") + func CalculateReader(file io.Reader, algorithm string) (string, error) + func CheckRegistry(regist *khulnasoft.Registry, checksums *Checksums, content []byte) error + func GetChecksum(logE *logrus.Entry, assetName, checksumFileContent string, ...) (string, error) + func GetChecksumConfigFromFilename(filename, version string) *registry.Checksum + func GetChecksumFilePathFromConfigFilePath(fs afero.Fs, cfgFilePath string) (string, error) + func GetRuntimesFromSupportedEnvs(cfgSupportedEnvs, pkgSupportedEnvs []string) ([]*runtime.Runtime, error) + func ParseChecksumFile(content string, checksumConfig *registry.Checksum) (map[string]string, string, error) + func RegistryID(regist *khulnasoft.Registry) string + type Calculator struct + func NewCalculator() *Calculator + func (calc *Calculator) Calculate(fs afero.Fs, filename, algorithm string) (string, error) + type Checksum struct + Algorithm string + Checksum string + ID string + type Checksums struct + func New() *Checksums + func (chksums *Checksums) EnableOutput() + func (chksums *Checksums) Get(key string) *Checksum + func (chksums *Checksums) Prune() + func (chksums *Checksums) ReadFile(fs afero.Fs, p string) error + func (chksums *Checksums) Set(key string, chk *Checksum) + func (chksums *Checksums) UpdateFile(fs afero.Fs, p string) error