source

package
v0.0.0-...-e9f4c3e Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kind

func Kind(cache cache.Cache, object client.Object) source.SyncingSource

func NewReplayEvent

func NewReplayEvent() event.GenericEvent

NewReplayEvent returns a replay flow event

func NewResourceEvent

func NewResourceEvent(name, ns string) event.GenericEvent

Types

type Event

type Event struct {
	metav1.TypeMeta
	metav1.ObjectMeta
}

func (*Event) DeepCopyObject

func (e *Event) DeepCopyObject() runtime.Object

DeepCopyObject is deep copy method for a event

type SyncCache

type SyncCache interface {
	WaitForCacheSync(ctx context.Context) bool
}

type SyncType

type SyncType string
const (
	// ReplayType sync event type is replay service proxy flow
	ReplayType SyncType = "replay"
)

type WithSyncCache

type WithSyncCache struct {
	Name string
	source.Source
	SyncCaches []SyncCache
}

func (*WithSyncCache) WaitForSync

func (s *WithSyncCache) WaitForSync(ctx context.Context) error

Jump to

Keyboard shortcuts

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