proxy

package
v0.0.0-...-b55e7ca Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 22 Imported by: 0

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