annotations

package
v0.0.0-...-e820323 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DeniedKeyName = "Denied"

DeniedKeyName name of the key that contains the reason to deny a location

Variables

This section is empty.

Functions

func ExtractNgrokModuleSetsFromAnnotations

func ExtractNgrokModuleSetsFromAnnotations(ing *networking.Ingress) ([]string, error)

Extracts a list of module set names from the annotation k8s.ngrok.com/modules: "module1,module2"

func ExtractNgrokTrafficPolicyFromAnnotations

func ExtractNgrokTrafficPolicyFromAnnotations(ing *networking.Ingress) (string, error)

Extracts a single traffic policy str from the annotation k8s.ngrok.com/traffic-policy: "module1"

Types

type Extractor

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

func NewAnnotationsExtractor

func NewAnnotationsExtractor() Extractor

func (Extractor) Extract

func (e Extractor) Extract(ing *networking.Ingress) *RouteModules

Extract extracts the annotations from an Ingress

Directories

Path Synopsis
Test Utilities for Ingress Annotations
Test Utilities for Ingress Annotations

Jump to

Keyboard shortcuts

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