Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractIngressFromList ¶
func ExtractIngressFromList(ingresses []corev1.LoadBalancerIngress, err error) (string, error)
ExtractIngressFromList is a utility function to wrap IngressLister.ListIngresses and extract a single ingress.
Types ¶
type IngressLister ¶
type IngressLister interface {
ListIngresses(opts ...ListIngressesOption) ([]corev1.LoadBalancerIngress, error)
}
IngressLister gets Istio ingresses points for clusters.
func NewIstioClient ¶
func NewIstioClient(c kubernetes.Interface) IngressLister
NewIstioClient creates an IngressLister used to find ingress points for the cluster's apps.
type ListIngressesOption ¶
type ListIngressesOption func(*listIngressesConfig)
ListIngressesOption is a single option for configuring a listIngressesConfig
func WithListIngressesNamespace ¶
func WithListIngressesNamespace(val string) ListIngressesOption
WithListIngressesNamespace creates an Option that sets the Kubernetes namespace to search for Ingresses
func WithListIngressesService ¶
func WithListIngressesService(val string) ListIngressesOption
WithListIngressesService creates an Option that sets the name of the ingress service
type ListIngressesOptions ¶
type ListIngressesOptions []ListIngressesOption
ListIngressesOptions is a configuration set defining a listIngressesConfig
func ListIngressesOptionDefaults ¶
func ListIngressesOptionDefaults() ListIngressesOptions
ListIngressesOptionDefaults gets the default values for ListIngresses.
func (ListIngressesOptions) Extend ¶
func (opts ListIngressesOptions) Extend(other ListIngressesOptions) ListIngressesOptions
Extend creates a new ListIngressesOptions with the contents of other overriding the values set in this ListIngressesOptions.
func (ListIngressesOptions) Namespace ¶
func (opts ListIngressesOptions) Namespace() string
Namespace returns the last set value for Namespace or the empty value if not set.
func (ListIngressesOptions) Service ¶
func (opts ListIngressesOptions) Service() string
Service returns the last set value for Service or the empty value if not set.