refgrantvalidator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultReferenceGrantFetcher

func NewDefaultReferenceGrantFetcher(factory common.Factory, options ...referenceGrantFetcherOption) *defaultReferenceGrantFetcher

func ReferenceGrantAccepts

func ReferenceGrantAccepts(referenceGrant *gatewayv1beta1.ReferenceGrant, resource common.GKNN) bool

ReferenceGrantAccepts returns true if the provided reference grant "accepts" references from the given resource. "Accepts" means that the resource is part of the "From" fields within the ReferenceGrant.

func ReferenceGrantExposes

func ReferenceGrantExposes(referenceGrant *gatewayv1beta1.ReferenceGrant, resource common.GKNN) bool

ReferenceGrantExposes returns true if the provided reference grant "exposes" the given resource. "Exposes" means that the resource is part of the "To" fields within the ReferenceGrant.

func WithAdditionalResources

func WithAdditionalResources(resources []*unstructured.Unstructured) referenceGrantFetcherOption

Types

type Extension

type Extension struct {
	// contains filtered or unexported fields
}

func NewExtension

func NewExtension(fetcher referenceGrantFetcher) *Extension

func (*Extension) Execute

func (a *Extension) Execute(graph *topology.Graph) error

Extension calculates the effective policies for all Gateways, HTTPRoutes, and Backends in the Graph.

type NodeMetadata

type NodeMetadata struct {
	ReferenceGrants map[common.GKNN]*gatewayv1beta1.ReferenceGrant
	Errors          []error
}

func Access

func Access(node *topology.Node) (*NodeMetadata, error)

Jump to

Keyboard shortcuts

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