Skip to content

Commit

Permalink
github path changed
Browse files Browse the repository at this point in the history
  • Loading branch information
logeshkrish committed Jan 12, 2021
1 parent 6bc6c92 commit d3ed2a5
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 49 deletions.
9 changes: 5 additions & 4 deletions cmd/sail.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package main

import (
"fmt"
"gopaddle/sail/misc"
trace "gopaddle/sail/trace"
util "gopaddle/sail/util"
"gopaddle/sail/util/cmd"
"log"
"os"
"os/exec"

"github.com/gopaddle-io/sail/misc"
trace "github.com/gopaddle-io/sail/trace"
util "github.com/gopaddle-io/sail/util"
"github.com/gopaddle-io/sail/util/cmd"

flag "github.com/spf13/pflag"
)

Expand Down
7 changes: 4 additions & 3 deletions directory/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package directory

import (
"fmt"
"gopaddle/sail/util/cmd"
"gopaddle/sail/util/context"
"gopaddle/sail/util/json"
"io/ioutil"
"log"
"os"
"strings"

"github.com/gopaddle-io/sail/util/cmd"
"github.com/gopaddle-io/sail/util/context"
"github.com/gopaddle-io/sail/util/json"
)

const (
Expand Down
7 changes: 4 additions & 3 deletions misc/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package misc

import (
"encoding/json"
"gopaddle/sail/directory"
gson "gopaddle/sail/util/json"
"gopaddle/sail/util/log"
"runtime"

"github.com/gopaddle-io/sail/directory"
gson "github.com/gopaddle-io/sail/util/json"
"github.com/gopaddle-io/sail/util/log"
)

func BuildHTTPErrorJSON(message string, requestID string) string {
Expand Down
9 changes: 3 additions & 6 deletions misc/types.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
package misc

import (
"gopaddle/clustermanager/cluster/dao"
"gopaddle/clustermanager/util/bhttp"

"github.com/sirupsen/logrus"
)

type InternalContext struct {
DS dao.ReadWritter
Log *logrus.Entry
HTTP bhttp.HTTPInterface
// DS dao.ReadWritter
Log *logrus.Entry
// HTTP bhttp.HTTPInterface
}

type MiscHandle struct {
Expand Down
11 changes: 6 additions & 5 deletions sail.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
package main

import (
directory "gopaddle/sail/directory"
trace "gopaddle/sail/trace"
util "gopaddle/sail/util"
json "gopaddle/sail/util/json"
clog "gopaddle/sail/util/log"
"log"
"net/http"
"os"
"runtime"
"time"

directory "github.com/gopaddle-io/sail/directory"
trace "github.com/gopaddle-io/sail/trace"
util "github.com/gopaddle-io/sail/util"
json "github.com/gopaddle-io/sail/util/json"
clog "github.com/gopaddle-io/sail/util/log"
"github.com/gorilla/mux"
)

Expand Down
7 changes: 4 additions & 3 deletions trace/dockerUtils/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ import (
"bufio"
"encoding/json"
"fmt"
"gopaddle/sail/trace/startTrace"
"gopaddle/sail/util/cmd"
"gopaddle/sail/util/context"
"log"
"os"
"path/filepath"
"sort"
"strconv"
"strings"

"github.com/gopaddle-io/sail/trace/startTrace"
"github.com/gopaddle-io/sail/util/cmd"
"github.com/gopaddle-io/sail/util/context"

"github.com/sirupsen/logrus"
)

Expand Down
3 changes: 2 additions & 1 deletion trace/listProcess/listproc.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package listProcess

import (
"bufio"
cmd "gopaddle/sail/util/cmd"
"os"
"os/user"
"strings"

cmd "github.com/gopaddle-io/sail/util/cmd"

"github.com/sirupsen/logrus"
)

Expand Down
7 changes: 4 additions & 3 deletions trace/startTrace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import (
"bufio"
"errors"
"fmt"
"gopaddle/sail/util/cmd"
"gopaddle/sail/util/context"
"gopaddle/sail/util/log"
"io/ioutil"
"os"
"os/user"
"strings"

"github.com/gopaddle-io/sail/util/cmd"
"github.com/gopaddle-io/sail/util/context"
"github.com/gopaddle-io/sail/util/log"

"github.com/sirupsen/logrus"
)

Expand Down
17 changes: 9 additions & 8 deletions trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ package trace
import (
"bufio"
"encoding/json"
misc "gopaddle/sail/misc"
"gopaddle/sail/trace/dockerUtils"
listProcess "gopaddle/sail/trace/listProcess"
startTrace "gopaddle/sail/trace/startTrace"
util "gopaddle/sail/util"
context "gopaddle/sail/util/context"
json_util "gopaddle/sail/util/json"
log "gopaddle/sail/util/log"
"io/ioutil"
"net/http"
"os"

misc "github.com/gopaddle-io/sail/misc"
"github.com/gopaddle-io/sail/trace/dockerUtils"
listProcess "github.com/gopaddle-io/sail/trace/listProcess"
startTrace "github.com/gopaddle-io/sail/trace/startTrace"
util "github.com/gopaddle-io/sail/util"
context "github.com/gopaddle-io/sail/util/context"
json_util "github.com/gopaddle-io/sail/util/json"
log "github.com/gopaddle-io/sail/util/log"

"strings"

"github.com/gorilla/mux"
Expand Down
15 changes: 8 additions & 7 deletions trace/trace_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ import (
"encoding/json"
"errors"
"fmt"
"gopaddle/sail/trace/dockerUtils"
listProcess "gopaddle/sail/trace/listProcess"
startTrace "gopaddle/sail/trace/startTrace"
cmd "gopaddle/sail/util/cmd"
context "gopaddle/sail/util/context"
json_util "gopaddle/sail/util/json"
log "gopaddle/sail/util/log"
"os"
"os/user"
"sort"
"strconv"
"time"

"github.com/gopaddle-io/sail/trace/dockerUtils"
listProcess "github.com/gopaddle-io/sail/trace/listProcess"
startTrace "github.com/gopaddle-io/sail/trace/startTrace"
cmd "github.com/gopaddle-io/sail/util/cmd"
context "github.com/gopaddle-io/sail/util/context"
json_util "github.com/gopaddle-io/sail/util/json"
log "github.com/gopaddle-io/sail/util/log"
)

func GetList_noreq(requestID string) ([]listProcess.Process, error) {
Expand Down
5 changes: 3 additions & 2 deletions util/bhttp/bhttp.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (
"crypto/tls"
"errors"
"fmt"
"gopaddle/migrationservice/util"
"gopaddle/migrationservice/util/json"
"io/ioutil"
"net/http"
"time"

"github.com/gopaddle-io/sail/util"
"github.com/gopaddle-io/sail/util/json"

"github.com/sirupsen/logrus"
)

Expand Down
3 changes: 2 additions & 1 deletion util/context/context.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package context

import (
"gopaddle/sail/util/json"
"log"
"reflect"

"github.com/gopaddle-io/sail/util/json"
)

type handle struct {
Expand Down
3 changes: 2 additions & 1 deletion util/db/db.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package db

import (
"gopaddle/migrationservice/util/context"
"log"
"os"
"strconv"
"strings"

"github.com/gopaddle-io/sail/util/context"

mgo "gopkg.in/mgo.v2"
)

Expand Down
3 changes: 2 additions & 1 deletion util/urls/urls.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import (
"crypto/tls"
gson "encoding/json"
"fmt"
"gopaddle/migrationservice/util/json"
"io/ioutil"
"log"
"net/http"
"strings"
"time"

"github.com/gopaddle-io/sail/util/json"
)

type Connection struct {
Expand Down
3 changes: 2 additions & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ package util

import (
"fmt"
"gopaddle/sail/util/json"
"io/ioutil"
"log"
"math/rand"
"strconv"
"time"

"github.com/gopaddle-io/sail/util/json"

"github.com/google/uuid"
)

Expand Down

0 comments on commit d3ed2a5

Please sign in to comment.