Documentation
¶
Index ¶
Constants ¶
View Source
const ErrWrongMetaFormat = lib.Error("wrong meta format")
Variables ¶
View Source
var ErrRecordNotFound = gorm.ErrRecordNotFound
Functions ¶
This section is empty.
Types ¶
type ArtifactStorage ¶
type ArtifactStorage interface {
NewArtifact(src FS, input string, artifacts []string, storage string, artifactID models.ArtifactID) (*NewArtifactInfo, error)
OpenFile(storage string, artifactID models.ArtifactID, filename string) (File, error)
RemoveArtifact(storage string, artifactID models.ArtifactID) error
}
type CheckedFiles ¶
type ChecksumAlgo ¶
type ChecksumAlgo interface {
// Shall return checksum of given file or error
Sum(fs FS, fileName string) ([]byte, error)
// CheckFiles return list of good files, list of bad files as specified by checksumFileName
// or first error. Files must be returned with abs path
CheckFiles(fs FS, checksumFileName string) (CheckedFiles, error)
}
type LimitArtifacts ¶
type LimitArtifacts int
type NewArtifactInfo ¶
type Topic ¶
type Topic = string
const ( TopicRepoUpdated Topic = "repo-updated" TopicArtifactUpdated Topic = "artifact-updated" TopicInputUpdated Topic = "input-updated" TopicInputFileModified Topic = "input-file-modified" TopicDanglingRepoArtifact Topic = "dangling-repo-artifact" TopicBrokenRepoArtifact Topic = "broken-repo-artifact" )
type WithRelationship ¶
type WithRelationship bool
Click to show internal directories.
Click to hide internal directories.