Documentation ¶
Overview ¶
Package pubsub provides an interface and implementations for publishing notifications for Rekor updates to a Pub/Sub system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddProvider ¶
func AddProvider(uri string, init ProviderInit)
AddProvider adds the provider implementation into the local cache
func SupportedProviders ¶
func SupportedProviders() []string
SupportedProviders returns list of initialized providers
Types ¶
type ProviderInit ¶
ProviderInit is a function that initializes provider-specific Publisher.
type ProviderNotFoundError ¶
type ProviderNotFoundError struct {
// contains filtered or unexported fields
}
ProviderNotFoundError indicates that no matching PubSub provider was found.
func (*ProviderNotFoundError) Error ¶
func (e *ProviderNotFoundError) Error() string
type Publisher ¶
type Publisher interface { // Publish publishes a CloudEvent to the configured Pub/Sub topic serialized // using the specified encoding type. Publish(ctx context.Context, event *events.Event, encoding events.EventContentType) error // Close safely closes any active connections. Close() error }
Publisher provides methods for publishing events to a Pub/Sub topic.
Click to show internal directories.
Click to hide internal directories.