Skip to content

Commit

Permalink
Move pkg to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
max-rocket-internet committed Jan 8, 2024
1 parent 73ef276 commit 20c9c9a
Show file tree
Hide file tree
Showing 34 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions pkg/checkup/container.go → internal/checkup/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package checkup
import (
"fmt"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
v1 "k8s.io/api/core/v1"
)

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/checkup/daemonsets.go → internal/checkup/daemonsets.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package checkup
import (
"fmt"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
v1 "k8s.io/api/apps/v1"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"

appsv1 "k8s.io/api/apps/v1"
)
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/checkup/endpoints.go → internal/checkup/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

v1 "k8s.io/api/core/v1"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
)

func CheckEndpoints(resources *v1.EndpointsList) (results symptoms.SymptomList) {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/checkup/events.go → internal/checkup/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
v1 "k8s.io/api/core/v1"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package checkup
import (
"fmt"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
autoscaling "k8s.io/api/autoscaling/v2"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/checkup/jobs.go → internal/checkup/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
batchv1 "k8s.io/api/batch/v1"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package checkup
import (
"fmt"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/kubernetes/statuses"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/kubernetes/statuses"
"github.com/max-rocket-internet/kube-doctor/internal/log"
)

func KubeApiHealthStatuses(resources *statuses.KubeApiHealthEndpointStatusList) (results symptoms.SymptomList) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package checkup
import (
"testing"

"github.com/max-rocket-internet/kube-doctor/pkg/kubernetes/statuses"
"github.com/max-rocket-internet/kube-doctor/internal/kubernetes/statuses"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/checkup/nodes.go → internal/checkup/nodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"

v1 "k8s.io/api/core/v1"
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
v1 "k8s.io/api/core/v1"
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
v1 "k8s.io/api/core/v1"
)

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/checkup/pods.go → internal/checkup/pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"time"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
v1 "k8s.io/api/core/v1"
)

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/checkup/services.go → internal/checkup/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package checkup
import (
"fmt"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/log"
v1 "k8s.io/api/core/v1"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions pkg/doctor/checkup.go → internal/doctor/checkup.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package doctor
import (
"fmt"

"github.com/max-rocket-internet/kube-doctor/pkg/checkup"
"github.com/max-rocket-internet/kube-doctor/pkg/kubernetes"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/checkup"
"github.com/max-rocket-internet/kube-doctor/internal/kubernetes"
"github.com/max-rocket-internet/kube-doctor/internal/log"
"github.com/urfave/cli/v2"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/clientcmd"

"github.com/max-rocket-internet/kube-doctor/pkg/kubernetes/statuses"
"github.com/max-rocket-internet/kube-doctor/pkg/log"
"github.com/max-rocket-internet/kube-doctor/internal/kubernetes/statuses"
"github.com/max-rocket-internet/kube-doctor/internal/log"
)

var (
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/log/log.go → internal/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"

"github.com/fatih/color"
"github.com/max-rocket-internet/kube-doctor/pkg/checkup/symptoms"
"github.com/max-rocket-internet/kube-doctor/internal/checkup/symptoms"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"os"

"github.com/max-rocket-internet/kube-doctor/pkg/doctor"
"github.com/max-rocket-internet/kube-doctor/internal/doctor"
"github.com/urfave/cli/v2"
)

Expand Down

0 comments on commit 20c9c9a

Please sign in to comment.