Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Domain of errors, in the scope of the service. Domain = "github.com/ctfer-io/chall-manager" ReasonChallengeAlreadyExists = "CHALLENGE_ALREADY_EXISTS" ReasonChallengeNotFound = "CHALLENGE_NOT_FOUND" ReasonChallengeExpired = "CHALLENGE_EXPIRED" ReasonChallengeNoRenewal = "CHALLENGE_NO_RENEWAL" ReasonChallengePoolerOOB = "CHALLENGE_POOLER_OUT_OF_BOUNDS" ReasonChallengeInvalidUM = "CHALLENGE_INVALID_UPDATE_MASK" ReasonInstanceAlreadyExists = "INSTANCE_ALREADY_EXISTS" ReasonInstanceNotFound = "INSTANCE_NOT_FOUND" ReasonInstanceExpired = "INSTANCE_EXPIRED" ReasonOCIMalformedRef = "OCI_REFERENCE_MALFORMED" ReasonOCIInteraction = "OCI_INTERACTION" ReasonOCINotFound = "OCI_REFERENCE_NOT_FOUND" ReasonScenarioNonMatchingSpec = "SCENARIO_NON_MATCHING_SPECIFICATION" ReasonScenarioNotFound = "SCENARIO_NOT_FOUND" ReasonScenarioPreprocess = "SCENARIO_PREPROCESSING" )
Variables ¶
Functions ¶
func StatusFromError ¶ added in v0.6.5
StatusFromError normalizes internal errors into gRPC status errors so the gateway can forward meaningful codes/messages to HTTP clients.
Types ¶
type ChallengeExist ¶ added in v0.6.5
func (*ChallengeExist) Error ¶ added in v0.6.5
func (err *ChallengeExist) Error() string
type InstanceExist ¶ added in v0.6.5
func (InstanceExist) Error ¶ added in v0.6.5
func (err InstanceExist) Error() string
type MalformedOCIReference ¶ added in v0.6.5
func (MalformedOCIReference) Error ¶ added in v0.6.5
func (err MalformedOCIReference) Error() string
type OCIInteraction ¶ added in v0.6.5
func (OCIInteraction) Error ¶ added in v0.6.5
func (err OCIInteraction) Error() string
type Preprocess ¶ added in v0.6.5
func (Preprocess) Error ¶ added in v0.6.5
func (err Preprocess) Error() string
type Scenario ¶ added in v0.6.5
type Scenario struct {
Ref string
Sub error
// FieldViolation is an optional error detail for API layers to provide clearer messages to downstream consumers
FieldViolation *errdetails.BadRequest_FieldViolation
}
Click to show internal directories.
Click to hide internal directories.