Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update major version in module path #232

Merged
merged 1 commit into from
Jul 22, 2022
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
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ linters-settings:
include-go-root: false
packages:
- github.com/ovirt/go-ovirt
- github.com/ovirt/go-ovirt-client/v2
- github.com/ovirt/go-ovirt-client-log/v3
- github.com/google/uuid
govet:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package main
import (
"crypto/x509"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log/v3"
)

Expand Down Expand Up @@ -122,7 +122,7 @@ import (
"os"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log/v3"
)

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

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func assertCanCreateAffinityGroup(t *testing.T, helper ovirtclient.TestHelper, params ovirtclient.CreateAffinityGroupOptionalParams) ovirtclient.AffinityGroup {
Expand Down
2 changes: 1 addition & 1 deletion disk_attachment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestDiskAttachmentCreation(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion disk_downloadimage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"io/ioutil"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestImageDownload(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion disk_remove_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

// TestDiskRemoveFromStoppedVMShouldNotResultInError tests if removing a disk from under a stopped VM does not result
Expand Down
2 changes: 1 addition & 1 deletion disk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log/v3"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

// ExampleDiskClient_CreateDisk is an example of creating an empty disk. This example works with the test
Expand Down
2 changes: 1 addition & 1 deletion disk_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ovirtclient_test
import (
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestExtendDisk(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion disk_uploadimage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func assertCanUploadDiskImage(t *testing.T, helper ovirtclient.TestHelper, disk ovirtclient.Disk) {
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ You can also create the test helper manually:
"os"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log"
)

Expand Down
2 changes: 1 addition & 1 deletion example_vm_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ovirtclient_test
import (
"fmt"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log/v3"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

// The following example demonstrates how to create a virtual machine. It is set up
Expand Down
2 changes: 1 addition & 1 deletion example_vm_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package ovirtclient_test
import (
"fmt"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log/v3"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

// The following example demonstrates how to list virtual machines.
Expand Down
2 changes: 1 addition & 1 deletion example_vm_uploadimage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os"
"time"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log/v3"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

// This example demonstrates the simplest way to upload an image without special timeout handling. The call still times
Expand Down
2 changes: 1 addition & 1 deletion feature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ovirtclient_test
import (
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestFeatureFlags(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/ovirt/go-ovirt-client
module github.com/ovirt/go-ovirt-client/v2

go 1.16

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

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log/v3"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

var getHelper func(t *testing.T) ovirtclient.TestHelper
Expand Down
2 changes: 1 addition & 1 deletion new_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

type ctxKey string
Expand Down
2 changes: 1 addition & 1 deletion new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"sync"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclientlog "github.com/ovirt/go-ovirt-client-log/v3"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestBadOVirtURL(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion nic_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestVMNICCreation(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion nic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ovirtclient_test
import (
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func assertCanUpdateNICName(t *testing.T, nic ovirtclient.NIC, name string) ovirtclient.NIC {
Expand Down
2 changes: 1 addition & 1 deletion nic_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestVMNICUpdate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestTagCreation(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion template_disk_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

// TestTemplateDiskListAttachments tests if listing the disk attachments of a template works properly.
Expand Down
2 changes: 1 addition & 1 deletion template_get_blank_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ovirtclient_test
import (
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestTemplateBlank(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

// TestTemplateCreation is the simplest test for creating and using a template.
Expand Down
2 changes: 1 addition & 1 deletion tls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"regexp"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

// This example shows how to set up TLS verification in a variety of ways.
Expand Down
2 changes: 1 addition & 1 deletion vm_graphics_console_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ovirtclient_test
import (
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestListAndRemoveGraphicsConsoles(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion vm_ip_get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestVMIPAddressReporting(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion vm_remove_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestVMRemovalShouldRemoveAttachedDisks(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion vm_search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ovirtclient_test
import (
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestVMSearch(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion vm_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestVMTagAssignemnt(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestVMListShouldNotFail(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion vnicprofile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"testing"

ovirtclient "github.com/ovirt/go-ovirt-client"
ovirtclient "github.com/ovirt/go-ovirt-client/v2"
)

func TestVNICProfile(t *testing.T) {
Expand Down