mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2025-06-23 23:32:26 +00:00
Removed interface, updated docs and README.md
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
# client
|
||||
--
|
||||

|
||||
|
||||
# gonextcloud
|
||||
|
||||
```go
|
||||
import "github.com/partitio/gonextcloud/client"
|
||||
import "github.com/partitio/gonextcloud/client"
|
||||
```
|
||||
|
||||
|
||||
@ -12,14 +14,14 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/partitio/gonextcloud/client"
|
||||
"github.com/partitio/gonextcloud"
|
||||
)
|
||||
|
||||
func main() {
|
||||
url := "https://www.mynextcloud.com"
|
||||
username := "admin"
|
||||
password := "password"
|
||||
c, err := client.NewClient(url)
|
||||
c, err := gonextcloud.NewClient(url)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
@ -30,6 +32,7 @@ func main() {
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
#### type Client
|
||||
|
||||
```go
|
||||
@ -44,6 +47,42 @@ type Client struct {
|
||||
func NewClient(hostname string) (*Client, error)
|
||||
```
|
||||
|
||||
#### func (*Client) AppDisable
|
||||
|
||||
```go
|
||||
func (c *Client) AppDisable(name string) error
|
||||
```
|
||||
|
||||
#### func (*Client) AppEnable
|
||||
|
||||
```go
|
||||
func (c *Client) AppEnable(name string) error
|
||||
```
|
||||
|
||||
#### func (*Client) AppInfos
|
||||
|
||||
```go
|
||||
func (c *Client) AppInfos(name string) (types.App, error)
|
||||
```
|
||||
|
||||
#### func (*Client) AppList
|
||||
|
||||
```go
|
||||
func (c *Client) AppList() ([]string, error)
|
||||
```
|
||||
|
||||
#### func (*Client) AppListDisabled
|
||||
|
||||
```go
|
||||
func (c *Client) AppListDisabled() ([]string, error)
|
||||
```
|
||||
|
||||
#### func (*Client) AppListEnabled
|
||||
|
||||
```go
|
||||
func (c *Client) AppListEnabled() ([]string, error)
|
||||
```
|
||||
|
||||
#### func (*Client) GroupCreate
|
||||
|
||||
```go
|
||||
@ -101,7 +140,7 @@ func (c *Client) User(name string) (*types.User, error)
|
||||
#### func (*Client) UserCreate
|
||||
|
||||
```go
|
||||
func (c *Client) UserCreate(username string, password string) error
|
||||
func (c *Client) UserCreate(username string, password string, user *types.User) error
|
||||
```
|
||||
|
||||
#### func (*Client) UserDelete
|
||||
@ -176,6 +215,12 @@ func (c *Client) UserSearch(search string) ([]string, error)
|
||||
func (c *Client) UserSendWelcomeEmail(name string) error
|
||||
```
|
||||
|
||||
#### func (*Client) UserUpdate
|
||||
|
||||
```go
|
||||
func (c *Client) UserUpdate(user *types.User) error
|
||||
```
|
||||
|
||||
#### func (*Client) UserUpdateAddress
|
||||
|
||||
```go
|
||||
@ -209,7 +254,7 @@ func (c *Client) UserUpdatePhone(name string, phone string) error
|
||||
#### func (*Client) UserUpdateQuota
|
||||
|
||||
```go
|
||||
func (c *Client) UserUpdateQuota(name string, quota string) error
|
||||
func (c *Client) UserUpdateQuota(name string, quota int) error
|
||||
```
|
||||
|
||||
#### func (*Client) UserUpdateTwitter
|
||||
|
Reference in New Issue
Block a user