From 3683d3e82f7c84594d3b63b1ea985febb80e2cc7 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Wed, 10 May 2023 09:24:05 +0200 Subject: [PATCH] rename package name to hscontrol Signed-off-by: Kristoffer Dalby --- hscontrol/acls.go | 2 +- hscontrol/acls_test.go | 2 +- hscontrol/acls_types.go | 2 +- hscontrol/api.go | 2 +- hscontrol/api_common.go | 2 +- hscontrol/api_key.go | 2 +- hscontrol/api_key_test.go | 2 +- hscontrol/app.go | 2 +- hscontrol/app_test.go | 2 +- hscontrol/config.go | 2 +- hscontrol/db.go | 2 +- hscontrol/derp.go | 2 +- hscontrol/derp_server.go | 2 +- hscontrol/dns.go | 2 +- hscontrol/dns_test.go | 2 +- hscontrol/grpcv1.go | 2 +- hscontrol/grpcv1_test.go | 2 +- hscontrol/handler_legacy.go | 2 +- hscontrol/handler_placeholder.go | 2 +- hscontrol/integration_cli_test.go | 2 +- hscontrol/integration_common_test.go | 2 +- hscontrol/machine.go | 2 +- hscontrol/machine_test.go | 2 +- hscontrol/matcher.go | 2 +- hscontrol/matcher_test.go | 2 +- hscontrol/metrics.go | 2 +- hscontrol/noise.go | 2 +- hscontrol/oidc.go | 2 +- hscontrol/platform_config.go | 2 +- hscontrol/preauth_keys.go | 2 +- hscontrol/preauth_keys_test.go | 2 +- hscontrol/protocol_common.go | 2 +- hscontrol/protocol_common_poll.go | 2 +- hscontrol/protocol_common_utils.go | 2 +- hscontrol/protocol_legacy.go | 2 +- hscontrol/protocol_legacy_poll.go | 2 +- hscontrol/protocol_noise.go | 2 +- hscontrol/protocol_noise_poll.go | 2 +- hscontrol/routes.go | 2 +- hscontrol/routes_test.go | 2 +- hscontrol/swagger.go | 2 +- hscontrol/users.go | 2 +- hscontrol/users_test.go | 2 +- hscontrol/utils.go | 2 +- hscontrol/utils_test.go | 2 +- 45 files changed, 45 insertions(+), 45 deletions(-) diff --git a/hscontrol/acls.go b/hscontrol/acls.go index a771df5..1f411a4 100644 --- a/hscontrol/acls.go +++ b/hscontrol/acls.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "encoding/json" diff --git a/hscontrol/acls_test.go b/hscontrol/acls_test.go index d6e10a7..a065bf7 100644 --- a/hscontrol/acls_test.go +++ b/hscontrol/acls_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "errors" diff --git a/hscontrol/acls_types.go b/hscontrol/acls_types.go index b98b2d2..0e55351 100644 --- a/hscontrol/acls_types.go +++ b/hscontrol/acls_types.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "encoding/json" diff --git a/hscontrol/api.go b/hscontrol/api.go index 308bc28..f8b1496 100644 --- a/hscontrol/api.go +++ b/hscontrol/api.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "bytes" diff --git a/hscontrol/api_common.go b/hscontrol/api_common.go index 7905c29..3dd65ac 100644 --- a/hscontrol/api_common.go +++ b/hscontrol/api_common.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "time" diff --git a/hscontrol/api_key.go b/hscontrol/api_key.go index ae19eb9..6382a33 100644 --- a/hscontrol/api_key.go +++ b/hscontrol/api_key.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "fmt" diff --git a/hscontrol/api_key_test.go b/hscontrol/api_key_test.go index 2ddbbbc..fd4fa00 100644 --- a/hscontrol/api_key_test.go +++ b/hscontrol/api_key_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "time" diff --git a/hscontrol/app.go b/hscontrol/app.go index 79784ba..430c8ab 100644 --- a/hscontrol/app.go +++ b/hscontrol/app.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "context" diff --git a/hscontrol/app_test.go b/hscontrol/app_test.go index 5f23fd2..7d3907d 100644 --- a/hscontrol/app_test.go +++ b/hscontrol/app_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "net/netip" diff --git a/hscontrol/config.go b/hscontrol/config.go index b97ba04..0e83a1c 100644 --- a/hscontrol/config.go +++ b/hscontrol/config.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "errors" diff --git a/hscontrol/db.go b/hscontrol/db.go index fb5c5c3..14df4b3 100644 --- a/hscontrol/db.go +++ b/hscontrol/db.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "context" diff --git a/hscontrol/derp.go b/hscontrol/derp.go index a447da7..fbc366a 100644 --- a/hscontrol/derp.go +++ b/hscontrol/derp.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "context" diff --git a/hscontrol/derp_server.go b/hscontrol/derp_server.go index c4e0d65..9ca6eee 100644 --- a/hscontrol/derp_server.go +++ b/hscontrol/derp_server.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "context" diff --git a/hscontrol/dns.go b/hscontrol/dns.go index da1a95d..72c5b03 100644 --- a/hscontrol/dns.go +++ b/hscontrol/dns.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "fmt" diff --git a/hscontrol/dns_test.go b/hscontrol/dns_test.go index eb96bbe..b825721 100644 --- a/hscontrol/dns_test.go +++ b/hscontrol/dns_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "fmt" diff --git a/hscontrol/grpcv1.go b/hscontrol/grpcv1.go index 2be047b..a65a380 100644 --- a/hscontrol/grpcv1.go +++ b/hscontrol/grpcv1.go @@ -1,5 +1,5 @@ // nolint -package headscale +package hscontrol import ( "context" diff --git a/hscontrol/grpcv1_test.go b/hscontrol/grpcv1_test.go index e48ae1e..1d87bfe 100644 --- a/hscontrol/grpcv1_test.go +++ b/hscontrol/grpcv1_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import "testing" diff --git a/hscontrol/handler_legacy.go b/hscontrol/handler_legacy.go index 8911d43..bb94b1e 100644 --- a/hscontrol/handler_legacy.go +++ b/hscontrol/handler_legacy.go @@ -1,6 +1,6 @@ //go:build ts2019 -package headscale +package hscontrol import ( "net/http" diff --git a/hscontrol/handler_placeholder.go b/hscontrol/handler_placeholder.go index 25fe9c6..73d17c4 100644 --- a/hscontrol/handler_placeholder.go +++ b/hscontrol/handler_placeholder.go @@ -1,6 +1,6 @@ //go:build !ts2019 -package headscale +package hscontrol import "github.com/gorilla/mux" diff --git a/hscontrol/integration_cli_test.go b/hscontrol/integration_cli_test.go index d6d3256..feac000 100644 --- a/hscontrol/integration_cli_test.go +++ b/hscontrol/integration_cli_test.go @@ -1,5 +1,5 @@ // nolint -package headscale +package hscontrol import ( "encoding/json" diff --git a/hscontrol/integration_common_test.go b/hscontrol/integration_common_test.go index edc0280..86ba648 100644 --- a/hscontrol/integration_common_test.go +++ b/hscontrol/integration_common_test.go @@ -1,5 +1,5 @@ // nolint -package headscale +package hscontrol import ( "bytes" diff --git a/hscontrol/machine.go b/hscontrol/machine.go index 9b775a4..9f04d8c 100644 --- a/hscontrol/machine.go +++ b/hscontrol/machine.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "database/sql/driver" diff --git a/hscontrol/machine_test.go b/hscontrol/machine_test.go index 7fc641a..87ca760 100644 --- a/hscontrol/machine_test.go +++ b/hscontrol/machine_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "fmt" diff --git a/hscontrol/matcher.go b/hscontrol/matcher.go index 1a186c4..3b4670e 100644 --- a/hscontrol/matcher.go +++ b/hscontrol/matcher.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "fmt" diff --git a/hscontrol/matcher_test.go b/hscontrol/matcher_test.go index 03b585c..fb0e9b0 100644 --- a/hscontrol/matcher_test.go +++ b/hscontrol/matcher_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "net/netip" diff --git a/hscontrol/metrics.go b/hscontrol/metrics.go index f1f8690..087ce30 100644 --- a/hscontrol/metrics.go +++ b/hscontrol/metrics.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "github.com/prometheus/client_golang/prometheus" diff --git a/hscontrol/noise.go b/hscontrol/noise.go index 9cc489a..f938dfe 100644 --- a/hscontrol/noise.go +++ b/hscontrol/noise.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "encoding/binary" diff --git a/hscontrol/oidc.go b/hscontrol/oidc.go index 5aa3ba6..332ce09 100644 --- a/hscontrol/oidc.go +++ b/hscontrol/oidc.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "bytes" diff --git a/hscontrol/platform_config.go b/hscontrol/platform_config.go index b23133e..0404f54 100644 --- a/hscontrol/platform_config.go +++ b/hscontrol/platform_config.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "bytes" diff --git a/hscontrol/preauth_keys.go b/hscontrol/preauth_keys.go index 3222c71..6cff90b 100644 --- a/hscontrol/preauth_keys.go +++ b/hscontrol/preauth_keys.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "crypto/rand" diff --git a/hscontrol/preauth_keys_test.go b/hscontrol/preauth_keys_test.go index 697144f..bd383cf 100644 --- a/hscontrol/preauth_keys_test.go +++ b/hscontrol/preauth_keys_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "time" diff --git a/hscontrol/protocol_common.go b/hscontrol/protocol_common.go index 2a30046..97da464 100644 --- a/hscontrol/protocol_common.go +++ b/hscontrol/protocol_common.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "encoding/json" diff --git a/hscontrol/protocol_common_poll.go b/hscontrol/protocol_common_poll.go index 09df630..f267c99 100644 --- a/hscontrol/protocol_common_poll.go +++ b/hscontrol/protocol_common_poll.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "context" diff --git a/hscontrol/protocol_common_utils.go b/hscontrol/protocol_common_utils.go index 96c236d..e05b04a 100644 --- a/hscontrol/protocol_common_utils.go +++ b/hscontrol/protocol_common_utils.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "encoding/binary" diff --git a/hscontrol/protocol_legacy.go b/hscontrol/protocol_legacy.go index 99f68e5..6712828 100644 --- a/hscontrol/protocol_legacy.go +++ b/hscontrol/protocol_legacy.go @@ -1,6 +1,6 @@ //go:build ts2019 -package headscale +package hscontrol import ( "io" diff --git a/hscontrol/protocol_legacy_poll.go b/hscontrol/protocol_legacy_poll.go index a8d9343..0121bf3 100644 --- a/hscontrol/protocol_legacy_poll.go +++ b/hscontrol/protocol_legacy_poll.go @@ -1,6 +1,6 @@ //go:build ts2019 -package headscale +package hscontrol import ( "errors" diff --git a/hscontrol/protocol_noise.go b/hscontrol/protocol_noise.go index eb18a47..dfbad73 100644 --- a/hscontrol/protocol_noise.go +++ b/hscontrol/protocol_noise.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "encoding/json" diff --git a/hscontrol/protocol_noise_poll.go b/hscontrol/protocol_noise_poll.go index d5e9a8a..38f2b1c 100644 --- a/hscontrol/protocol_noise_poll.go +++ b/hscontrol/protocol_noise_poll.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "encoding/json" diff --git a/hscontrol/routes.go b/hscontrol/routes.go index f1fbb99..89f9a69 100644 --- a/hscontrol/routes.go +++ b/hscontrol/routes.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "errors" diff --git a/hscontrol/routes_test.go b/hscontrol/routes_test.go index e2d056b..1e5e2bb 100644 --- a/hscontrol/routes_test.go +++ b/hscontrol/routes_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "net/netip" diff --git a/hscontrol/swagger.go b/hscontrol/swagger.go index 306fc1f..9072dcf 100644 --- a/hscontrol/swagger.go +++ b/hscontrol/swagger.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "bytes" diff --git a/hscontrol/users.go b/hscontrol/users.go index c32213a..8782a89 100644 --- a/hscontrol/users.go +++ b/hscontrol/users.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "errors" diff --git a/hscontrol/users_test.go b/hscontrol/users_test.go index 144c333..12aa988 100644 --- a/hscontrol/users_test.go +++ b/hscontrol/users_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "net/netip" diff --git a/hscontrol/utils.go b/hscontrol/utils.go index 8bdb2b3..9cfbf0c 100644 --- a/hscontrol/utils.go +++ b/hscontrol/utils.go @@ -3,7 +3,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package headscale +package hscontrol import ( "context" diff --git a/hscontrol/utils_test.go b/hscontrol/utils_test.go index fd1d25e..436df8a 100644 --- a/hscontrol/utils_test.go +++ b/hscontrol/utils_test.go @@ -1,4 +1,4 @@ -package headscale +package hscontrol import ( "net/netip"