Documentation ¶
Index ¶
- Variables
- func NewTranslatorEventLoop(emitter TranslatorSnapshotEmitter, syncer TranslatorSyncer) eventloop.EventLoop
- func NewTranslatorSimpleEventLoop(emitter TranslatorSimpleEmitter, syncers ...TranslatorSyncer) eventloop.SimpleEventLoop
- type TranslatorEmitter
- type TranslatorSimpleEmitter
- type TranslatorSnapshot
- func (s TranslatorSnapshot) Clone() TranslatorSnapshot
- func (s *TranslatorSnapshot) GetResourcesList(resource resources.Resource) (resources.ResourceList, error)
- func (s TranslatorSnapshot) Hash(hasher hash.Hash64) (uint64, error)
- func (s TranslatorSnapshot) HashFields() []zap.Field
- func (s *TranslatorSnapshot) RemoveFromResourceList(resource resources.Resource) error
- func (s TranslatorSnapshot) Stringer() TranslatorSnapshotStringer
- func (s *TranslatorSnapshot) UpsertToResourceList(resource resources.Resource) error
- type TranslatorSnapshotEmitter
- type TranslatorSnapshotStringer
- type TranslatorSyncDeciderdeprecated
- type TranslatorSyncDeciderWithContext
- type TranslatorSyncer
- type TranslatorSyncers
Constants ¶
This section is empty.
Variables ¶
View Source
var TranslatorGvkToHashableResource = map[schema.GroupVersionKind]func() resources.HashableResource{ github_com_solo_io_gloo_projects_knative_pkg_api_external_knative.IngressGVK: github_com_solo_io_gloo_projects_knative_pkg_api_external_knative.NewIngressHashableResource, }
Functions ¶
func NewTranslatorEventLoop ¶
func NewTranslatorEventLoop(emitter TranslatorSnapshotEmitter, syncer TranslatorSyncer) eventloop.EventLoop
func NewTranslatorSimpleEventLoop ¶
func NewTranslatorSimpleEventLoop(emitter TranslatorSimpleEmitter, syncers ...TranslatorSyncer) eventloop.SimpleEventLoop
Types ¶
type TranslatorEmitter ¶
type TranslatorEmitter interface { TranslatorSnapshotEmitter Register() error Ingress() github_com_solo_io_gloo_projects_knative_pkg_api_external_knative.IngressClient }
func NewTranslatorEmitter ¶
func NewTranslatorEmitter(ingressClient github_com_solo_io_gloo_projects_knative_pkg_api_external_knative.IngressClient) TranslatorEmitter
func NewTranslatorEmitterWithEmit ¶
func NewTranslatorEmitterWithEmit(ingressClient github_com_solo_io_gloo_projects_knative_pkg_api_external_knative.IngressClient, emit <-chan struct{}) TranslatorEmitter
type TranslatorSimpleEmitter ¶
type TranslatorSimpleEmitter interface {
Snapshots(ctx context.Context) (<-chan *TranslatorSnapshot, <-chan error, error)
}
func NewTranslatorSimpleEmitter ¶
func NewTranslatorSimpleEmitter(aggregatedWatch clients.ResourceWatch) TranslatorSimpleEmitter
func NewTranslatorSimpleEmitterWithEmit ¶
func NewTranslatorSimpleEmitterWithEmit(aggregatedWatch clients.ResourceWatch, emit <-chan struct{}) TranslatorSimpleEmitter
type TranslatorSnapshot ¶
type TranslatorSnapshot struct {
Ingresses github_com_solo_io_gloo_projects_knative_pkg_api_external_knative.IngressList
}
func (TranslatorSnapshot) Clone ¶
func (s TranslatorSnapshot) Clone() TranslatorSnapshot
func (*TranslatorSnapshot) GetResourcesList ¶ added in v1.11.50
func (s *TranslatorSnapshot) GetResourcesList(resource resources.Resource) (resources.ResourceList, error)
func (TranslatorSnapshot) Hash ¶
func (s TranslatorSnapshot) Hash(hasher hash.Hash64) (uint64, error)
func (TranslatorSnapshot) HashFields ¶
func (s TranslatorSnapshot) HashFields() []zap.Field
func (*TranslatorSnapshot) RemoveFromResourceList ¶ added in v1.11.50
func (s *TranslatorSnapshot) RemoveFromResourceList(resource resources.Resource) error
func (TranslatorSnapshot) Stringer ¶
func (s TranslatorSnapshot) Stringer() TranslatorSnapshotStringer
func (*TranslatorSnapshot) UpsertToResourceList ¶ added in v1.11.50
func (s *TranslatorSnapshot) UpsertToResourceList(resource resources.Resource) error
type TranslatorSnapshotEmitter ¶ added in v0.18.44
type TranslatorSnapshotStringer ¶
func (TranslatorSnapshotStringer) String ¶
func (ss TranslatorSnapshotStringer) String() string
type TranslatorSyncDecider
deprecated
type TranslatorSyncDecider interface { TranslatorSyncer ShouldSync(old, new *TranslatorSnapshot) bool }
Deprecated: use TranslatorSyncDeciderWithContext
type TranslatorSyncDeciderWithContext ¶
type TranslatorSyncDeciderWithContext interface { TranslatorSyncer ShouldSync(ctx context.Context, old, new *TranslatorSnapshot) bool }
type TranslatorSyncer ¶
type TranslatorSyncer interface {
Sync(context.Context, *TranslatorSnapshot) error
}
type TranslatorSyncers ¶
type TranslatorSyncers []TranslatorSyncer
func (TranslatorSyncers) Sync ¶
func (s TranslatorSyncers) Sync(ctx context.Context, snapshot *TranslatorSnapshot) error
Click to show internal directories.
Click to hide internal directories.