mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
20 lines
452 B
Go
20 lines
452 B
Go
package v1alpha1
|
|
|
|
// Describes how to match a given string in HTTP headers. Match is
|
|
// case-sensitive.
|
|
type StringMatch struct {
|
|
// Specified exactly one of the fields below.
|
|
|
|
// exact string match
|
|
Exact string `json:"exact,omitempty"`
|
|
|
|
// prefix-based match
|
|
Prefix string `json:"prefix,omitempty"`
|
|
|
|
// suffix-based match.
|
|
Suffix string `json:"suffix,omitempty"`
|
|
|
|
// ECMAscript style regex-based match
|
|
Regex string `json:"regex,omitempty"`
|
|
}
|