-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata_source_without_ctx.go
41 lines (30 loc) · 1.52 KB
/
data_source_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
// Code generated from data_source.go using tools/withoutctx.go; DO NOT EDIT.
package redash
import "context"
func (client *ClientWithoutContext) ListDataSources() ([]DataSource, error) {
return client.withCtx.ListDataSources(context.Background())
}
func (client *ClientWithoutContext) GetDataSource(id int) (*DataSource, error) {
return client.withCtx.GetDataSource(context.Background(), id)
}
func (client *ClientWithoutContext) CreateDataSource(input *CreateDataSourceInput) (*DataSource, error) {
return client.withCtx.CreateDataSource(context.Background(), input)
}
func (client *ClientWithoutContext) UpdateDataSource(id int, input *UpdateDataSourceInput) (*DataSource, error) {
return client.withCtx.UpdateDataSource(context.Background(), id, input)
}
func (client *ClientWithoutContext) DeleteDataSource(id int) error {
return client.withCtx.DeleteDataSource(context.Background(), id)
}
func (client *ClientWithoutContext) PauseDataSource(id int, input *PauseDataSourceInput) (*DataSource, error) {
return client.withCtx.PauseDataSource(context.Background(), id, input)
}
func (client *ClientWithoutContext) ResumeDataSource(id int) (*DataSource, error) {
return client.withCtx.ResumeDataSource(context.Background(), id)
}
func (client *ClientWithoutContext) TestDataSource(id int) (*TestDataSourceOutput, error) {
return client.withCtx.TestDataSource(context.Background(), id)
}
func (client *ClientWithoutContext) GetDataSourceTypes() ([]DataSourceType, error) {
return client.withCtx.GetDataSourceTypes(context.Background())
}