// GetHTTPIngressList returns a list of all the ingresses for HTTP from cache.
GetHTTPIngressList returns a list of all the ingresses for HTTP from cache.
// GetHTTPIngressList returns a list of all the ingresses for HTTP from cache .
func (c *Context) GetHTTPIngressList() []*v1beta1.Ingress {
	ingressListInterface := c.Caches.Ingress.List()
	ingressList := make([]*v1beta1.Ingress, 0)
	for _, ingressInterface := range ingressListInterface {
		ingress := ingressInterface.(*v1beta1.Ingress)
		hasHTTPRule := false
		for _, rule := range ingress.Spec.Rules {
			if rule.HTTP != nil {
				hasHTTPRule = true
				break
			}
		}
		if hasHTTPRule && IsIngressApplicationGateway(ingress) {
			ingressList = append(ingressList, ingress)
		}
	}
	return ingressList
}
func ( c * Context ) GetHTTPIngressList ( ) [ ] * v1beta1 . Ingress { ingressListInterface := c . Caches . Ingress . List ( ) ingressList := make ( [ ] * v1beta1 . Ingress , 0 ) for _ , ingressInterface := range ingressListInterface { ingress := ingressInterface . ( * v1beta1 . Ingress ) hasHTTPRule := false for _ , rule := range ingress . Spec . Rules { if rule . HTTP != nil { hasHTTPRule = true break } } if hasHTTPRule && IsIngressApplicationGateway ( ingress ) { ingressList = append ( ingressList , ingress ) } } return ingressList }
GetHTTPIngressList returns a list of all the ingresses for HTTP from cache.
GetHTTPIngressList returns a list of all the ingresses for HTTP from cache .