Documentation
¶
Index ¶
- func Basic(grpcCode codes.Code, httpCode int, errorCode errorcodes.ErrorCode, msg string) error
- func Empty(name string, metadata map[string]string, errorCode errorcodes.ErrorCode) 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 SearchStoreError
- 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
- type VectorStoreError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
TestNotFound 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 SearchStoreError ¶
type SearchStoreError struct {
// contains filtered or unexported fields
}
SearchStoreError builds the errors the runtime itself raises for the Search building block.
These builders are for failures the runtime detects on its own: a missing store and request validation performed before the provider is invoked. Errors returned by a component are passed through unchanged instead, because the Search API contract requires the component's canonical google.rpc.Code and any google.rpc.ErrorInfo details (for example the SEARCH_CONTINUATION_EXPIRED and INDEXING_OUTCOME_UNKNOWN reasons) to reach the caller intact.
func SearchStore ¶
func SearchStore(name string) *SearchStoreError
func (*SearchStoreError) InvalidRequest ¶
func (s *SearchStoreError) InvalidRequest(field string, msg string) error
InvalidRequest reports request validation the runtime performs before invoking the provider: keyed-upsert IDs that are empty or duplicated, and IndexingOptionsAlpha1 that are invalid or whose wait the store's resiliency timeout cannot accommodate.
func (*SearchStoreError) NotConfigured ¶
func (s *SearchStoreError) NotConfigured() error
NotConfigured reports a store lookup made when no search store is configured at all.
func (*SearchStoreError) NotFound ¶
func (s *SearchStoreError) NotFound() error
NotFound reports a store name that does not resolve while other search stores are configured.
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
type VectorStoreError ¶
type VectorStoreError struct {
// contains filtered or unexported fields
}
func VectorStore ¶
func VectorStore(name string) *VectorStoreError
func (*VectorStoreError) InvalidRequest ¶
func (v *VectorStoreError) InvalidRequest(field string, msg string) error
InvalidRequest reports request validation the runtime performs before invoking the provider: keyed-upsert IDs that are empty or duplicated, IndexingOptionsAlpha1 that are invalid or whose wait the store's resiliency timeout cannot accommodate, a vector query that is missing, does not set exactly one of vector / by_id or has an empty vector, and a collection created without dimensions.
func (*VectorStoreError) NotConfigured ¶
func (v *VectorStoreError) NotConfigured() error
NotConfigured reports a store lookup made when no vector store is configured at all.
func (*VectorStoreError) NotFound ¶
func (v *VectorStoreError) NotFound() error
NotFound reports a store name that does not resolve while other vector stores are configured.