Documentation ¶
Index ¶
- func IsChecksumFile(path string) bool
- func IsMetaFile(path string) bool
- func ParseMetaFile(log ports.Logger, f ports.FS, metaFileName string) (map[string]string, error)
- func RegisterChecksumAlgo(prio int, pattern string, algo ports.ChecksumAlgo)
- func RegisterMetaAlgo(prio int, pattern string, algo ports.MetaAlgo)
- type BasicArtifactStorageAdapter
- func (s *BasicArtifactStorageAdapter) Close()
- func (s *BasicArtifactStorageAdapter) NewArtifact(src ports.FS, input string, artifacts []string, storage string, ...) (*ports.NewArtifactInfo, error)
- func (s *BasicArtifactStorageAdapter) OpenFile(storage string, artifactID models.ArtifactID, filename string) (ports.File, error)
- func (s *BasicArtifactStorageAdapter) RemoveArtifact(storage string, artifactID models.ArtifactID) error
- type ChecksumAlgoInfo
- type ChecksumStr
- type MetaAlgoInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsChecksumFile ¶
IsChecksumFile returns true if path match any patterns supported by registered algorithms. The path must be absolute.
func IsMetaFile ¶
IsMetaFile returns true if path match any patterns supported by registered algorithms. The path must be absolute.
func ParseMetaFile ¶
ParseMetaFile parses meta file via algos and returns key/values map or error
func RegisterChecksumAlgo ¶
func RegisterChecksumAlgo(prio int, pattern string, algo ports.ChecksumAlgo)
Types ¶
type BasicArtifactStorageAdapter ¶
type BasicArtifactStorageAdapter struct {
// contains filtered or unexported fields
}
func (*BasicArtifactStorageAdapter) Close ¶
func (s *BasicArtifactStorageAdapter) Close()
func (*BasicArtifactStorageAdapter) NewArtifact ¶
func (s *BasicArtifactStorageAdapter) NewArtifact(src ports.FS, input string, artifacts []string, storage string, id models.ArtifactID) (*ports.NewArtifactInfo, error)
func (*BasicArtifactStorageAdapter) OpenFile ¶
func (s *BasicArtifactStorageAdapter) OpenFile(storage string, artifactID models.ArtifactID, filename string) (ports.File, error)
func (*BasicArtifactStorageAdapter) RemoveArtifact ¶
func (s *BasicArtifactStorageAdapter) RemoveArtifact(storage string, artifactID models.ArtifactID) error
type ChecksumAlgoInfo ¶
type ChecksumAlgoInfo struct {
// contains filtered or unexported fields
}
type ChecksumStr ¶
type ChecksumStr = string
func CheckChecksum ¶
func CheckChecksum(log ports.Logger, f ports.FS, checksumFileName string) (ChecksumStr, ports.CheckedFiles, error)
CheckChecksum checks the checksumFileName and all files listed inside the checksumFileName. It returns the checksum of the checksumFileName, good files, broken files and error
type MetaAlgoInfo ¶
type MetaAlgoInfo struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.