registry

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackendRegistryName = "backend-registry"
)
View Source
const (
	RouteRegistryName = "route-registry"
)
View Source
const (
	WorkloadRegistryName = "workload-registry"
)

Variables

View Source
var Backends = NewBackendRegistry()
View Source
var Routes = NewRouteRegistry()
View Source
var Workloads = NewWorkloadRegistry()

Functions

func InitBackendRegistry

func InitBackendRegistry(mgr manager.Manager) (bool, error)

func InitRouteRegistry

func InitRouteRegistry(mgr manager.Manager) (bool, error)

func InitWorkloadRegistry

func InitWorkloadRegistry(mgr manager.Manager) (bool, error)

func IsSupportedBackend added in v0.2.0

func IsSupportedBackend(gvk schema.GroupVersionKind) bool

func IsSupportedRoute added in v0.2.0

func IsSupportedRoute(gvk schema.GroupVersionKind) bool

func IsSupportedWorkload added in v0.1.3

func IsSupportedWorkload(gvk schema.GroupVersionKind) bool

Types

type BackendRegistry added in v0.1.3

func NewBackendRegistry added in v0.1.3

func NewBackendRegistry() BackendRegistry

type RouteRegistry added in v0.1.3

type RouteRegistry interface {
	genericregistry.Registry[schema.GroupVersionKind, route.Route]
}

func NewRouteRegistry added in v0.1.3

func NewRouteRegistry() RouteRegistry

type WorkloadAccessor added in v0.1.3

type WorkloadAccessor struct {
	IsController bool
	Object       client.Object
	Accessor     workload.Accessor
}

type WorkloadRegistry added in v0.1.3

type WorkloadRegistry interface {
	genericregistry.Registry[schema.GroupVersionKind, workload.Accessor]

	GetControllerOf(ctx context.Context, c client.Client, obj client.Object) (*WorkloadAccessor, error)
	GetOwnersOf(ctx context.Context, c client.Client, obj client.Object) ([]*WorkloadAccessor, error)
}

func NewWorkloadRegistry added in v0.1.3

func NewWorkloadRegistry() WorkloadRegistry

Jump to

Keyboard shortcuts

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