#[non_exhaustive]pub enum InputManifestError {
Show 34 variants
ManifestMissingHeader,
MissingGitOidInHeader,
MissingObjectTypeInHeader,
MissingHeaderParts,
MissingBomIndicatorInRelation,
MissingRelationParts(Box<str>),
WrongHashAlgorithm {
expected: Box<str>,
got: Box<str>,
},
UnknownEmbeddingTarget,
FailedManifestRead(Box<Error>),
FailedTargetArtifactRead(Box<Error>),
ArtifactIdError(ArtifactIdError),
NoStorageRoot,
CantAccessRoot(Box<str>, Box<Error>),
ObjectStoreNotDir(Box<str>),
InvalidObjectStorePath(Box<str>),
ObjectStoreDirNotEmpty(Box<str>),
CantCreateObjectStoreDir(Box<str>, Box<Error>),
CantWriteManifestDir(Box<str>, Box<Error>),
CantOpenTargetIndex(Box<str>, Box<Error>),
CantCreateTargetIndex(Box<str>, Box<Error>),
CantOpenTargetIndexTemp(Box<str>, Box<Error>),
CantWriteTargetIndexTemp(Box<str>, Box<Error>),
CantDeleteTargetIndexTemp(Box<str>, Box<Error>),
CantReplaceTargetIndexWithTemp {
temp: Box<str>,
index: Box<str>,
source: Box<Error>,
},
CantWriteManifest(Box<str>, Box<Error>),
TargetIndexMalformedEntry {
line_no: usize,
},
CantReadTargetIndexLine {
line_no: usize,
source: Box<Error>,
},
InvalidTargetIndexUpsert,
FailedStorageCleanup(Box<str>, Box<Error>),
CantFindManifestForTarget(Box<str>),
CantFindManifestWithId(Box<str>),
MissingTargetIndexRemoveCriteria,
NoManifestFoundToRemove,
CantRemoveManifest(Box<Error>),
}
Expand description
An error arising from Input Manifest operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ManifestMissingHeader
Input manifest missing header line.
MissingGitOidInHeader
Missing ‘gitoid’ in manifest header.
MissingObjectTypeInHeader
Missing ‘blob’ in manifest header.
MissingHeaderParts
Missing one or more header parts.
MissingBomIndicatorInRelation
Missing bom indicator in relation.
MissingRelationParts(Box<str>)
Missing one or more relation parts.
WrongHashAlgorithm
Wrong hash algorithm.
UnknownEmbeddingTarget
Unknown file type for manifest ID embedding.
FailedManifestRead(Box<Error>)
Failed to read input manifest file.
FailedTargetArtifactRead(Box<Error>)
Failed to read the target artifact during input manifest creation.
ArtifactIdError(ArtifactIdError)
An error arising from an Artifact ID problem.
NoStorageRoot
No storage root found.
CantAccessRoot(Box<str>, Box<Error>)
Can’t access storage root.
ObjectStoreNotDir(Box<str>)
Object store is not a directory.
InvalidObjectStorePath(Box<str>)
Object store path is not valid.
ObjectStoreDirNotEmpty(Box<str>)
Object store is not empty.
CantCreateObjectStoreDir(Box<str>, Box<Error>)
Can’t create object store.
CantWriteManifestDir(Box<str>, Box<Error>)
Can’t write manifest directory.
CantOpenTargetIndex(Box<str>, Box<Error>)
Can’t open target index file.
CantCreateTargetIndex(Box<str>, Box<Error>)
Can’t create target index file.
CantOpenTargetIndexTemp(Box<str>, Box<Error>)
Can’t open target index temp file during an upsert.
CantWriteTargetIndexTemp(Box<str>, Box<Error>)
Can’t write to target index temp file for upsert.
CantDeleteTargetIndexTemp(Box<str>, Box<Error>)
Can’t delete target index temp file during an upsert.
CantReplaceTargetIndexWithTemp
Can’t replace target index with temp file.
Fields
CantWriteManifest(Box<str>, Box<Error>)
Can’t write manifest file.
TargetIndexMalformedEntry
Target index entry is malformed.
CantReadTargetIndexLine
Can’t read entry of the target index file.
Fields
InvalidTargetIndexUpsert
An Artifact ID is missing from target index upsert.
FailedStorageCleanup(Box<str>, Box<Error>)
Failed to clean up storage root.
CantFindManifestForTarget(Box<str>)
Can’t find manifest for target Artifact ID.
CantFindManifestWithId(Box<str>)
Can’t find manifest with Artifact ID.
MissingTargetIndexRemoveCriteria
Missing target index removal criteria.
NoManifestFoundToRemove
No manifest found to remove in the target index
CantRemoveManifest(Box<Error>)
Can’t remove manifest from storage.