Rename go module to github.com/NVIDIA/go-nvlib

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2023-10-30 15:37:07 +01:00
parent d954f99641
commit 2d9404b131
15 changed files with 17 additions and 16 deletions

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
MODULE := gitlab.com/nvidia/cloud-native/go-nvlib MODULE := github.com/NVIDIA/go-nvlib
DOCKER ?= docker DOCKER ?= docker

2
go.mod
View File

@ -1,4 +1,4 @@
module gitlab.com/nvidia/cloud-native/go-nvlib module github.com/NVIDIA/go-nvlib
go 1.20 go 1.20

View File

@ -17,7 +17,7 @@
package device package device
import ( import (
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" "github.com/NVIDIA/go-nvlib/pkg/nvml"
) )
// Interface provides the API to the 'device' package // Interface provides the API to the 'device' package

View File

@ -19,7 +19,7 @@ package device
import ( import (
"fmt" "fmt"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" "github.com/NVIDIA/go-nvlib/pkg/nvml"
) )
// Device defines the set of extended functions associated with a device.Device // Device defines the set of extended functions associated with a device.Device

View File

@ -19,7 +19,7 @@ package device
import ( import (
"fmt" "fmt"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" "github.com/NVIDIA/go-nvlib/pkg/nvml"
) )
// MigDevice defines the set of extended functions associated with a MIG device // MigDevice defines the set of extended functions associated with a MIG device

View File

@ -23,7 +23,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml" "github.com/NVIDIA/go-nvlib/pkg/nvml"
) )
const ( const (

View File

@ -20,8 +20,8 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/NVIDIA/go-nvlib/pkg/nvml"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvml"
) )
type MigProfileInfoWrapper struct { type MigProfileInfoWrapper struct {

View File

@ -18,10 +18,11 @@ package nvmdev
import ( import (
"fmt" "fmt"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes"
"os" "os"
"path/filepath" "path/filepath"
"github.com/NVIDIA/go-nvlib/pkg/nvpci"
"github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes"
) )
// MockNvmdev mock mdev device // MockNvmdev mock mdev device

View File

@ -25,7 +25,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci" "github.com/NVIDIA/go-nvlib/pkg/nvpci"
) )
const ( const (

View File

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"os" "os"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes"
) )
const ( const (

View File

@ -22,7 +22,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes"
) )
// Mmio memory map a region // Mmio memory map a region

View File

@ -19,7 +19,7 @@ package mmio
import ( import (
"fmt" "fmt"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes"
) )
type mockMmio struct { type mockMmio struct {

View File

@ -21,7 +21,7 @@ import (
"os" "os"
"path/filepath" "path/filepath"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/bytes" "github.com/NVIDIA/go-nvlib/pkg/nvpci/bytes"
) )
// MockNvpci mock pci device // MockNvpci mock pci device

View File

@ -25,7 +25,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/pciids" "github.com/NVIDIA/go-nvlib/pkg/pciids"
) )
const ( const (

View File

@ -20,7 +20,7 @@ import (
"fmt" "fmt"
"sort" "sort"
"gitlab.com/nvidia/cloud-native/go-nvlib/pkg/nvpci/mmio" "github.com/NVIDIA/go-nvlib/pkg/nvpci/mmio"
) )
const ( const (