referencegrants

package
v2.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGatewayIn

func FromGatewayIn(namespace string) gatewayapi.ReferenceGrantFrom

func FromHTTPRouteIn

func FromHTTPRouteIn(namespace string) gatewayapi.ReferenceGrantFrom

func IsReferencePermitted

func IsReferencePermitted(
	ctx context.Context,
	client kube_client.Client,
	reference PolicyReference,
) (bool, error)

IsReferencePermitted returns whether the given reference is permitted with respect to ReferenceGrants.

Types

type PolicyReference

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

func (*PolicyReference) GroupKindReferredTo

func (pr *PolicyReference) GroupKindReferredTo() kube_schema.GroupKind

func (*PolicyReference) NamespacedNameReferredTo

func (pr *PolicyReference) NamespacedNameReferredTo() kube_types.NamespacedName

Jump to

Keyboard shortcuts

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