Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPFieldsValidator ¶
type HTTPFieldsValidator interface { ValidatePathInMatch(path string) error ValidateHeaderNameInMatch(name string) error ValidateHeaderValueInMatch(value string) error ValidateQueryParamNameInMatch(name string) error ValidateQueryParamValueInMatch(name string) error ValidateMethodInMatch(method string) (valid bool, supportedValues []string) ValidateRedirectScheme(scheme string) (valid bool, supportedValues []string) ValidateRedirectPort(port int32) error ValidateRedirectStatusCode(statusCode int) (valid bool, supportedValues []string) ValidateHostname(hostname string) error ValidateRewritePath(path string) error ValidateRequestHeaderName(name string) error ValidateRequestHeaderValue(value string) error }
HTTPFieldsValidator validates the HTTP-related fields of Gateway API resources from the perspective of a data-plane. Data-plane implementations must implement this interface.
type Validators ¶
type Validators struct {
HTTPFieldsValidator HTTPFieldsValidator
}
Validators include validators for Gateway API resources from the perspective of a data-plane. It is used for fields that propagate into the data plane configuration. For example, the path in a routing rule. However, not all such fields are validated: NGF will not validate a field using Validators if it is confident that the field is valid.
Click to show internal directories.
Click to hide internal directories.