source

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

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)

func StatusHashGetter added in v0.14.0

func StatusHashGetter(obj *store.Resource) (string, 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL