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 ¶ added in v1.14.0
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 ¶ added in v1.14.0
func NotConfigured ¶
func PubSubOutbox ¶ added in v1.14.0
func SchedulerDeleteJob ¶ added in v1.14.0
func SchedulerGetJob ¶ added in v1.14.0
func SchedulerListJobs ¶ added in v1.14.0
func SchedulerScheduleJob ¶ added in v1.14.0
func SchedulerURLName ¶ added in v1.14.0
Types ¶
type PubSubError ¶ added in v1.14.0
type PubSubError struct {
// contains filtered or unexported fields
}
func PubSub ¶ added in v1.14.0
func PubSub(name string) *PubSubError
func (*PubSubError) PublishForbidden ¶ added in v1.14.0
func (p *PubSubError) PublishForbidden(topic, appID string, err error) error
func (PubSubError) PublishMessage ¶ added in v1.14.0
func (p PubSubError) PublishMessage(topic string, err error) error
func (PubSubError) TestNotFound ¶ added in v1.14.0
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 ¶ added in v1.14.0
func (p *PubSubError) WithAppError(appID string, err error) *PubSubMetadataError
func (*PubSubError) WithMetadata ¶ added in v1.14.0
func (p *PubSubError) WithMetadata(metadata map[string]string) *PubSubMetadataError
type PubSubMetadataError ¶ added in v1.14.0
type PubSubMetadataError struct {
// contains filtered or unexported fields
}
func (*PubSubMetadataError) CloudEventCreation ¶ added in v1.14.0
func (p *PubSubMetadataError) CloudEventCreation() error
func (*PubSubMetadataError) DeserializeError ¶ added in v1.14.0
func (p *PubSubMetadataError) DeserializeError(err error) error
func (*PubSubMetadataError) NameEmpty ¶ added in v1.14.0
func (p *PubSubMetadataError) NameEmpty() error
func (*PubSubMetadataError) NotConfigured ¶ added in v1.14.0
func (p *PubSubMetadataError) NotConfigured() error
func (*PubSubMetadataError) NotFound ¶ added in v1.14.0
func (p *PubSubMetadataError) NotFound() error
func (*PubSubMetadataError) TopicEmpty ¶ added in v1.14.0
func (p *PubSubMetadataError) TopicEmpty() error
func (*PubSubMetadataError) WithTopic ¶ added in v1.14.0
func (p *PubSubMetadataError) WithTopic(topic string) *PubSubTopicError
type PubSubTopicError ¶ added in v1.14.0
type PubSubTopicError struct {
// contains filtered or unexported fields
}
func (*PubSubTopicError) MarshalEnvelope ¶ added in v1.14.0
func (p *PubSubTopicError) MarshalEnvelope() error
func (*PubSubTopicError) MarshalEvents ¶ added in v1.14.0
func (p *PubSubTopicError) MarshalEvents() error
func (*PubSubTopicError) UnmarshalEvents ¶ added in v1.14.0
func (p *PubSubTopicError) UnmarshalEvents(err error) error
UnmarshalEvents only occurs in http/api.go
type ReasonSegment ¶ added in v1.14.0
type ReasonSegment string
const ( InFixName ReasonSegment = "NAME_" InFixNegative ReasonSegment = "NEGATIVE_" PostFixName ReasonSegment = "NAME" PostFixEmpty ReasonSegment = "EMPTY" )
type StateStoreError ¶ added in v1.14.0
type StateStoreError struct {
// contains filtered or unexported fields
}
func StateStore ¶ added in v1.14.0
func StateStore(name string) *StateStoreError
func (*StateStoreError) InvalidKeyName ¶ added in v1.14.0
func (s *StateStoreError) InvalidKeyName(key string, msg string) error
func (*StateStoreError) NotConfigured ¶ added in v1.14.0
func (s *StateStoreError) NotConfigured(appID string) error
func (*StateStoreError) NotFound ¶ added in v1.14.0
func (s *StateStoreError) NotFound(appID string) error
func (*StateStoreError) QueryFailed ¶ added in v1.14.0
func (s *StateStoreError) QueryFailed(detail string) error
func (*StateStoreError) QueryUnsupported ¶ added in v1.14.0
func (s *StateStoreError) QueryUnsupported() error
func (*StateStoreError) TooManyTransactionalOps ¶ added in v1.14.0
func (s *StateStoreError) TooManyTransactionalOps(count int, max int) error
func (*StateStoreError) TransactionsNotSupported ¶ added in v1.14.0
func (s *StateStoreError) TransactionsNotSupported() error
Click to show internal directories.
Click to hide internal directories.