Back to godoc.org

Package parser

v5.2.0-release+incompa...
Latest Go to latest

The latest major version is .

Published: Apr 16, 2020 | License: LGPL-3.0 | Module: github.com/goodrain/rainbond

Index

Variables

var (
	// AnnotationsPrefix defines the common prefix used in the nginx ingress controller
	AnnotationsPrefix = "nginx.ingress.kubernetes.io"
)

func GetAnnotationWithPrefix

func GetAnnotationWithPrefix(suffix string) string

GetAnnotationWithPrefix returns the prefix of ingress annotations

func GetBoolAnnotation

func GetBoolAnnotation(name string, ing *extensions.Ingress) (bool, error)

GetBoolAnnotation extracts a boolean from an Ingress annotation

func GetIntAnnotation

func GetIntAnnotation(name string, ing *extensions.Ingress) (int, error)

GetIntAnnotation extracts an int from an Ingress annotation

func GetStringAnnotation

func GetStringAnnotation(name string, ing *extensions.Ingress) (string, error)

GetStringAnnotation extracts a string from an Ingress annotation

func GetStringAnnotationWithPrefix

func GetStringAnnotationWithPrefix(prefix string, ing *extensions.Ingress) (map[string]string, error)

GetStringAnnotationWithPrefix extracts an string from an Ingress annotation based on the annotation prefix

type IngressAnnotation

type IngressAnnotation interface {
	Parse(ing *extensions.Ingress) (interface{}, error)
}

IngressAnnotation has a method to parse annotations located in Ingress

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier