Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParser ¶
func NewParser() parser.IngressAnnotation
NewParser creates a new CORS annotation parser
Types ¶
type CorsConfig ¶
type CorsConfig struct {
CorsEnabled bool `json:"corsEnabled"`
CorsAllowOrigin string `json:"corsAllowOrigin"`
CorsAllowMethods string `json:"corsAllowMethods"`
CorsAllowHeaders string `json:"corsAllowHeaders"`
CorsAllowCredentials bool `json:"corsAllowCredentials"`
CorsMaxAge int `json:"corsMaxAge"`
CorsExposeHeaders string `json:"corsExposeHeaders"`
}
CorsConfig contains the Cors configuration to be used in the Ingress
func (*CorsConfig) Equal ¶
func (c1 *CorsConfig) Equal(c2 *CorsConfig) bool
Equal tests for equality between two External types
Click to show internal directories.
Click to hide internal directories.