Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/plugin/keystore/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ var (
// due to invalid or incorrectly wrapped key material.
StatusImportKeyMaterialFailed = status.New(
codes.InvalidArgument, "key material decryption failed: invalid or incorrectly wrapped key material")

// StatusImportJobNotReady indicates that the provider import job is still being prepared.
// The caller should retry GetImportParameters after a short delay.
StatusImportJobNotReady = status.New(
codes.Unavailable, "import job is not yet ready; please retry GetImportParameters after a few seconds")
)

// NewGrpcErrorWithDetails creates a gRPC error with the given status and metadata mapping.
Expand Down
Loading