{"modulePath":"github.com/cloudfoundry/executor","version":"v0.0.0-20260626172623-1f62bb75b686","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package envoyconfig\n\n## Constants\n\n```go\nconst (\n\tStartProxyPort  = 61001\n\tEndProxyPort    = 65534\n\tDefaultHTTPPort = 8080\n\tC2CTLSPort      = 61443\n\tAdsClusterName  = \"pilot-ads\"\n)\n```\n\n## Variables\n\n```go\nvar (\n\tErrNoPortsAvailable   = errors.New(\"no ports available\")\n\tSupportedCipherSuites = []string{\"ECDHE-RSA-AES256-GCM-SHA384\", \"ECDHE-RSA-AES128-GCM-SHA256\"}\n\tAlpnProtocols         = []string{\"h2,http/1.1\"}\n)\n```\n\n## Functions\n\n```go\nfunc AssignProxyPorts(appPorts []executor.PortMapping) ([]executor.PortMapping, error)\n```\nAssignProxyPorts takes PortMappings with only ContainerPort set and returns enriched entries with ContainerTLSProxyPort allocated. Port 8080 also gets a C2C TLS mapping on 61443. HostPort and HostTLSProxyPort are left at 0.\n\n```go\nfunc GenerateBootstrap(\n\tcontainer executor.Container,\n\tadminPort uint16,\n\trequireClientCerts bool,\n\tadsServers []string,\n\thttp2Enabled bool,\n) ([]byte, error)\n```\nGenerateBootstrap returns envoy bootstrap YAML for the given container and options.\n\n```go\nfunc GenerateSDSCAResource(container executor.Container, idCred Credential, trustedCACerts, verifySubjectAltName []string) ([]byte, error)\n```\nGenerateSDSCAResource returns SDS discovery response YAML for the validation context (trusted CA + SAN matchers).\n\n```go\nfunc GenerateSDSCertAndKey(name string, cred Credential) ([]byte, error)\n```\nGenerateSDSCertAndKey returns SDS discovery response YAML for a cert/key secret.\n\n```go\nfunc GetAvailablePort(allocatedPorts []executor.PortMapping, extraKnownPorts ...uint16) (uint16, error)\n```\nGetAvailablePort returns a port not in allocatedPorts or extraKnownPorts.\n\n## Types\n\n```go\ntype Credential struct {\n\tCert string\n\tKey  string\n}\n```\nCredential holds cert and key PEM strings for SDS.\n\n```go\nfunc (c Credential) IsEmpty() bool\n```\n\n","path":"github.com/cloudfoundry/executor/envoyconfig","name":"envoyconfig","synopsis":"","isRedistributable":true}
