You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net/dns
Joe Tsai c299a96624 all: apply consistent imports of "json" packages
This runs:

        go run ./cmd/jsonimports -update -ignore=tempfork/

which applies the following rules:

  * Until the Go standard library formally accepts "encoding/json/v2"
    and "encoding/json/jsontext" into the standard library
    (i.e., they are no longer considered experimental),
    we forbid any code from directly importing those packages.
    Go code should instead import "github.com/go-json-experiment/json"
    and "github.com/go-json-experiment/json/jsontext".
    The latter packages contain aliases to the standard library
    if built on Go 1.25 with the goexperiment.jsonv2 tag specified.

  * Imports of "encoding/json" or "github.com/go-json-experiment/json/v1"
    must be explicitly imported under the package name "jsonv1".
    If both packages need to be imported, then
    the former should be imported under the package name "jsonv1std".

  * Imports of "github.com/go-json-experiment/json"
    must be explicitly imported under the package name "jsonv2".

The latter two rules exist to provide clarity when reading code.
Without them, it is unclear whether "json.Marshal" refers to v1 or v2.
With them, however, it is clear that "jsonv1.Marshal" is calling v1 and
that "jsonv2.Marshal" is calling v2.

Updates tailscale/corp#791

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
4 weeks ago
..
publicdns feature/featuretags: add option to turn off DNS 2 months ago
resolvconffile clientupdate, net/dns: fix some "tailsacle" typos 2 years ago
resolver all: apply consistent imports of "json" packages 4 weeks ago
config.go net/dns, wgengine: use viewer/cloner for Config 2 months ago
dbus.go net/dns, feature/featuretags: make NetworkManager, systemd-resolved, and DBus modular 2 months ago
debian_resolvconf.go net/dns: don't link dbus, gonotify on Android 7 months ago
direct.go feature/linuxdnsfight: move inotify watching of /etc/resolv.conf out to a feature 3 months ago
direct_test.go clientupdate, net/dns: fix some "tailsacle" typos 2 years ago
direct_unix_test.go net/dns: ensure /etc/resolv.conf is world-readable even with a umask 1 year ago
dns_clone.go net/dns, wgengine: use viewer/cloner for Config 2 months ago
dns_view.go net/dns, wgengine: use viewer/cloner for Config 2 months ago
flush_default.go all: update copyright and license headers 3 years ago
flush_windows.go cmd/tailscaled, net/dns, wgengine/router: start Windows child processes with DETACHED_PROCESS when I/O is being piped 2 years ago
ini.go all: update copyright and license headers 3 years ago
ini_test.go all: update copyright and license headers 3 years ago
manager.go net/netmon: remove usage of direct callbacks from netmon (#17292) 2 months ago
manager_darwin.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
manager_default.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
manager_freebsd.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
manager_linux.go feature/featuretags: add option to turn off DNS 2 months ago
manager_linux_test.go net/dns: ensure /etc/resolv.conf is world-readable even with a umask 1 year ago
manager_openbsd.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
manager_plan9.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
manager_plan9_test.go net/dns: add Plan 9 support 8 months ago
manager_solaris.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
manager_tcp_test.go net/netmon: remove usage of direct callbacks from netmon (#17292) 2 months ago
manager_test.go net/netmon: remove usage of direct callbacks from netmon (#17292) 2 months ago
manager_windows.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
manager_windows_test.go util/syspolicy: finish plumbing policyclient, add feature/syspolicy, move global impl 3 months ago
nm.go net/dns, feature/featuretags: make NetworkManager, systemd-resolved, and DBus modular 2 months ago
noop.go all: update copyright and license headers 3 years ago
nrpt_windows.go util/winutil/gp, net/dns: add package for Group Policy API 1 year ago
openresolv.go net/dns: don't link dbus, gonotify on Android 7 months ago
osconfig.go feature/featuretags: add option to turn off DNS 2 months ago
osconfig_test.go net/dns: fix IsZero and Equal methods on OSConfig 1 year ago
resolvconf-workaround.sh all: update copyright and license headers 3 years ago
resolvconf.go net/dns: properly detect newer debian resolvconf 2 years ago
resolvconfpath_default.go net/dns: overwrite /tmp/resolv.conf on gokrazy 2 years ago
resolvconfpath_gokrazy.go net/dns: overwrite /tmp/resolv.conf on gokrazy 2 years ago
resolvd.go net/dns: fix blank lines being added to resolv.conf on OpenBSD (#13928) 1 year ago
resolved.go util/backoff: rename logtail/backoff package to util/backoff 2 months ago
utf.go all: update copyright and license headers 3 years ago
utf_test.go all: update copyright and license headers 3 years ago
wsl_windows.go net/dns: ensure /etc/resolv.conf is world-readable even with a umask 1 year ago