loader

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 4 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[componentsapi.Component]
}

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 added in v1.13.1

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