Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ See [example](https://github.com/pivotal-cf/go-pivnet/blob/master/example/main.g
for an executable example.

```go
import pivnet github.com/pivotal-cf/go-pivnet/v7
import pivnet github.com/pivotal-cf/go-pivnet/v9

[...]

Expand Down
18 changes: 10 additions & 8 deletions artifact_references_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package pivnet_test

import (
"fmt"
"github.com/onsi/gomega/ghttp"
"github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/go-pivnetfakes"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v7/logger/loggerfakes"
"net/http"

"github.com/onsi/gomega/ghttp"

"github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/go-pivnetfakes"
"github.com/pivotal-cf/go-pivnet/v9/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger/loggerfakes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down Expand Up @@ -145,9 +147,9 @@ var _ = Describe("PivnetClient - artifact references", func() {
Name: "something",
},
{
ID: 2345,
Name: "something-else",
ReleaseVersions: []string{"1.0.0","1.2.3"},
ID: 2345,
Name: "something-else",
ReleaseVersions: []string{"1.0.0", "1.2.3"},
},
}}

Expand Down
7 changes: 4 additions & 3 deletions auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import (
"net/http"

"github.com/onsi/gomega/ghttp"
"github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v7/logger/loggerfakes"

"github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger/loggerfakes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
10 changes: 6 additions & 4 deletions dependency_specifiers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package pivnet_test

import (
"fmt"
"github.com/pivotal-cf/go-pivnet/v7/go-pivnetfakes"
"net/http"

"github.com/pivotal-cf/go-pivnet/v9/go-pivnetfakes"

"github.com/onsi/gomega/ghttp"
"github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v7/logger/loggerfakes"

"github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger/loggerfakes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion download/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/shirou/gopsutil/disk"
"golang.org/x/sync/errgroup"

"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger"
)

//go:generate counterfeiter -o ./fakes/ranger.go --fake-name Ranger . ranger
Expand Down
18 changes: 9 additions & 9 deletions download/downloader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ package download_test

import (
"errors"
"fmt"
"io"
"io/ioutil"
"math"
"net"
"net/http"
"net/url"
"os"
"strings"
"sync"

"github.com/pivotal-cf/go-pivnet/v7/download"
"github.com/pivotal-cf/go-pivnet/v7/download/fakes"

"fmt"
"math"
"net"
"os"
"syscall"
"time"

"github.com/pivotal-cf/go-pivnet/v9/download"
"github.com/pivotal-cf/go-pivnet/v9/download/fakes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/go-pivnet/v7/logger/loggerfakes"

"github.com/pivotal-cf/go-pivnet/v9/logger/loggerfakes"
)

type EOFReader struct{}
Expand Down
2 changes: 1 addition & 1 deletion download/fakes/ranger.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion download/progress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"golang.org/x/sync/errgroup"

"github.com/pivotal-cf/go-pivnet/v7/download"
"github.com/pivotal-cf/go-pivnet/v9/download"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion download/ranger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package download_test
import (
"net/http"

"github.com/pivotal-cf/go-pivnet/v7/download"
"github.com/pivotal-cf/go-pivnet/v9/download"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
10 changes: 6 additions & 4 deletions eulas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package pivnet_test

import (
"fmt"
"github.com/pivotal-cf/go-pivnet/v7/go-pivnetfakes"
"net/http"

"github.com/pivotal-cf/go-pivnet/v9/go-pivnetfakes"

"github.com/onsi/gomega/ghttp"
"github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v7/logger/loggerfakes"

"github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger/loggerfakes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
4 changes: 2 additions & 2 deletions example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"os"

pivnet "github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logshim"
pivnet "github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logshim"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions example/proxy_basic_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"os"

pivnet "github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logshim"
pivnet "github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logshim"
)

// Example demonstrating HTTP Basic proxy authentication
Expand Down
4 changes: 2 additions & 2 deletions example/proxy_spnego_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"os"

pivnet "github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logshim"
pivnet "github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logshim"
)

// Example demonstrating Kerberos/SPNEGO proxy authentication
Expand Down
10 changes: 6 additions & 4 deletions federation_token_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package pivnet_test

import (
"fmt"
"github.com/pivotal-cf/go-pivnet/v7/go-pivnetfakes"
"net/http"

"github.com/pivotal-cf/go-pivnet/v9/go-pivnetfakes"

"github.com/onsi/gomega/ghttp"
"github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v7/logger/loggerfakes"

"github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger/loggerfakes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
10 changes: 6 additions & 4 deletions file_groups_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ package pivnet_test

import (
"fmt"
"github.com/pivotal-cf/go-pivnet/v7/go-pivnetfakes"
"net/http"

"github.com/pivotal-cf/go-pivnet/v9/go-pivnetfakes"

"github.com/onsi/gomega/ghttp"
"github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v7/logger/loggerfakes"

"github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger/loggerfakes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
2 changes: 1 addition & 1 deletion go-pivnetfakes/fake_access_token_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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/pivotal-cf/go-pivnet/v7
module github.com/pivotal-cf/go-pivnet/v9

go 1.16

Expand Down
3 changes: 2 additions & 1 deletion integration/dependency_specifiers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package integration_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
pivnet "github.com/pivotal-cf/go-pivnet/v7"

pivnet "github.com/pivotal-cf/go-pivnet/v9"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions integration/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ package integration_test
import (
"fmt"
"os"
"testing"

"github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/robdimsdale/sanitizer"

"github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logger"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

"testing"
)

const testProductSlug = "pivnet-resource-test"
Expand Down
3 changes: 2 additions & 1 deletion integration/products_lifecycle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package integration_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/go-pivnet/v7"

"github.com/pivotal-cf/go-pivnet/v9"
)

var _ = Describe("Products Lifecycle", func() {
Expand Down
3 changes: 2 additions & 1 deletion integration/upgrade_path_specifiers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package integration_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
pivnet "github.com/pivotal-cf/go-pivnet/v7"

pivnet "github.com/pivotal-cf/go-pivnet/v9"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion logger/loggerfakes/fake_logger.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion logshim/logshim.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"log"

"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger"
)

type LogShim struct {
Expand Down
5 changes: 3 additions & 2 deletions md5sum/md5_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/go-pivnet/v7/md5sum"

"github.com/pivotal-cf/go-pivnet/v9/md5sum"
)

var _ = Describe("MD5", func() {
Expand All @@ -16,7 +17,7 @@ var _ = Describe("MD5", func() {
tempFilePath string
tempDir string
fileContents []byte
fileSummer *md5sum.FileSummer
fileSummer *md5sum.FileSummer
)

BeforeEach(func() {
Expand Down
4 changes: 2 additions & 2 deletions pivnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"strings"
"time"

"github.com/pivotal-cf/go-pivnet/v7/download"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v9/download"
"github.com/pivotal-cf/go-pivnet/v9/logger"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions pivnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"fmt"
"net/http"

gopivnetfakes "github.com/pivotal-cf/go-pivnet/v7/go-pivnetfakes"
gopivnetfakes "github.com/pivotal-cf/go-pivnet/v9/go-pivnetfakes"

"github.com/onsi/gomega/ghttp"

"github.com/pivotal-cf/go-pivnet/v7"
"github.com/pivotal-cf/go-pivnet/v7/logger"
"github.com/pivotal-cf/go-pivnet/v7/logger/loggerfakes"
"github.com/pivotal-cf/go-pivnet/v9"
"github.com/pivotal-cf/go-pivnet/v9/logger"
"github.com/pivotal-cf/go-pivnet/v9/logger/loggerfakes"

. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
Expand Down
Loading