Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIServer ¶
type APIServer struct {
// contains filtered or unexported fields
}
func NewAPIServer ¶
func NewAPIServer(addr, sourceID string, store store.Store, eventController *EventController) *APIServer
type EventController ¶
type EventController struct {
// contains filtered or unexported fields
}
func NewEventController ¶
func NewEventController() *EventController
func (*EventController) AddEventHandler ¶
func (ec *EventController) AddEventHandler(eventType EventType, handler EventHandler)
func (*EventController) EnqueueEvent ¶
func (ec *EventController) EnqueueEvent(event Event)
func (*EventController) Run ¶
func (ec *EventController) Run(ctx context.Context)
type ResourceCodec ¶
type ResourceCodec struct{}
func (*ResourceCodec) Decode ¶
func (c *ResourceCodec) Decode(evt *cloudevents.Event) (*api.Resource, error)
func (*ResourceCodec) Encode ¶
func (c *ResourceCodec) Encode(source string, eventType types.CloudEventsType, resource *api.Resource) (*cloudevents.Event, error)
func (*ResourceCodec) EventDataType ¶
func (c *ResourceCodec) EventDataType() types.CloudEventsDataType
type ResourceLister ¶
type ResourceLister struct {
// contains filtered or unexported fields
}
func (*ResourceLister) List ¶
func (l *ResourceLister) List(listOpts types.ListOptions) ([]*api.Resource, error)
type ResourceSourceClient ¶
type ResourceSourceClient struct {
// contains filtered or unexported fields
}
func StartResourceSourceClient ¶
func StartResourceSourceClient( ctx context.Context, options *options.CloudEventsSourceOptions, store store.Store, ) (*ResourceSourceClient, error)
func (*ResourceSourceClient) OnCreate ¶
func (c *ResourceSourceClient) OnCreate(ctx context.Context, id string) error
Click to show internal directories.
Click to hide internal directories.