mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-22 12:56:25 +00:00
updated project url
This commit is contained in:
parent
16ca38c4e4
commit
0a52ba39d7
@ -6,9 +6,9 @@ stages:
|
|||||||
before_script:
|
before_script:
|
||||||
- go get -u golang.org/x/lint/golint
|
- go get -u golang.org/x/lint/golint
|
||||||
- go get -u github.com/kardianos/govendor
|
- go get -u github.com/kardianos/govendor
|
||||||
- mkdir -p /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio
|
- mkdir -p /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio
|
||||||
- cp -r $CI_PROJECT_DIR /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio
|
- cp -r $CI_PROJECT_DIR /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio
|
||||||
- cd /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud
|
- cd /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
|
||||||
#- sed -i -e 's/$NEXTCLOUD_URL/'${NEXTCLOUD_URL//\//\\/}'/g' config.yml
|
#- sed -i -e 's/$NEXTCLOUD_URL/'${NEXTCLOUD_URL//\//\\/}'/g' config.yml
|
||||||
#- sed -i -e 's/$NEXTCLOUD_PASSWORD/'${NEXTCLOUD_PASSWORD}'/g' config.yml
|
#- sed -i -e 's/$NEXTCLOUD_PASSWORD/'${NEXTCLOUD_PASSWORD}'/g' config.yml
|
||||||
#- sed -i -e 's/$NEXTCLOUD_EMAIL/'${NEXTCLOUD_EMAIL}'/g' config.yml
|
#- sed -i -e 's/$NEXTCLOUD_EMAIL/'${NEXTCLOUD_EMAIL}'/g' config.yml
|
||||||
|
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
PROJECT_NAME := "gonextcloud"
|
PROJECT_NAME := "gonextcloud"
|
||||||
PKG := "gitlab.adphi.fr/partitio/Nextcloud-Partitio/$(PROJECT_NAME)"
|
PKG := "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/$(PROJECT_NAME)"
|
||||||
PKG_LIST := $(shell go list ${PKG})
|
PKG_LIST := $(shell go list ${PKG})
|
||||||
GO_FILES := $(shell find . -name '*.go' | grep -v _test.go)
|
GO_FILES := $(shell find . -name '*.go' | grep -v _test.go)
|
||||||
|
|
||||||
|
12
README.md
12
README.md
@ -1,9 +1,9 @@
|
|||||||
![Nextcloud](https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Nextcloud_Logo.svg/640px-Nextcloud_Logo.svg.png)
|
![Nextcloud](https://upload.wikimedia.org/wikipedia/commons/thumb/6/60/Nextcloud_Logo.svg/640px-Nextcloud_Logo.svg.png)
|
||||||
|
|
||||||
[![pipeline status](http://gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/badges/master/pipeline.svg)](http://gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/commits/master)
|
[![pipeline status](http://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/badges/master/pipeline.svg)](http://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/commits/master)
|
||||||
[![coverage report](http://gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/badges/master/coverage.svg)](http://gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/commits/master)
|
[![coverage report](http://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/badges/master/coverage.svg)](http://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/commits/master)
|
||||||
[![Go Report Card](https://goreportcard.com/badge/gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud)](https://goreportcard.com/report/gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud)
|
[![Go Report Card](https://goreportcard.com/badge/gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud)](https://goreportcard.com/report/gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud)
|
||||||
[![GoDoc](https://godoc.org/gitlab.com/gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud?status.svg)](https://godoc.org/gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud)
|
[![GoDoc](https://godoc.org/gitlab.com/gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud?status.svg)](https://godoc.org/gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud)
|
||||||
# GoNextcloud
|
# GoNextcloud
|
||||||
|
|
||||||
A simple Client for Nextcloud's Provisioning API in Go.
|
A simple Client for Nextcloud's Provisioning API in Go.
|
||||||
@ -14,7 +14,7 @@ https://docs.nextcloud.com/server/13/admin_manual/configuration_user/user_provis
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud"
|
import "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud"
|
||||||
```
|
```
|
||||||
|
|
||||||
You use the library by creating a client object and calling methods on it.
|
You use the library by creating a client object and calling methods on it.
|
||||||
@ -25,7 +25,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
2
apps.go
2
apps.go
@ -2,7 +2,7 @@ package gonextcloud
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package gonextcloud
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
2
auth.go
2
auth.go
@ -3,7 +3,7 @@ package gonextcloud
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errUnauthorized = fmt.Errorf("login first")
|
var errUnauthorized = fmt.Errorf("login first")
|
||||||
|
@ -2,7 +2,7 @@ package gonextcloud
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/url"
|
"net/url"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
2
doc.go
2
doc.go
@ -14,7 +14,7 @@ For example, to list all the Nextcloud's instance users:
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# gonextcloud
|
# gonextcloud
|
||||||
|
|
||||||
```go
|
```go
|
||||||
import "gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud"
|
import "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud"
|
||||||
```
|
```
|
||||||
|
|
||||||
Package gonextcloud is a Go client for the Nextcloud Provisioning API.
|
Package gonextcloud is a Go client for the Nextcloud Provisioning API.
|
||||||
@ -16,14 +16,14 @@ You use the library by creating a client object and calling methods on it.
|
|||||||
|
|
||||||
For example, to list all the Nextcloud's instance users:
|
For example, to list all the Nextcloud's instance users:
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
url := "https://www.mynextcloud.com"
|
url := "https://www.mynextcloud.com"
|
||||||
username := "admin"
|
username := "admin"
|
||||||
password := "password"
|
password := "password"
|
||||||
@ -41,7 +41,7 @@ For example, to list all the Nextcloud's instance users:
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
fmt.Println("Users :", users)
|
fmt.Println("Users :", users)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
#### type Client
|
#### type Client
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package gonextcloud
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
|
@ -3,7 +3,7 @@ package gonextcloud
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
@ -2,7 +2,7 @@ package gonextcloud
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package gonextcloud
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package gonextcloud
|
package gonextcloud
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ package gonextcloud
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
@ -3,7 +3,7 @@ package gonextcloud
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
"sync"
|
"sync"
|
||||||
|
2
users.go
2
users.go
@ -5,7 +5,7 @@ import (
|
|||||||
"github.com/fatih/structs"
|
"github.com/fatih/structs"
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
"path"
|
"path"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
2
utils.go
2
utils.go
@ -3,7 +3,7 @@ package gonextcloud
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
req "github.com/levigross/grequests"
|
req "github.com/levigross/grequests"
|
||||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"path"
|
"path"
|
||||||
|
2
vendor/vendor.json
vendored
2
vendor/vendor.json
vendored
@ -290,5 +290,5 @@
|
|||||||
"revisionTime": "2018-03-28T19:50:20Z"
|
"revisionTime": "2018-03-28T19:50:20Z"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"rootPath": "gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud"
|
"rootPath": "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user