Skip to content

Commit

Permalink
move to machine.run.io
Browse files Browse the repository at this point in the history
Signed-off-by: Ravi Chamarthy <[email protected]>
  • Loading branch information
rchamarthy committed Oct 27, 2023
1 parent ff6d41b commit 6e3db93
Show file tree
Hide file tree
Showing 27 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:
if: success()
uses: codecov/[email protected]
with:
token: 78b19480-8cfa-4f32-8448-b972a29a8f46
token: 78b19480-8cfa-4f32-8448-b972a29a8f46
file: ./coverage-all.txt
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Disk Operations API in Go

[![Actions Status](https://github.com/anuvu/disko/workflows/Build/badge.svg)](https://github.com/anuvu/disko/actions)
[![Actions Status](https://github.com/anuvu/disko/workflows/Lint/badge.svg)](https://github.com/anuvu/disko/actions)
[![codecov](https://codecov.io/gh/anuvu/disko/branch/master/graph/badge.svg)](https://codecov.io/gh/anuvu/disko)
[![Go Report Card](https://goreportcard.com/badge/github.com/anuvu/disko)](https://goreportcard.com/report/github.com/anuvu/disko)
[![Actions Status](https://machinerun.io/disko/workflows/Build/badge.svg)](https://machinerun.io/disko/actions)
[![Actions Status](https://machinerun.io/disko/workflows/Lint/badge.svg)](https://machinerun.io/disko/actions)
[![codecov](https://codecov.io/gh/project-machine/disko/graph/badge.svg?token=OWZk2EXt3x)](https://codecov.io/gh/project-machine/disko)
[![Go Report Card](https://goreportcard.com/badge/machinerun.io/disko)](https://goreportcard.com/report/machinerun.io/disko)
6 changes: 3 additions & 3 deletions demo/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"sort"

Check failure on line 7 in demo/disk.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
"github.com/anuvu/disko"
"github.com/anuvu/disko/linux"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/linux"
"machinerun.io/disko/partid"
"github.com/urfave/cli/v2"
)

Expand Down
4 changes: 2 additions & 2 deletions demo/lvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"fmt"

"github.com/anuvu/disko"
"github.com/anuvu/disko/linux"
"machinerun.io/disko"
"machinerun.io/disko/linux"
"github.com/urfave/cli/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion demo/megaraid.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strconv"

"github.com/anuvu/disko/megaraid"
"machinerun.io/disko/megaraid"
"github.com/urfave/cli/v2"
)

Expand Down
6 changes: 3 additions & 3 deletions demo/misc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"path"
"regexp"

"github.com/anuvu/disko"
"github.com/anuvu/disko/linux"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/linux"
"machinerun.io/disko/partid"
"github.com/urfave/cli/v2"
)

Expand Down
2 changes: 1 addition & 1 deletion disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"strings"

"github.com/anuvu/disko/partid"
"machinerun.io/disko/partid"
)

// DiskType enumerates supported disk types.
Expand Down
4 changes: 2 additions & 2 deletions disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"
"testing"

"github.com/anuvu/disko"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/partid"
)

func TestFreeSpaceSize(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/anuvu/disko
module machinerun.io/disko

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions guid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"regexp"
"testing"

"github.com/anuvu/disko"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/partid"
)

func TestStringRoundtrip(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions linux/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"syscall"
"unicode/utf16"

"github.com/anuvu/disko"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/partid"
"github.com/rekby/gpt"
"github.com/rekby/mbr"
"golang.org/x/sys/unix"
Expand Down
4 changes: 2 additions & 2 deletions linux/disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"path"
"testing"

"github.com/anuvu/disko"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/partid"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion linux/lvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path"
"strings"

"github.com/anuvu/disko"
"machinerun.io/disko"
)

const pvMetaDataSize = 128 * disko.Mebibyte
Expand Down
2 changes: 1 addition & 1 deletion linux/lvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package linux
import (
"testing"

"github.com/anuvu/disko"
"machinerun.io/disko"
)

//nolint:funlen
Expand Down
6 changes: 3 additions & 3 deletions linux/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"strings"
"testing"

"github.com/anuvu/disko"
"github.com/anuvu/disko/linux"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/linux"
"machinerun.io/disko/partid"
"github.com/stretchr/testify/assert"
"golang.org/x/sys/unix"
)
Expand Down
4 changes: 2 additions & 2 deletions linux/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"strings"
"syscall"

"github.com/anuvu/disko"
"github.com/anuvu/disko/megaraid"
"machinerun.io/disko"
"machinerun.io/disko/megaraid"
"golang.org/x/sys/unix"
)

Expand Down
4 changes: 2 additions & 2 deletions linux/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path"
"testing"

"github.com/anuvu/disko"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/partid"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion linux/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"syscall"

"github.com/anuvu/disko"
"machinerun.io/disko"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion linux/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/anuvu/disko"
"machinerun.io/disko"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion lvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/anuvu/disko"
"machinerun.io/disko"
)

var valid = map[string]disko.LVType{
Expand Down
2 changes: 1 addition & 1 deletion megaraid/linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func NameByDiskID(id int) (string, error) {
// given ID, we expect a single file in:
// <sysDriverMegaRaidSAS>/0000:05:00.0/host0/target0:0:<ID>/0:0:<ID>:0/block/
// Note: This does not work for some megaraid controllers such as SAS3508
// See https://github.com/anuvu/disko/issues/101
// See https://machinerun.io/disko/issues/101
idStr := fmt.Sprintf("%d", id)
blkDir := sysDriverMegaRaidSAS + "/*/host*/target0:0:" + idStr + "/0:0:" + idStr + ":0/block/*"
matches, err := filepath.Glob(blkDir)
Expand Down
2 changes: 1 addition & 1 deletion mockos/lvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"path"

"github.com/anuvu/disko"
"machinerun.io/disko"
)

type mockLVM struct {
Expand Down
6 changes: 3 additions & 3 deletions mockos/lvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"strings"
"testing"

Check failure on line 6 in mockos/lvm_test.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
"github.com/anuvu/disko"
"github.com/anuvu/disko/mockos"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/mockos"
"machinerun.io/disko/partid"
. "github.com/smartystreets/goconvey/convey"
)

Expand Down
2 changes: 1 addition & 1 deletion mockos/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io/ioutil"

"github.com/anuvu/disko"
"machinerun.io/disko"
)

// System returns a mock os implementation of the disk.System interface.
Expand Down
6 changes: 3 additions & 3 deletions mockos/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package mockos_test
import (
"testing"

Check failure on line 5 in mockos/system_test.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofmt`-ed with `-s` (gofmt)
"github.com/anuvu/disko"
"github.com/anuvu/disko/mockos"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/mockos"
"machinerun.io/disko/partid"
. "github.com/smartystreets/goconvey/convey"
)

Expand Down
2 changes: 1 addition & 1 deletion partid/partid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package partid_test
import (
"testing"

"github.com/anuvu/disko/partid"
"machinerun.io/disko/partid"
)

func TestPartID(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions ptimg/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
"syscall"
"time"

"github.com/anuvu/disko"
"github.com/anuvu/disko/linux"
"github.com/anuvu/disko/partid"
"machinerun.io/disko"
"machinerun.io/disko/linux"
"machinerun.io/disko/partid"
"github.com/urfave/cli/v2"
)

Expand Down

0 comments on commit 6e3db93

Please sign in to comment.