Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mapper ¶
type Mapper struct {
// contains filtered or unexported fields
}
func (*Mapper) Map ¶
func (m *Mapper) Map(apiDefinition *v1alpha1.ApiDefinition, ingress *v1.Ingress) *v1alpha1.ApiDefinition
Map maps an ingress to a graviteeio API definition, adding one virtual host per ingress rule, one endpoint per backend service, and one conditional flow per host and path of the rule. The host header is used to select the flow, and a dynamic routing policy routes the request to the backend service, identified by the endpoint name. Is no rule matches, a 404 response is returned by a flow that negates all the previous conditions.
type Opts ¶
type Opts struct {
Templates map[int]ResponseTemplate
}
type ResponseTemplate ¶
Click to show internal directories.
Click to hide internal directories.