Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidRateLimit is returned when the annotation caontains invalid values ErrInvalidRateLimit = errors.New("invalid rate limit value. Must be > 0") // ErrMissingAnnotations is returned when the ingress rule // does not contains annotations related with rate limit ErrMissingAnnotations = errors.New("no annotations present") )
Functions ¶
This section is empty.
Types ¶
type RateLimit ¶
type RateLimit struct { // Connections indicates a limit with the number of connections per IP address Connections Zone // RPS indicates a limit with the number of connections per second RPS Zone }
RateLimit returns rate limit configuration for an Ingress rule Is possible to limit the number of connections per IP address or connections per second. Note: Is possible to specify both limits
func ParseAnnotations ¶
func ParseAnnotations(ing *extensions.Ingress) (*RateLimit, error)
ParseAnnotations parses the annotations contained in the ingress rule used to rewrite the defined paths
Click to show internal directories.
Click to hide internal directories.