istio

package
v0.2.0-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

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

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.

Directories

Path Synopsis
Package fake is a generated GoMock package.
Package fake is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL