Go to file
Adphi 77765f51b8 Added Godoc badge to README.md 2018-10-16 17:09:04 +00:00
cover Fix project import path 2018-10-08 18:50:11 +02:00
docs Fix project import path 2018-10-08 18:50:11 +02:00
types Tests restructuration and AppsConfig implementation 2018-10-16 14:38:32 +02:00
vendor Fix project import path 2018-10-08 18:50:11 +02:00
.gitignore removed sensitive data 2018-10-16 15:52:56 +02:00
.gitlab-ci.yml Fix race condition in AppConfig 2018-10-16 18:16:18 +02:00
LICENCE Added Licence 2018-07-09 13:40:45 +02:00
Makefile Improved tests with random names and added docs 2018-10-16 15:24:44 +02:00
README.md Added Godoc badge to README.md 2018-10-16 17:09:04 +00:00
apps.go Fix project import path 2018-10-08 18:50:11 +02:00
appsconfig.go Fix race condition in AppConfig 2018-10-16 18:16:18 +02:00
appsconfig_test.go Tests restructuration and AppsConfig implementation 2018-10-16 14:38:32 +02:00
auth.go #6 Add method creating user only with username and email 2018-10-16 11:02:04 +02:00
client.go #6 Add method creating user only with username and email 2018-10-16 11:02:04 +02:00
config.yml removed sensitive data 2018-10-16 15:52:56 +02:00
coverage.html Fix project import path 2018-10-08 18:50:11 +02:00
doc.go Improved tests with random names and added docs 2018-10-16 15:24:44 +02:00
example.config.yml #6 Add method creating user only with username and email 2018-10-16 11:02:04 +02:00
gonextcloud.iml #1 OCS Shares API 2018-08-08 16:04:06 +02:00
gonextcloud_test.go Improved tests with random names and added docs 2018-10-16 15:24:44 +02:00
groupfolders.go Improved tests with random names and added docs 2018-10-16 15:24:44 +02:00
groupfolders_test.go Tests restructuration and AppsConfig implementation 2018-10-16 14:38:32 +02:00
groups.go #6 Add method creating user only with username and email 2018-10-16 11:02:04 +02:00
monitoring.go Fix project import path 2018-10-08 18:50:11 +02:00
routes.go Tests restructuration and AppsConfig implementation 2018-10-16 14:38:32 +02:00
shares.go Improved tests with random names and added docs 2018-10-16 15:24:44 +02:00
users.go #6 Add method creating user only with username and email 2018-10-16 11:02:04 +02:00
utils.go Fix project import path 2018-10-08 18:50:11 +02:00

README.md

Nextcloud

pipeline status coverage report Go Report Card GoDoc

GoNextcloud

A simple Client for Nextcloud's Provisioning API in Go.

import "gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud"

Usage

package main

import (
	"fmt"
	"gitlab.adphi.fr/partitio/Nextcloud-Partitio/gonextcloud"
)

func main() {
	url := "https://www.mynextcloud.com"
	username := "admin"
	password := "password"
	c, err := gonextcloud.NewClient(url)
	if err != nil {
		panic(err)
	}
	if err := c.Login(username, password); err != nil {
		panic(err)
	}
	defer c.Logout()
}

Run tests

Configure the tests for your instance by editing example.config.yml and renaming it config.yml

then run the tests :

$ go test -v .