teleproxy

package
v1.7.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DNSRedirPort is the port to which we redirect dns requests. It
	// should probably eventually be configurable and/or dynamically
	// chosen
	DNSRedirPort = "1233"

	// ProxyRedirPort is the port to which we redirect proxied IPs. It
	// should probably eventually be configurable and/or dynamically
	// chosen.
	ProxyRedirPort = "1234"

	// MagicIP is an IP from the localhost range that we resolve
	// "teleproxy" to and intercept for convenient access to the
	// teleproxy api server. This enables things like `curl
	// teleproxy/api/tables/`. In theory this could be any arbitrary
	// value that is unlikely to conflict with a real world IP, but it
	// is also handy for it to be fixed so that we can debug even if
	// DNS isn't working by doing stuff like `curl
	// 127.254.254.254/api/...`. This value happens to be the last
	// value in the IPv4 localhost range.
	MagicIP = "127.254.254.254"
)
View Source
const (
	TeleproxyWorker      = "TPY"
	TranslatorWorker     = "NAT"
	ProxyWorker          = "PXY"
	APIWorker            = "API"
	BridgeWorker         = "BRG"
	K8sBridgeWorker      = "K8S"
	K8sPortForwardWorker = "KPF"
	K8sSSHWorker         = "SSH"
	K8sApplyWorker       = "KAP"
	DkrBridgeWorker      = "DKR"
	DNSServerWorker      = "DNS"
	DNSConfigWorker      = "CFG"
	CheckReadyWorker     = "RDY"
	SignalWorker         = "SIG"
)

worker names

Variables

This section is empty.

Functions

func RunTeleproxy

func RunTeleproxy(tele *Teleproxy, version string) error

RunTeleproxy is the main entry point for Teleproxy

Types

type Teleproxy

type Teleproxy struct {
	Mode       string
	Kubeconfig string
	Context    string
	Namespace  string
	DNSIP      string
	FallbackIP string
	NoSearch   bool
	NoCheck    bool
	Version    bool
	// contains filtered or unexported fields
}

Teleproxy holds the configuration for this Teleproxy invocation

Jump to

Keyboard shortcuts

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