Documentation ¶
Index ¶
- Constants
- func ConstructReason(vars ...ReasonSegment) string
- func Empty(name string, metadata map[string]string, reason string) error
- func IncorrectNegative(name string, metadata map[string]string, reason string) error
- func NotConfigured(name string, componentType string, metadata map[string]string, ...) error
- func NotFound(name string, componentType string, metadata map[string]string, ...) error
- func PubSubOutbox(appID string, err error) error
- func SchedulerDeleteJob(metadata map[string]string, err error) error
- func SchedulerGetJob(metadata map[string]string, err error) error
- func SchedulerListJobs(metadata map[string]string, err error) error
- func SchedulerScheduleJob(metadata map[string]string, err error) error
- func SchedulerURLName(metadata map[string]string) error
- type PubSubError
- func (p *PubSubError) PublishForbidden(topic, appID string, err error) error
- func (p PubSubError) PublishMessage(topic string, err error) error
- func (p PubSubError) TestNotFound(topic string, err error) error
- func (p *PubSubError) WithAppError(appID string, err error) *PubSubMetadataError
- func (p *PubSubError) WithMetadata(metadata map[string]string) *PubSubMetadataError
- type PubSubMetadataError
- func (p *PubSubMetadataError) CloudEventCreation() error
- func (p *PubSubMetadataError) DeserializeError(err error) error
- func (p *PubSubMetadataError) NameEmpty() error
- func (p *PubSubMetadataError) NotConfigured() error
- func (p *PubSubMetadataError) NotFound() error
- func (p *PubSubMetadataError) TopicEmpty() error
- func (p *PubSubMetadataError) WithTopic(topic string) *PubSubTopicError
- type PubSubTopicError
- type ReasonSegment
- type StateStoreError
- func (s *StateStoreError) InvalidKeyName(key string, msg string) error
- func (s *StateStoreError) NotConfigured(appID string) error
- func (s *StateStoreError) NotFound(appID string) error
- func (s *StateStoreError) QueryFailed(detail string) error
- func (s *StateStoreError) QueryUnsupported() error
- func (s *StateStoreError) TooManyTransactionalOps(count int, max int) error
- func (s *StateStoreError) TransactionsNotSupported() error
Constants ¶
View Source
const ( CodePrefixScheduler = "SCHEDULER_" // TODO(Cassie): move this to kit eventually InFixJob ReasonSegment = "JOB_" InFixAppID ReasonSegment = "APPID_" InFixGet ReasonSegment = "GET_" InFixList ReasonSegment = "LIST_" InFixDelete ReasonSegment = "DELETE_" InFixSchedule ReasonSegment = "SCHEDULE_" PostFixRepeats ReasonSegment = "REPEATS" PostFixJob ReasonSegment = "JOB" PostFixJobs ReasonSegment = "JOBS" MsgScheduleJob = "failed to schedule job" MsgGetJob = "failed to get job" MsgListJobs = "failed to list jobs" MsgDeleteJob = "failed to delete job" )
Variables ¶
This section is empty.
Functions ¶
func ConstructReason ¶
func ConstructReason(vars ...ReasonSegment) string
ConstructReason is used to append several Error Reason const strings into 1 Error Reason. The format of the string should generally follow this pattern: apierrors.CodePrefix<Dapr_API>_, apierrors.InFix<const>_,apierrors.PostFix<const>
func IncorrectNegative ¶
func NotConfigured ¶
func PubSubOutbox ¶
func SchedulerURLName ¶
Types ¶
type PubSubError ¶
type PubSubError struct {
// contains filtered or unexported fields
}
func PubSub ¶
func PubSub(name string) *PubSubError
func (*PubSubError) PublishForbidden ¶
func (p *PubSubError) PublishForbidden(topic, appID string, err error) error
func (PubSubError) PublishMessage ¶
func (p PubSubError) PublishMessage(topic string, err error) error
func (PubSubError) TestNotFound ¶
func (p PubSubError) TestNotFound(topic string, err error) error
This is specifically for the error we are expecting for the api_tests. The not found expected error codes are different than the existing ones for PubSubNotFound, hence why this one is needed
func (*PubSubError) WithAppError ¶
func (p *PubSubError) WithAppError(appID string, err error) *PubSubMetadataError
func (*PubSubError) WithMetadata ¶
func (p *PubSubError) WithMetadata(metadata map[string]string) *PubSubMetadataError
type PubSubMetadataError ¶
type PubSubMetadataError struct {
// contains filtered or unexported fields
}
func (*PubSubMetadataError) CloudEventCreation ¶
func (p *PubSubMetadataError) CloudEventCreation() error
func (*PubSubMetadataError) DeserializeError ¶
func (p *PubSubMetadataError) DeserializeError(err error) error
func (*PubSubMetadataError) NameEmpty ¶
func (p *PubSubMetadataError) NameEmpty() error
func (*PubSubMetadataError) NotConfigured ¶
func (p *PubSubMetadataError) NotConfigured() error
func (*PubSubMetadataError) NotFound ¶
func (p *PubSubMetadataError) NotFound() error
func (*PubSubMetadataError) TopicEmpty ¶
func (p *PubSubMetadataError) TopicEmpty() error
func (*PubSubMetadataError) WithTopic ¶
func (p *PubSubMetadataError) WithTopic(topic string) *PubSubTopicError
type PubSubTopicError ¶
type PubSubTopicError struct {
// contains filtered or unexported fields
}
func (*PubSubTopicError) MarshalEnvelope ¶
func (p *PubSubTopicError) MarshalEnvelope() error
func (*PubSubTopicError) MarshalEvents ¶
func (p *PubSubTopicError) MarshalEvents() error
func (*PubSubTopicError) UnmarshalEvents ¶
func (p *PubSubTopicError) UnmarshalEvents(err error) error
UnmarshalEvents only occurs in http/api.go
type ReasonSegment ¶
type ReasonSegment string
const ( InFixName ReasonSegment = "NAME_" InFixNegative ReasonSegment = "NEGATIVE_" PostFixName ReasonSegment = "NAME" PostFixEmpty ReasonSegment = "EMPTY" )
type StateStoreError ¶
type StateStoreError struct {
// contains filtered or unexported fields
}
func StateStore ¶
func StateStore(name string) *StateStoreError
func (*StateStoreError) InvalidKeyName ¶
func (s *StateStoreError) InvalidKeyName(key string, msg string) error
func (*StateStoreError) NotConfigured ¶
func (s *StateStoreError) NotConfigured(appID string) error
func (*StateStoreError) NotFound ¶
func (s *StateStoreError) NotFound(appID string) error
func (*StateStoreError) QueryFailed ¶
func (s *StateStoreError) QueryFailed(detail string) error
func (*StateStoreError) QueryUnsupported ¶
func (s *StateStoreError) QueryUnsupported() error
func (*StateStoreError) TooManyTransactionalOps ¶
func (s *StateStoreError) TooManyTransactionalOps(count int, max int) error
func (*StateStoreError) TransactionsNotSupported ¶
func (s *StateStoreError) TransactionsNotSupported() error
Click to show internal directories.
Click to hide internal directories.