forked from slok/go-copy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
links.go
51 lines (39 loc) · 1010 Bytes
/
links.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package copy
import (
"strings"
)
// Use the object Meta from files (move to other file?)
type LinkService struct {
client *Client
}
var (
// Links paths
linksTopLevelSuffix = "links"
linksGetSuffix = strings.Join([]string{linksTopLevelSuffix, "%v"}, "/") // https://.../links/TOKEN
)
func NewLinkService(client *Client) *LinkService {
fs := new(LinkService)
fs.client = client
return fs
}
func (ls *LinkService) GetLink(token string) (*Meta, error) {
return nil, nil
}
func (ls *LinkService) GetLinks() ([]Meta, error) {
return nil, nil
}
func (ls *LinkService) CreateLink(name string, paths []string, public bool) error {
return nil
}
func (ls *LinkService) AddPaths(token string, paths []string) error {
return nil
}
func (ls *LinkService) AddRecipients(token string, recipients []Recipient) error {
return nil
}
func (ls *LinkService) DeleteLink(token string) error {
return nil
}
func (ls *LinkService) GetFilesMetaFromLink(token string) (*Meta, error) {
return nil, nil
}