Move restic package to internal/restic

This commit is contained in:
Alexander Neumann
2017-07-24 17:42:25 +02:00
parent 94030a12cf
commit 23c903074c
179 changed files with 100 additions and 136 deletions

View File

@@ -10,8 +10,6 @@ import (
"strings"
"time"
"github.com/restic/restic/internal"
"github.com/spf13/cobra"
"github.com/restic/restic/internal/archiver"
@@ -19,6 +17,7 @@ import (
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/filter"
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/restic"
)
var cmdBackup = &cobra.Command{

View File

@@ -8,10 +8,10 @@ import (
"github.com/spf13/cobra"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
)
var cmdCat = &cobra.Command{

View File

@@ -8,9 +8,9 @@ import (
"github.com/spf13/cobra"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/checker"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
)
var cmdCheck = &cobra.Command{

View File

@@ -11,10 +11,10 @@ import (
"github.com/spf13/cobra"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/pack"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/worker"
)

View File

@@ -9,9 +9,9 @@ import (
"github.com/spf13/cobra"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
)
var cmdFind = &cobra.Command{

View File

@@ -6,8 +6,7 @@ import (
"sort"
"strings"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
)

View File

@@ -4,9 +4,9 @@ import (
"context"
"fmt"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
)

View File

@@ -4,9 +4,9 @@ import (
"context"
"fmt"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/index"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
)

View File

@@ -6,9 +6,9 @@ import (
"github.com/spf13/cobra"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
)
var cmdLs = &cobra.Command{

View File

@@ -1,8 +1,8 @@
package main
import (
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/migrations"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
)

View File

@@ -7,12 +7,11 @@ import (
"context"
"os"
"github.com/restic/restic/internal"
"github.com/spf13/cobra"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
resticfs "github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/fuse"

View File

@@ -4,11 +4,11 @@ import (
"fmt"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/index"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
)

View File

@@ -3,8 +3,8 @@ package main
import (
"context"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/index"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
)

View File

@@ -1,10 +1,10 @@
package main
import (
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/filter"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
)

View File

@@ -7,9 +7,8 @@ import (
"io"
"sort"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
"github.com/restic/restic/internal"
)
var cmdSnapshots = &cobra.Command{

View File

@@ -5,10 +5,10 @@ import (
"github.com/spf13/cobra"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
)
var cmdTag = &cobra.Command{

View File

@@ -3,8 +3,7 @@ package main
import (
"context"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"
)

View File

@@ -3,8 +3,8 @@ package main
import (
"context"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
)
// FindFilteredSnapshots yields Snapshots, either given explicitly by `snapshotIDs` or filtered from the list of all snapshots.

View File

@@ -6,7 +6,7 @@ import (
"path/filepath"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/restic"
)
func formatBytes(c uint64) string {

View File

@@ -10,8 +10,6 @@ import (
"strings"
"syscall"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/backend/b2"
"github.com/restic/restic/internal/backend/local"
"github.com/restic/restic/internal/backend/location"
@@ -22,6 +20,7 @@ import (
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/options"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/errors"

View File

@@ -12,8 +12,8 @@ import (
"testing"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
. "github.com/restic/restic/internal/test"
)

View File

@@ -17,9 +17,8 @@ import (
"testing"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/restic"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/filter"

View File

@@ -7,9 +7,9 @@ import (
"sync"
"time"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/repository"
"github.com/restic/restic/internal/restic"
)
var globalLocks struct {

View File

@@ -8,9 +8,9 @@ import (
"os"
"runtime"
"github.com/restic/restic/internal"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/options"
"github.com/restic/restic/internal/restic"
"github.com/spf13/cobra"