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

loader

package
v1.18.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 10 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]
	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