Update imports

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2021-09-28 16:14:43 +02:00
parent 7c5b913e09
commit c05f9dffc5
30 changed files with 42 additions and 42 deletions

View File

@ -20,12 +20,12 @@ import (
"fmt"
"os"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/ensure"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/filter"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/modify"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/runtime"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/ensure"
"github.com/NVIDIA/nvidia-container-toolkit/internal/filter"
"github.com/NVIDIA/nvidia-container-toolkit/internal/modify"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/runtime"
log "github.com/sirupsen/logrus"
"github.com/NVIDIA/nvidia-container-toolkit/cmd/nvidia-container-runtime.experimental/config"

View File

@ -22,7 +22,7 @@ import (
"os/exec"
"strings"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
"github.com/opencontainers/runtime-spec/specs-go"
log "github.com/sirupsen/logrus"
)

View File

@ -22,7 +22,7 @@ import (
"strings"
"testing"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
"github.com/opencontainers/runtime-spec/specs-go"
testlog "github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/require"

View File

@ -22,7 +22,7 @@ import (
"path/filepath"
"strings"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
)
const (

View File

@ -20,7 +20,7 @@ import (
"encoding/json"
"os"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
log "github.com/sirupsen/logrus"
)

View File

@ -20,8 +20,8 @@ import (
"encoding/json"
"os"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/filter"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/filter"
log "github.com/sirupsen/logrus"
)

View File

@ -23,8 +23,8 @@ import (
"os/exec"
"path/filepath"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/lookup"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
log "github.com/sirupsen/logrus"
)

View File

@ -16,7 +16,7 @@
package ensure
import "github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
import "github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
// Ensure is an alias for Discover
type Ensure discover.Discover

View File

@ -16,7 +16,7 @@
package filter
import "github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
import "github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
type all struct {
selectors []Selector

View File

@ -19,7 +19,7 @@ package filter
import (
"testing"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/stretchr/testify/require"
)

View File

@ -16,7 +16,7 @@
package filter
import "github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
import "github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
type any struct {
selectors []Selector

View File

@ -19,7 +19,7 @@ package filter
import (
"testing"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/stretchr/testify/require"
)

View File

@ -17,7 +17,7 @@
package filter
import (
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
)
type devicesByID map[string]struct{}

View File

@ -19,7 +19,7 @@ package filter
import (
"testing"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/stretchr/testify/require"
)

View File

@ -20,7 +20,7 @@ import (
"fmt"
"strings"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
log "github.com/sirupsen/logrus"
)

View File

@ -19,7 +19,7 @@ package filter
import (
"testing"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
log "github.com/sirupsen/logrus"
testlog "github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/require"

View File

@ -17,7 +17,7 @@
package filter
import (
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
log "github.com/sirupsen/logrus"
)

View File

@ -20,7 +20,7 @@ import (
"fmt"
"testing"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
testlog "github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/require"
)

View File

@ -16,7 +16,7 @@
package filter
import "github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
import "github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
type standardDevice struct{}

View File

@ -19,7 +19,7 @@ package filter
import (
"testing"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/stretchr/testify/require"
)

View File

@ -16,7 +16,7 @@
package filter
import "github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
import "github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
//go:generate moq -stub -out selector_mock.go . Selector

View File

@ -4,7 +4,7 @@
package filter
import (
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"sync"
)

View File

@ -4,8 +4,8 @@ import (
"fmt"
"os"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
"github.com/opencontainers/runtime-spec/specs-go"
log "github.com/sirupsen/logrus"
)

View File

@ -19,8 +19,8 @@ package modify
import (
"fmt"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
log "github.com/sirupsen/logrus"
)

View File

@ -21,8 +21,8 @@ import (
"path/filepath"
"strings"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
"github.com/opencontainers/runtime-spec/specs-go"
log "github.com/sirupsen/logrus"
)

View File

@ -17,7 +17,7 @@
package modify
import (
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
)
//go:generate moq -stub -out modify_mock.go . Modifier

View File

@ -4,7 +4,7 @@
package modify
import (
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
"sync"
)

View File

@ -3,8 +3,8 @@ package modify
import (
"strings"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/discover"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/discover"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
"github.com/opencontainers/runtime-spec/specs-go"
log "github.com/sirupsen/logrus"
)

View File

@ -19,8 +19,8 @@ package runtime
import (
"fmt"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/modify"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/modify"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
log "github.com/sirupsen/logrus"
)

View File

@ -20,8 +20,8 @@ import (
"fmt"
"testing"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/modify"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/oci"
"github.com/NVIDIA/nvidia-container-toolkit/internal/modify"
"github.com/NVIDIA/nvidia-container-toolkit/internal/oci"
testlog "github.com/sirupsen/logrus/hooks/test"
"github.com/stretchr/testify/require"
)