cloudenv
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package cloudenv reports which known cloud environment we're running in.
Index¶
Constants¶
const (AWS =Cloud("aws")// Amazon Web Services (EC2 in particular)Azure =Cloud("azure")// Microsoft AzureGCP =Cloud("gcp")// Google CloudDigitalOcean =Cloud("digitalocean")// DigitalOcean)
const AWSResolverIP = "169.254.169.253"AWSResolverIP is the IP address of the AWS DNS server.Seehttps://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html
const AzureResolverIP = "168.63.129.16"AzureResolverIP is Azure's DNS resolver IP.Seehttps://docs.microsoft.com/en-us/azure/virtual-network/what-is-ip-address-168-63-129-16
const CommonNonRoutableMetadataIP = "169.254.169.254"CommonNonRoutableMetadataIP is the IP address of the metadata serveron Amazon EC2, Google Compute Engine, and Azure. It's not routable.(169.254.0.0/16 is a Link Local range:RFC 3927)
const GoogleMetadataAndDNSIP = "169.254.169.254"GoogleMetadataAndDNSIP is the metadata IP used by Google Cloud.It's also the *.internal DNS server, and proxies to 8.8.8.8.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeCloud¶
type Cloudstring
Cloud is a recognize cloud environment with properties thatTailscale can specialize for in places.
func (Cloud)HasInternalTLD¶
HasInternalTLD reports whether c is a cloud environmentwhose ResolverIP serves *.internal records.
func (Cloud)ResolverIP¶
ResolverIP returns the cloud host's recursive DNS server or theempty string if not available.