mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-21 19:26:24 +00:00
updated project url
This commit is contained in:
parent
16ca38c4e4
commit
0a52ba39d7
@ -6,9 +6,9 @@ stages:
|
||||
before_script:
|
||||
- go get -u golang.org/x/lint/golint
|
||||
- go get -u github.com/kardianos/govendor
|
||||
- mkdir -p /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio
|
||||
- cp -r $CI_PROJECT_DIR /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio
|
||||
- cd /go/src/gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud
|
||||
- mkdir -p /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio
|
||||
- cp -r $CI_PROJECT_DIR /go/src/gitlab.bertha.cloud/partitio/Nextcloud-Partitio
|
||||
- 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_PASSWORD/'${NEXTCLOUD_PASSWORD}'/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"
|
||||
PKG := "gitlab.adphi.fr/partitio/Nextcloud-Partitio/$(PROJECT_NAME)"
|
||||
PKG := "gitlab.bertha.cloud/partitio/Nextcloud-Partitio/$(PROJECT_NAME)"
|
||||
PKG_LIST := $(shell go list ${PKG})
|
||||
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)
|
||||
|
||||
[![pipeline status](http://gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/badges/master/pipeline.svg)](http://gitlab.adphi.fr/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)
|
||||
[![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)
|
||||
[![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)
|
||||
[![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.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.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud)](https://goreportcard.com/report/gitlab.bertha.cloud/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
|
||||
|
||||
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
|
||||
|
||||
```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.
|
||||
@ -25,7 +25,7 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
2
apps.go
2
apps.go
@ -2,7 +2,7 @@ package gonextcloud
|
||||
|
||||
import (
|
||||
req "github.com/levigross/grequests"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package gonextcloud
|
||||
|
||||
import (
|
||||
req "github.com/levigross/grequests"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
"sync"
|
||||
)
|
||||
|
2
auth.go
2
auth.go
@ -3,7 +3,7 @@ package gonextcloud
|
||||
import (
|
||||
"fmt"
|
||||
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")
|
||||
|
@ -2,7 +2,7 @@ package gonextcloud
|
||||
|
||||
import (
|
||||
req "github.com/levigross/grequests"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
|
2
doc.go
2
doc.go
@ -14,7 +14,7 @@ For example, to list all the Nextcloud's instance users:
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -1,7 +1,7 @@
|
||||
# gonextcloud
|
||||
|
||||
```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.
|
||||
@ -16,32 +16,32 @@ You use the library by creating a client object and calling methods on it.
|
||||
|
||||
For example, to list all the Nextcloud's instance users:
|
||||
```go
|
||||
package main
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||
)
|
||||
import (
|
||||
"fmt"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/client"
|
||||
)
|
||||
|
||||
func main() {
|
||||
url := "https://www.mynextcloud.com"
|
||||
username := "admin"
|
||||
password := "password"
|
||||
c, err := client.NewClient(url)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := c.Login(username, password); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer c.Logout()
|
||||
|
||||
users, err := c.Users.List()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println("Users :", users)
|
||||
func main() {
|
||||
url := "https://www.mynextcloud.com"
|
||||
username := "admin"
|
||||
password := "password"
|
||||
c, err := client.NewClient(url)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err := c.Login(username, password); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
defer c.Logout()
|
||||
|
||||
users, err := c.Users.List()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
fmt.Println("Users :", users)
|
||||
}
|
||||
```
|
||||
#### type Client
|
||||
|
||||
|
@ -3,7 +3,7 @@ package gonextcloud
|
||||
import (
|
||||
"fmt"
|
||||
"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"
|
||||
"io/ioutil"
|
||||
"math/rand"
|
||||
|
@ -3,7 +3,7 @@ package gonextcloud
|
||||
import (
|
||||
"fmt"
|
||||
req "github.com/levigross/grequests"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
||||
|
@ -2,7 +2,7 @@ package gonextcloud
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package gonextcloud
|
||||
|
||||
import (
|
||||
req "github.com/levigross/grequests"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package gonextcloud
|
||||
|
||||
import (
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,7 @@ package gonextcloud
|
||||
import (
|
||||
"errors"
|
||||
req "github.com/levigross/grequests"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
"strconv"
|
||||
)
|
||||
|
@ -3,7 +3,7 @@ package gonextcloud
|
||||
import (
|
||||
"fmt"
|
||||
req "github.com/levigross/grequests"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"sync"
|
||||
|
2
users.go
2
users.go
@ -5,7 +5,7 @@ import (
|
||||
"github.com/fatih/structs"
|
||||
req "github.com/levigross/grequests"
|
||||
"github.com/pkg/errors"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
"path"
|
||||
"strconv"
|
||||
|
2
utils.go
2
utils.go
@ -3,7 +3,7 @@ package gonextcloud
|
||||
import (
|
||||
"encoding/json"
|
||||
req "github.com/levigross/grequests"
|
||||
"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud/types"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
|
2
vendor/vendor.json
vendored
2
vendor/vendor.json
vendored
@ -290,5 +290,5 @@
|
||||
"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