proxy

package
v1.0.0-cli.0...-421df98 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: AGPL-3.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DNSClusterName         = "dns"
	OriginalDstClusterName = "public"
	TCPPort                = 9111
	HTTPPort               = 9080
	DNSPort                = 9053
)

Variables

This section is empty.

Functions

func DNSClusterResource

func DNSClusterResource() *clusterv3.Cluster

func DNSListenerResourceGroup

func DNSListenerResourceGroup(
	workloadID string,
	clusterName string,
	listenerAddr netip.AddrPort,
	upstreamAddr netip.AddrPort,
) (xds.ResourceGroup, error)

func OriginalDstClusterResource

func OriginalDstClusterResource() *clusterv3.Cluster

func WorkloadResources

func WorkloadResources(
	workloadID string,
	httpListenerAddr netip.AddrPort,
	tcpListenerAddr netip.AddrPort,
	originalDstClusterName string,
) (xds.ResourceGroup, error)

Types

type Config

type Config struct {
	DNSUpstream netip.AddrPort
}

type Server

type Server struct {
	proxyv1alpha1.UnimplementedProxyServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(svc Service) *Server

type Service

type Service interface {
	CreateListeners(ctx context.Context, workloadID string, addr netip.Addr) error
	ApplyGlobalResources(ctx context.Context) error
	DeleteListeners(ctx context.Context, workloadID string) error
}

func NewService

func NewService(logger *slog.Logger, cfg Config, resourceMap xds.Map) Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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