Documentation ¶
Index ¶
- func StartManifestWorkSourceClient(ctx context.Context, sourceID string, config any) (*work.ClientHolder, workv1informers.ManifestWorkInformer, error)
- func StartResourceSourceClient(ctx context.Context, options *options.CloudEventsSourceOptions, ...) (generic.CloudEventsClient[*store.Resource], error)
- func StatusHashGetter(obj *store.Resource) (string, error)
- type ResourceCodec
- type ResourceLister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartManifestWorkSourceClient ¶ added in v0.14.0
func StartManifestWorkSourceClient( ctx context.Context, sourceID string, config any, ) (*work.ClientHolder, workv1informers.ManifestWorkInformer, error)
func StartResourceSourceClient ¶ added in v0.14.0
func StartResourceSourceClient( ctx context.Context, options *options.CloudEventsSourceOptions, sourceID string, lister *ResourceLister, ) (generic.CloudEventsClient[*store.Resource], error)
Types ¶
type ResourceCodec ¶ added in v0.14.0
type ResourceCodec struct{}
func (*ResourceCodec) Decode ¶ added in v0.14.0
func (c *ResourceCodec) Decode(evt *cloudevents.Event) (*store.Resource, error)
func (*ResourceCodec) Encode ¶ added in v0.14.0
func (c *ResourceCodec) Encode(source string, eventType types.CloudEventsType, resource *store.Resource) (*cloudevents.Event, error)
func (*ResourceCodec) EventDataType ¶ added in v0.14.0
func (c *ResourceCodec) EventDataType() types.CloudEventsDataType
type ResourceLister ¶ added in v0.14.0
type ResourceLister struct {
Store *store.MemoryStore
}
func NewResourceLister ¶ added in v0.14.0
func NewResourceLister(store *store.MemoryStore) *ResourceLister
func (*ResourceLister) List ¶ added in v0.14.0
func (l *ResourceLister) List(listOpts types.ListOptions) ([]*store.Resource, error)
Click to show internal directories.
Click to hide internal directories.