ingress

package
v0.0.0-...-1d35728 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance interface {
	echo.Caller
	// HTTPAddresses returns the external HTTP (80) address of the ingress gateway ((or the NodePort address,
	// when in an environment that doesn't support LoadBalancer).
	HTTPAddresses() ([]string, []int)
	// HTTPSAddresses returns the external HTTPS (443) address of the ingress gateway (or the NodePort address,
	// when in an environment that doesn't support LoadBalancer).
	HTTPSAddresses() ([]string, []int)
	// TCPAddresses returns the external TCP (31400) address of the ingress gateway (or the NodePort address,
	// when in an environment that doesn't support LoadBalancer).
	TCPAddresses() ([]string, []int)
	// DiscoveryAddresses returns the external XDS (15012) address on the ingress gateway (or the NodePort address,
	// when in an environment that doesn't support LoadBalancer).
	DiscoveryAddresses() []netip.AddrPort
	// AddressesForPort returns the external address of the ingress gateway (or the NodePort address,
	// when in an environment that doesn't support LoadBalancer) for the given port.
	AddressesForPort(port int) ([]string, []int)

	// PodID returns the name of the ingress gateway pod of index i. Returns error if failed to get the pod
	// or the index is out of boundary.
	PodID(i int) (string, error)

	// Cluster the ingress is deployed to
	Cluster() cluster.Cluster

	// Namespace of the ingress
	Namespace() string
}

Instance represents a deployed Ingress Gateway instance.

type Instances

type Instances []Instance

func (Instances) Callers

func (i Instances) Callers() echo.Callers

Jump to

Keyboard shortcuts

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