-
Notifications
You must be signed in to change notification settings - Fork 0
/
group_without_ctx.go
49 lines (36 loc) · 1.8 KB
/
group_without_ctx.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
// Code generated from group.go using tools/withoutctx.go; DO NOT EDIT.
package redash
import "context"
func (client *ClientWithoutContext) ListGroups() ([]Group, error) {
return client.withCtx.ListGroups(context.Background())
}
func (client *ClientWithoutContext) GetGroup(id int) (*Group, error) {
return client.withCtx.GetGroup(context.Background(), id)
}
func (client *ClientWithoutContext) CreateGroup(input *CreateGroupInput) (*Group, error) {
return client.withCtx.CreateGroup(context.Background(), input)
}
func (client *ClientWithoutContext) DeleteGroup(id int) error {
return client.withCtx.DeleteGroup(context.Background(), id)
}
func (client *ClientWithoutContext) ListGroupMembers(id int) ([]User, error) {
return client.withCtx.ListGroupMembers(context.Background(), id)
}
func (client *ClientWithoutContext) AddGroupMember(id int, userId int) (*User, error) {
return client.withCtx.AddGroupMember(context.Background(), id, userId)
}
func (client *ClientWithoutContext) RemoveGroupMember(id int, userId int) error {
return client.withCtx.RemoveGroupMember(context.Background(), id, userId)
}
func (client *ClientWithoutContext) ListGroupDataSources(id int) ([]DataSource, error) {
return client.withCtx.ListGroupDataSources(context.Background(), id)
}
func (client *ClientWithoutContext) AddGroupDataSource(id int, dsId int) (*DataSource, error) {
return client.withCtx.AddGroupDataSource(context.Background(), id, dsId)
}
func (client *ClientWithoutContext) RemoveGroupDataSource(id int, dsId int) error {
return client.withCtx.RemoveGroupDataSource(context.Background(), id, dsId)
}
func (client *ClientWithoutContext) UpdateGroupDataSource(id int, dsId int, input *UpdateGroupDataSourceInput) (*DataSource, error) {
return client.withCtx.UpdateGroupDataSource(context.Background(), id, dsId, input)
}