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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

View File

@ -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,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: 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"
c, err := client.NewClient(url) c, err := client.NewClient(url)
if err != nil { if err != nil {
panic(err) 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)
} }
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 #### type Client

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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