sessionaffinity

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 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 cookie strategy that will be used in case of cookie affinity type.
	Strategy string `json:"strategy"`
	// The hash that will be used to encode the cookie in case of cookie affinity type
	Hash string `json:"hash"`
	// Indicates whether or not dynamic cookies will be generated.
	Dynamic bool `json:"dynamic"`
}

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