Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move pkg to internal #7

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
Loading