kubernetes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRegexWithCaptureGroup added in v0.3.0

func GenerateRegexWithCaptureGroup(basePath, operation, pathMatch string) string

GenerateRegexWithCaptureGroup generates a regex pattern that captures the basePath + operation part Parameters:

  • basePath: the base path to match (e.g., "/api/v1/reading-list")
  • operation: the operation path with parameters (e.g., "/books/{id}")
  • pathMatch: the full path to match against (e.g., "/default-project/reading-list-service/api/v1/reading-list/books/{id}")

Returns a regex with a capture group around the basePath + operation portion

func MakeAddress

func MakeAddress(epCtx *dataplane.EndpointContext, gwType visibility.GatewayType) string

MakeAddress constructs the full HTTPS URL for an endpoint

func MakeHTTPRouteFilters added in v0.3.0

func MakeHTTPRouteFilters(epCtx *dataplane.EndpointContext, gwType visibility.GatewayType) []*egv1a1.HTTPRouteFilter

func MakeHTTPRoutes added in v0.3.0

func MakeHTTPRoutes(epCtx *dataplane.EndpointContext, gwType visibility.GatewayType) []*gwapiv1.HTTPRoute

func MakeSecurityPolicies added in v0.3.0

func MakeSecurityPolicies(epCtx *dataplane.EndpointContext, gwType visibility.GatewayType) []*egv1a1.SecurityPolicy

func NewHTTPRouteFiltersHandler added in v0.3.0

func NewHTTPRouteFiltersHandler(kubernetesClient client.Client, visibility visibility.VisibilityStrategy) dataplane.ResourceHandler[dataplane.EndpointContext]

Types

type SecurityPoliciesHandler added in v0.3.0

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

func (*SecurityPoliciesHandler) Create added in v0.3.0

func (*SecurityPoliciesHandler) Delete added in v0.3.0

func (*SecurityPoliciesHandler) GetCurrentState added in v0.3.0

func (h *SecurityPoliciesHandler) GetCurrentState(ctx context.Context, epCtx *dataplane.EndpointContext) (interface{}, error)

func (*SecurityPoliciesHandler) IsRequired added in v0.3.0

func (*SecurityPoliciesHandler) Name added in v0.3.0

func (h *SecurityPoliciesHandler) Name() string

func (*SecurityPoliciesHandler) Update added in v0.3.0

func (h *SecurityPoliciesHandler) Update(ctx context.Context, epCtx *dataplane.EndpointContext, currentState interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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