updated project url

This commit is contained in:
Adphi 2018-10-26 15:35:50 +02:00
parent 16ca38c4e4
commit 0a52ba39d7
19 changed files with 49 additions and 49 deletions

View File

@ -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

View File

@ -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)

View File

@ -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() {

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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")

View File

@ -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
View File

@ -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() {

View File

@ -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,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:
```go
package main
package main
import (
import (
"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"
username := "admin"
password := "password"
@ -41,7 +41,7 @@ For example, to list all the Nextcloud's instance users:
panic(err)
}
fmt.Println("Users :", users)
}
}
```
#### type Client

View File

@ -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"

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

View File

@ -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
View File

@ -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"
}