Help us shape the future of Go! Take the 2026 Go Developer Survey

backend

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResourceManager

type BaseResourceManager struct {
	Client        client.Client
	JobBuilder    stream.JobBuilder
	EventRecorder record.EventRecorder
}

func (*BaseResourceManager) BuildJob

func (j *BaseResourceManager) BuildJob(ctx context.Context, definition stream.Definition, request *v1.BackfillRequest, streamClass *v1.StreamClass) (*batchv1.Job, error)

func (*BaseResourceManager) Remove

func (j *BaseResourceManager) Remove(ctx context.Context, object client.Object, updatePhase func() (reconcile.Result, error)) (reconcile.Result, error)

type ResourceConverter

type ResourceConverter func(object client.Object) (stream.BackendResource, error)

type ResourceReader

type ResourceReader struct {
	Client client.Client
}

func (*ResourceReader) CompareConfigurations

func (j *ResourceReader) CompareConfigurations(ctx context.Context, object client.Object, definition stream.Definition, fromObject ResourceConverter) (bool, error)

func (*ResourceReader) Get

type SecondaryResourcePredicate

type SecondaryResourcePredicate[object any] struct{}

func (*SecondaryResourcePredicate[object]) Create

func (b *SecondaryResourcePredicate[object]) Create(_ event.TypedCreateEvent[object]) bool

func (*SecondaryResourcePredicate[object]) Delete

func (b *SecondaryResourcePredicate[object]) Delete(_ event.TypedDeleteEvent[object]) bool

func (*SecondaryResourcePredicate[object]) Generic

func (b *SecondaryResourcePredicate[object]) Generic(_ event.TypedGenericEvent[object]) bool

func (*SecondaryResourcePredicate[object]) Update

func (b *SecondaryResourcePredicate[object]) Update(_ event.TypedUpdateEvent[object]) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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