rainbond: github.com/goodrain/rainbond/gateway/annotations/parser Index | Files

package parser

import "github.com/goodrain/rainbond/gateway/annotations/parser"


Package Files



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

func GetAnnotationWithPrefix Uses

func GetAnnotationWithPrefix(suffix string) string

GetAnnotationWithPrefix returns the prefix of ingress annotations

func GetBoolAnnotation Uses

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

GetBoolAnnotation extracts a boolean from an Ingress annotation

func GetIntAnnotation Uses

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

GetIntAnnotation extracts an int from an Ingress annotation

func GetStringAnnotation Uses

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

GetStringAnnotation extracts a string from an Ingress annotation

func GetStringAnnotationWithPrefix Uses

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 Uses

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

IngressAnnotation has a method to parse annotations located in Ingress

Package parser imports 5 packages (graph) and is imported by 9 packages. Updated 2019-03-16. Refresh now. Tools for package owners.