loader

package
v1.18.11 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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]
	MCPServers() Loader[mcpserverapi.MCPServer]
	Configurations() Loader[configapi.Configuration]
	HTTPEndpoints() Loader[httpendpointapi.HTTPEndpoint]
	Resiliencies() Loader[resiliencyapi.Resiliency]
	WorkflowAccessPolicies() Loader[wfaclapi.WorkflowAccessPolicy]
}

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