loader

package
v0.0.0-...-949823d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event[T differ.Resource] struct {
	Type     operatorv1pb.ResourceEventType
	Resource T
}

Event is a component event.

type Interface

type Interface interface {
	Run(context.Context) error
	Components() Loader[compapi.Component]
	Subscriptions() Loader[subapi.Subscription]
}

Interface is an interface for loading and watching for changes to components a source.

type Loader

type Loader[T differ.Resource] interface {
	List(context.Context) (*differ.LocalRemoteResources[T], error)
	Stream(context.Context) (*StreamConn[T], error)
}

Loader is an interface for loading and watching for changes to a resource from a source.

type StreamConn

type StreamConn[T differ.Resource] struct {
	EventCh     chan *Event[T]
	ReconcileCh chan struct{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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