From 0acb8c8d3c4756e7cc272311e139ef01ae1ef56e Mon Sep 17 00:00:00 2001 From: Andrew Keesler Date: Tue, 28 Jul 2020 11:28:34 -0400 Subject: [PATCH] internal-ize apiserver and registry packages These shouldn't need to be imported outside this project. Signed-off-by: Andrew Keesler --- cmd/placeholder-name/app/app.go | 2 +- {pkg => internal}/apiserver/apiserver.go | 2 +- {pkg => internal}/registry/loginrequest/rest.go | 0 {pkg => internal}/registry/loginrequest/rest_test.go | 0 4 files changed, 2 insertions(+), 2 deletions(-) rename {pkg => internal}/apiserver/apiserver.go (98%) rename {pkg => internal}/registry/loginrequest/rest.go (100%) rename {pkg => internal}/registry/loginrequest/rest_test.go (100%) diff --git a/cmd/placeholder-name/app/app.go b/cmd/placeholder-name/app/app.go index 99e977da..d6d6c6b9 100644 --- a/cmd/placeholder-name/app/app.go +++ b/cmd/placeholder-name/app/app.go @@ -32,10 +32,10 @@ import ( aggregationv1client "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset" placeholderv1alpha1 "github.com/suzerain-io/placeholder-name-api/pkg/apis/placeholder/v1alpha1" + "github.com/suzerain-io/placeholder-name/internal/apiserver" "github.com/suzerain-io/placeholder-name/internal/autoregistration" "github.com/suzerain-io/placeholder-name/internal/certauthority" "github.com/suzerain-io/placeholder-name/internal/downward" - "github.com/suzerain-io/placeholder-name/pkg/apiserver" "github.com/suzerain-io/placeholder-name/pkg/config" ) diff --git a/pkg/apiserver/apiserver.go b/internal/apiserver/apiserver.go similarity index 98% rename from pkg/apiserver/apiserver.go rename to internal/apiserver/apiserver.go index 1feb1212..2fb42b0f 100644 --- a/pkg/apiserver/apiserver.go +++ b/internal/apiserver/apiserver.go @@ -21,7 +21,7 @@ import ( placeholderapi "github.com/suzerain-io/placeholder-name-api/pkg/apis/placeholder" placeholderv1alpha1 "github.com/suzerain-io/placeholder-name-api/pkg/apis/placeholder/v1alpha1" - "github.com/suzerain-io/placeholder-name/pkg/registry/loginrequest" + "github.com/suzerain-io/placeholder-name/internal/registry/loginrequest" ) var ( diff --git a/pkg/registry/loginrequest/rest.go b/internal/registry/loginrequest/rest.go similarity index 100% rename from pkg/registry/loginrequest/rest.go rename to internal/registry/loginrequest/rest.go diff --git a/pkg/registry/loginrequest/rest_test.go b/internal/registry/loginrequest/rest_test.go similarity index 100% rename from pkg/registry/loginrequest/rest_test.go rename to internal/registry/loginrequest/rest_test.go