loader

package
v1.13.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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 {
	io.Closer
	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) (<-chan *Event[T], error)
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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