Skip to content

Commit c045b5a

Browse files
committed
provider: Use Incus v7 API
Signed-off-by: Fabian Mettler <fabian@mettler.cc>
1 parent 83d67f1 commit c045b5a

34 files changed

Lines changed: 126 additions & 125 deletions

go.mod

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.sum

Lines changed: 44 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/acctest/preconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package acctest
33
import (
44
"testing"
55

6-
"github.com/lxc/incus/v6/shared/api"
6+
"github.com/lxc/incus/v7/shared/api"
77
)
88

99
// PreConfigAccTestServerConfig ensures the presence of the server config key:

internal/acctest/provider_factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/hashicorp/terraform-plugin-framework/providerserver"
88
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
9-
incus_config "github.com/lxc/incus/v6/shared/cliconfig"
9+
incus_config "github.com/lxc/incus/v7/shared/cliconfig"
1010

1111
"github.com/lxc/terraform-provider-incus/internal/provider"
1212
provider_config "github.com/lxc/terraform-provider-incus/internal/provider-config"

internal/certificate/resource_certificate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import (
1919
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
2020
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
2121
"github.com/hashicorp/terraform-plugin-framework/types"
22-
incus "github.com/lxc/incus/v6/client"
23-
"github.com/lxc/incus/v6/shared/api"
24-
localtls "github.com/lxc/incus/v6/shared/tls"
22+
incus "github.com/lxc/incus/v7/client"
23+
"github.com/lxc/incus/v7/shared/api"
24+
localtls "github.com/lxc/incus/v7/shared/tls"
2525

2626
"github.com/lxc/terraform-provider-incus/internal/errors"
2727
provider_config "github.com/lxc/terraform-provider-incus/internal/provider-config"

internal/cluster/resource_cluster_group.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
1919
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
2020
"github.com/hashicorp/terraform-plugin-framework/types"
21-
incus "github.com/lxc/incus/v6/client"
22-
"github.com/lxc/incus/v6/shared/api"
21+
incus "github.com/lxc/incus/v7/client"
22+
"github.com/lxc/incus/v7/shared/api"
2323

2424
"github.com/lxc/terraform-provider-incus/internal/common"
2525
"github.com/lxc/terraform-provider-incus/internal/errors"

internal/common/incus_exec.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88

99
"github.com/hashicorp/terraform-plugin-framework/diag"
1010
"github.com/hashicorp/terraform-plugin-framework/types"
11-
incus "github.com/lxc/incus/v6/client"
12-
"github.com/lxc/incus/v6/shared/api"
11+
incus "github.com/lxc/incus/v7/client"
12+
"github.com/lxc/incus/v7/shared/api"
1313
)
1414

1515
type InstanceExecModel struct {

internal/common/incus_file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
"github.com/hashicorp/terraform-plugin-framework/diag"
1414
"github.com/hashicorp/terraform-plugin-framework/types"
15-
incus "github.com/lxc/incus/v6/client"
15+
incus "github.com/lxc/incus/v7/client"
1616
"github.com/mitchellh/go-homedir"
1717

1818
tfierrors "github.com/lxc/terraform-provider-incus/internal/errors"

internal/common/schema_validators.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strings"
77

88
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
9-
"github.com/lxc/incus/v6/shared/osarch"
9+
"github.com/lxc/incus/v7/shared/osarch"
1010
)
1111

1212
type ArchitectureValidator struct{}

internal/errors/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"net/http"
66

77
"github.com/hashicorp/terraform-plugin-framework/diag"
8-
"github.com/lxc/incus/v6/shared/api"
8+
"github.com/lxc/incus/v7/shared/api"
99
)
1010

1111
// IsNotFoundError checks whether the given error is of type NotFound.

0 commit comments

Comments
 (0)