Skip to content

Commit e27bc03

Browse files
committed
transfre repo from sp-yduck to k8s-proxmox
1 parent 65b652c commit e27bc03

31 files changed

+38
-35
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@
33
Go client for the Proxmox VE REST API (https://pve.proxmox.com/wiki/Proxmox_VE_API)
44

55
## Overview
6-
A Go package containing a client for [Proxmox VE](https://www.proxmox.com/). The client implements [/api2/json](https://pve.proxmox.com/pve-docs/api-viewer/index.html) and aims to provide better sdk solution for especially [cluster-api-provider-proxmox](https://github.com/sp-yduck/cluster-api-provider-proxmox) and [cloud-provider-proxmox](https://github.com/sp-yduck/cloud-provider-proxmox) project.
6+
7+
A Go package containing a client for [Proxmox VE](https://www.proxmox.com/). The client implements [/api2/json](https://pve.proxmox.com/pve-docs/api-viewer/index.html) and aims to provide better sdk solution for especially [cluster-api-provider-proxmox](https://github.com/k8s-proxmox/cluster-api-provider-proxmox) and [cloud-provider-proxmox](https://github.com/k8s-proxmox/cloud-provider-proxmox) project.
78

89
## Developing
910

1011
### Unit Testing
12+
1113
```sh
1214
go test ./... -v -skip ^TestSuiteIntegration
1315
```
1416

1517
### Integration Testing
18+
1619
```sh
1720
export PROXMOX_URL='http://localhost:8006/api2/json'
1821
# tokenid & secret
@@ -23,4 +26,4 @@ export PROXMOX_SECRET='aaaaaaaaa-bbb-cccc-dddd-ef0123456789'
2326
# export PROXMOX_PASSWORD='password'
2427

2528
go test ./... -v -run ^TestSuiteIntegration
26-
```
29+
```

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/sp-yduck/proxmox-go
1+
module github.com/k8s-proxmox/proxmox-go
22

33
go 1.20
44

proxmox/cluster.go

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

6-
"github.com/sp-yduck/proxmox-go/api"
6+
"github.com/k8s-proxmox/proxmox-go/api"
77
)
88

99
func (s *Service) NextID(ctx context.Context) (int, error) {

proxmox/node.go

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

6-
"github.com/sp-yduck/proxmox-go/api"
6+
"github.com/k8s-proxmox/proxmox-go/api"
77
)
88

99
func (s *Service) Nodes(ctx context.Context) ([]*api.Node, error) {

proxmox/pool.go

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

8-
"github.com/sp-yduck/proxmox-go/api"
8+
"github.com/k8s-proxmox/proxmox-go/api"
99
)
1010

1111
type Pool struct {

proxmox/qemu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"regexp"
88
"strings"
99

10-
"github.com/sp-yduck/proxmox-go/api"
11-
"github.com/sp-yduck/proxmox-go/rest"
10+
"github.com/k8s-proxmox/proxmox-go/api"
11+
"github.com/k8s-proxmox/proxmox-go/rest"
1212
)
1313

1414
type VirtualMachine struct {

proxmox/qemu_test.go

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

6-
"github.com/sp-yduck/proxmox-go/api"
6+
"github.com/k8s-proxmox/proxmox-go/api"
77
)
88

99
func (s *TestSuite) TestVirtualMachine() {

proxmox/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net/http"
99
"sync"
1010

11-
"github.com/sp-yduck/proxmox-go/rest"
11+
"github.com/k8s-proxmox/proxmox-go/rest"
1212
)
1313

1414
var (

proxmox/storage.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"errors"
66
"fmt"
77

8-
"github.com/sp-yduck/proxmox-go/api"
9-
"github.com/sp-yduck/proxmox-go/rest"
8+
"github.com/k8s-proxmox/proxmox-go/api"
9+
"github.com/k8s-proxmox/proxmox-go/rest"
1010
)
1111

1212
type Storage struct {

proxmox/storage_test.go

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

6-
"github.com/sp-yduck/proxmox-go/api"
6+
"github.com/k8s-proxmox/proxmox-go/api"
77
)
88

99
func (s *TestSuite) TestDownloadFromURL() {

0 commit comments

Comments
 (0)