Documentation ¶
Index ¶
- Constants
- func Get(ctx context.Context) (cloudevents.Client, error)
- func InjectClient(ctx context.Context, client cloudevents.Client) context.Context
- func SendEvent(ctx context.Context, eventType CrossplaneEvent, obj metav1.Object) error
- func SetTarget(ctx context.Context, target string) context.Context
- type CrossplaneEvent
Constants ¶
View Source
const ( // EventSink defines the endpoint for sink for cloud events EventSink key = iota // Logger is the key in context for the logget object Logger )
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(ctx context.Context) (cloudevents.Client, error)
Get returns a cloud events client or error
func InjectClient ¶
InjectClient allows callers to inject a cloud events client into the context with a well defined key
Types ¶
type CrossplaneEvent ¶
type CrossplaneEvent string
CrossplaneEvent defines an event in the crossplane realm
const ( // EnvironmentCreated is the event used when the cluster is ready EnvironmentCreated CrossplaneEvent = "created" // EnvironmentModified is the event used when the cluster is modified EnvironmentModified CrossplaneEvent = "modified" )
Click to show internal directories.
Click to hide internal directories.