Skip to content

Commit

Permalink
rename src folder to pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
dhenkel92 committed Oct 23, 2020
1 parent bb8ee00 commit a4509cc
Show file tree
Hide file tree
Showing 22 changed files with 31 additions and 21 deletions.
7 changes: 4 additions & 3 deletions cmd/kubectl_dsh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
"path/filepath"
"sort"

"github.com/dhenkel92/pod-helper/src/config"
"github.com/dhenkel92/pod-helper/pkg/config"

"github.com/dhenkel92/pod-helper/src/executor"
"github.com/dhenkel92/pod-helper/pkg/executor"

_ "k8s.io/client-go/plugin/pkg/client/auth"
"k8s.io/client-go/util/homedir"

"github.com/dhenkel92/pod-helper/src/log"
"github.com/dhenkel92/pod-helper/pkg/log"
"github.com/urfave/cli/v2"
)

Expand Down
7 changes: 4 additions & 3 deletions cmd/pod_helper/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import (
"path/filepath"
"sort"

"github.com/dhenkel92/pod-helper/src/config"
"github.com/dhenkel92/pod-helper/pkg/config"

"github.com/dhenkel92/pod-helper/src/executor"
"github.com/dhenkel92/pod-helper/pkg/executor"

_ "k8s.io/client-go/plugin/pkg/client/auth"
"k8s.io/client-go/util/homedir"

"github.com/dhenkel92/pod-helper/src/log"
"github.com/dhenkel92/pod-helper/pkg/log"
"github.com/urfave/cli/v2"
)

Expand Down
8 changes: 8 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.38.0 h1:ROfEUZz+Gh5pa62DJWXSaonyu3StP6EA6lPEXPI6mCo=
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
github.com/Azure/go-autorest/autorest v0.9.0 h1:MRvx8gncNaXJqOoLmhNjUAKh33JJF8LyxPhomEtOsjs=
github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI=
github.com/Azure/go-autorest/autorest/adal v0.5.0 h1:q2gDruN08/guU9vAjuPWff0+QIrpH6ediguzdAzXAUU=
github.com/Azure/go-autorest/autorest/adal v0.5.0/go.mod h1:8Z9fGy2MpX0PvDjB1pEgQTmVqjGhiHBW7RJJEciWzS0=
github.com/Azure/go-autorest/autorest/date v0.1.0 h1:YGrhWfrgtFs84+h0o46rJrlmsZtyZRg470CqAXTZaGM=
github.com/Azure/go-autorest/autorest/date v0.1.0/go.mod h1:plvfp3oPSKwf2DNjlBjWF/7vwR+cUD/ELuzDCXwHUVA=
github.com/Azure/go-autorest/autorest/mocks v0.1.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/autorest/mocks v0.2.0/go.mod h1:OTyCOPRA2IgIlWxVYxBee2F5Gr4kF2zd2J5cFRaIDN0=
github.com/Azure/go-autorest/logger v0.1.0 h1:ruG4BSDXONFRrZZJ2GUXDiUyVpayPmb1GnWeHDdaNKY=
github.com/Azure/go-autorest/logger v0.1.0/go.mod h1:oExouG+K6PryycPJfVSxi/koC6LSNgds39diKLz7Vrc=
github.com/Azure/go-autorest/tracing v0.5.0 h1:TRn4WjSnkcSy5AEG3pnbtFSwNtwzjr4VYyQflFE619k=
github.com/Azure/go-autorest/tracing v0.5.0/go.mod h1:r/s2XiOKccPW3HrqB+W0TQzfbtp2fGCgRFtBroKn4Dk=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ=
Expand All @@ -19,6 +25,7 @@ github.com/davecgh/go-spew v0.0.0-20151105211317-5215b55f46b2/go.mod h1:J7Y8YcW2
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96 h1:cenwrSVm+Z7QLSV/BsnenAOcDXdX4cMv4wP0B/5QbPg=
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
Expand Down Expand Up @@ -60,6 +67,7 @@ github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d h1:7XGaL1e6bYS1yIonGp9761ExpPPV1ui0SAC59Yube9k=
github.com/googleapis/gnostic v0.0.0-20170729233727-0c5108395e2d/go.mod h1:sJBsCZ4ayReDTBIg8b9dl28c5xFWyhBTVRp3pOg5EKY=
github.com/gophercloud/gophercloud v0.1.0 h1:P/nh25+rzXouhytV2pUHBb65fnds26Ghl8/391+sT5o=
github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8=
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package executor

import (
"github.com/dhenkel92/pod-helper/src/kube"
"github.com/dhenkel92/pod-helper/pkg/kube"
)

func NewPodExecutor(kubeconfigPath string) (*PodExecutor, error) {
Expand Down
8 changes: 4 additions & 4 deletions src/executor/execute.go → pkg/executor/execute.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package executor

import (
"github.com/dhenkel92/pod-helper/src/config"
"github.com/dhenkel92/pod-helper/src/kube"
"github.com/dhenkel92/pod-helper/src/types"
"github.com/dhenkel92/pod-helper/src/utils"
"github.com/dhenkel92/pod-helper/pkg/config"
"github.com/dhenkel92/pod-helper/pkg/kube"
"github.com/dhenkel92/pod-helper/pkg/types"
"github.com/dhenkel92/pod-helper/pkg/utils"
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 (
"bytes"
"io"

"github.com/dhenkel92/pod-helper/src/config"
"github.com/dhenkel92/pod-helper/src/types"
"github.com/dhenkel92/pod-helper/pkg/config"
"github.com/dhenkel92/pod-helper/pkg/types"
v1 "k8s.io/api/core/v1"
)

Expand Down
4 changes: 2 additions & 2 deletions src/executor/run_strategy.go → pkg/executor/run_strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package executor
import (
"bytes"

"github.com/dhenkel92/pod-helper/src/config"
"github.com/dhenkel92/pod-helper/src/types"
"github.com/dhenkel92/pod-helper/pkg/config"
"github.com/dhenkel92/pod-helper/pkg/types"
v1 "k8s.io/api/core/v1"
"k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/tools/remotecommand"
Expand Down
4 changes: 2 additions & 2 deletions src/executor/types.go → pkg/executor/types.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package executor

import (
"github.com/dhenkel92/pod-helper/src/config"
"github.com/dhenkel92/pod-helper/src/types"
"github.com/dhenkel92/pod-helper/pkg/config"
"github.com/dhenkel92/pod-helper/pkg/types"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
)
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/kube/list_pods.go → pkg/kube/list_pods.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package kube
import (
"strings"

"github.com/dhenkel92/pod-helper/src/log"
"github.com/dhenkel92/pod-helper/pkg/log"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/types/result.go → pkg/types/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package types
import (
"strings"

"github.com/dhenkel92/pod-helper/src/log"
"github.com/dhenkel92/pod-helper/pkg/log"
"github.com/logrusorgru/aurora"
v1 "k8s.io/api/core/v1"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

"github.com/dhenkel92/pod-helper/src/config"
"github.com/dhenkel92/pod-helper/pkg/config"
v1 "k8s.io/api/core/v1"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package utils
import (
"testing"

"github.com/dhenkel92/pod-helper/src/config"
"github.com/dhenkel92/pod-helper/pkg/config"
v1 "k8s.io/api/core/v1"
)

Expand Down

0 comments on commit a4509cc

Please sign in to comment.