func ScopeMatchCloudLocal(addr Address) ScopeMatch {
	switch addr.AddressScope() {
	case ScopeCloudLocal:
		if addr.AddressType() == IPv4Address {
			return exactScopeIPv4
		}
		return exactScope
	case ScopeFanLocal:
		if addr.AddressType() == IPv4Address {
			return firstFallbackScopeIPv4
		}
		return firstFallbackScope
	case ScopePublic, ScopeUnknown:
		if addr.AddressType() == IPv4Address {
			return secondFallbackScopeIPv4
		}
		return secondFallbackScope
	}
	return invalidScope
}
// ScopeMatchCloudLocal is an address scope matching function for determining
// the extent to which the input address' scope satisfies a requirement for
// accessibility from within the local cloud.
// Machine-only addresses do not satisfy this matcher.
ScopeMatchCloudLocal is an address scope matching function for determining
the extent to which the input address' scope satisfies a requirement for
accessibility from within the local cloud.
Machine-only addresses do not satisfy this matcher.
// ScopeMatchCloudLocal is an address scope matching function for determining // the extent to which the input address ' scope satisfies a requirement for // accessibility from within the local cloud . // Machine - only addresses do not satisfy this matcher .
func ScopeMatchCloudLocal(addr Address) ScopeMatch {
	switch addr.AddressScope() {
	case ScopeCloudLocal:
		if addr.AddressType() == IPv4Address {
			return exactScopeIPv4
		}
		return exactScope
	case ScopeFanLocal:
		if addr.AddressType() == IPv4Address {
			return firstFallbackScopeIPv4
		}
		return firstFallbackScope
	case ScopePublic, ScopeUnknown:
		if addr.AddressType() == IPv4Address {
			return secondFallbackScopeIPv4
		}
		return secondFallbackScope
	}
	return invalidScope
}
func ScopeMatchCloudLocal ( addr Address ) ScopeMatch { switch addr . AddressScope ( ) { case ScopeCloudLocal : if addr . AddressType ( ) == IPv4Address { return exactScopeIPv4 } return exactScope case ScopeFanLocal : if addr . AddressType ( ) == IPv4Address { return firstFallbackScopeIPv4 } return firstFallbackScope case ScopePublic , ScopeUnknown : if addr . AddressType ( ) == IPv4Address { return secondFallbackScopeIPv4 } return secondFallbackScope } return invalidScope }
ScopeMatchCloudLocal is an address scope matching function for determining
the extent to which the input address' scope satisfies a requirement for
accessibility from within the local cloud.
ScopeMatchCloudLocal is an address scope matching function for determining the extent to which the input address ' scope satisfies a requirement for accessibility from within the local cloud .