Enum warg_client::ClientError
source · pub enum ClientError {
Show 24 variants
NoHomeRegistryUrl,
ResettingRegistryLocalStateFailed,
ClearContentCacheFailed,
InvalidCheckpointSignature,
InvalidCheckpointKeyId {
key_id: KeyID,
},
NoOperatorRecords,
OperatorValidationFailed {
inner: ValidationError,
},
CannotInitializePackage {
name: PackageName,
},
MustInitializePackage {
name: PackageName,
},
NotPublishing,
NothingToPublish {
name: PackageName,
},
PackageDoesNotExist {
name: PackageName,
},
PackageDoesNotExistWithHint {
name: PackageName,
hint: HeaderValue,
},
PackageVersionDoesNotExist {
version: Version,
name: PackageName,
},
PackageValidationFailed {
name: PackageName,
inner: ValidationError,
},
ContentNotFound {
digest: AnyHash,
},
IncorrectContent {
digest: AnyHash,
expected: AnyHash,
},
PackageLogEmpty {
name: PackageName,
},
PublishRejected {
name: PackageName,
record_id: RecordId,
reason: String,
},
PackageMissingContent,
CheckpointLogLengthRewind {
from: RegistryLen,
to: RegistryLen,
},
CheckpointChangedLogRootOrMapRoot {
log_length: RegistryLen,
},
Api(ClientError),
Other(Error),
}Expand description
Represents an error returned by Warg registry clients.
Variants§
NoHomeRegistryUrl
No home registry registry server URL is configured.
ResettingRegistryLocalStateFailed
Reset registry local state.
ClearContentCacheFailed
Clearing content local cache.
InvalidCheckpointSignature
Checkpoint signature failed verification
InvalidCheckpointKeyId
Checkpoint signature failed verification
NoOperatorRecords
The server did not provide operator records.
OperatorValidationFailed
Fields
inner: ValidationErrorThe validation error.
The operator failed validation.
CannotInitializePackage
Fields
name: PackageNameThe package name that already exists.
The package already exists and cannot be initialized.
MustInitializePackage
Fields
name: PackageNameThe name of the package that must be initialized.
The package must be initialized before publishing.
NotPublishing
There is no publish operation in progress.
NothingToPublish
Fields
name: PackageNameThe package that has no publish operations.
The package has no records to publish.
PackageDoesNotExist
Fields
name: PackageNameThe missing package.
The package does not exist.
PackageDoesNotExistWithHint
The package does not exist with hint.
PackageVersionDoesNotExist
Fields
name: PackageNameThe package with the missing version.
The package version does not exist.
PackageValidationFailed
Fields
name: PackageNameThe package that failed validation.
inner: ValidationErrorThe validation error.
The package failed validation.
ContentNotFound
Content was not found during a publish operation.
IncorrectContent
Content digest was different than expected.
PackageLogEmpty
Fields
name: PackageNameThe package with an empty package log.
The package log is empty and cannot be validated.
PublishRejected
Fields
name: PackageNameThe package that was rejected.
A publish operation was rejected.
PackageMissingContent
The package is still missing content.
CheckpointLogLengthRewind
Fields
from: RegistryLenThe previously received checkpoint log length.
to: RegistryLenThe latest checkpoint log length.
The registry provided a latest checkpoint with a log length less than a previously provided checkpoint log length.
CheckpointChangedLogRootOrMapRoot
Fields
log_length: RegistryLenThe checkpoint log length.
The registry provided a checkpoint with a different log_root and
map_root than a previously provided checkpoint.
Api(ClientError)
An error occurred during an API operation.
Other(Error)
An error occurred while performing a client operation.