sessionaffinity

package
v0.0.0-...-1701bfc Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser() parser.IngressAnnotation

NewParser creates a new Affinity annotation parser

Types

type AffinityConfig

type AffinityConfig struct {
	// The type of affinity that will be used
	AffinityType string `json:"type"`
	CookieConfig
}

AffinityConfig describes the per ingress session affinity config

type CookieConfig

type CookieConfig struct {
	// The name of the cookie that will be used in case of cookie affinity type.
	Name string `json:"name"`
	// The hash that will be used to encode the cookie in case of cookie affinity type
	Hash string `json:"hash"`
}

CookieConfig describes the Config of cookie type affinity

func CookieAffinityParse

func CookieAffinityParse(ing *extensions.Ingress) *CookieConfig

CookieAffinityParse gets the annotation values related to Cookie Affinity It also sets default values when no value or incorrect value is found

Jump to

Keyboard shortcuts

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