policy

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGatewayIn

func FromGatewayIn(namespace string) gatewayapi_alpha.ReferenceGrantFrom

func FromHTTPRouteIn

func FromHTTPRouteIn(namespace string) gatewayapi_alpha.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 ReferencePolicies.

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