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 ¶
func Attach(in computed.AttachmentInput, o Options) computed.AttachmentResult
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.
Click to show internal directories.
Click to hide internal directories.