viewa

package
v0.7.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package viewa computes view A, spec-level Gateway API attachment (D-020 (A), rules §4): sectionName and port, allowedRoutes namespaces and kinds, and hostname intersection. Rule sets call Attach with their own Options and add implementation behaviour, such as kgateway's listener isolation, after it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

Attach computes view A (rules §4) with the rule set's options o. Routes are indexed by the resource their parentRefs name, so each resource sees only its candidates.

Deps slices are shared between results and are never mutated after sharing.

Types

type Options

type Options struct {
	// AllowedKinds returns the route kinds a listener admits by its protocol,
	// before allowedRoutes.kinds narrows them. It must be set.
	AllowedKinds func(l objects.Listener) []objects.GroupKind
	// MatchKindOnly matches a route to an allowed kind by kind alone,
	// ignoring its group. Without it the group must match too.
	MatchKindOnly bool
}

Options are a rule set's parameters for view A.

Jump to

Keyboard shortcuts

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