-
Notifications
You must be signed in to change notification settings - Fork 1
/
jobs_client_fake.go
67 lines (53 loc) · 3.16 KB
/
jobs_client_fake.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package modzy
import (
"context"
"time"
)
// JobsClientFake is meant to help in mocking the JobsClient interface easily for unit testing.
type JobsClientFake struct {
GetJobDetailsFunc func(ctx context.Context, input *GetJobDetailsInput) (*GetJobDetailsOutput, error)
ListJobsHistoryFunc func(ctx context.Context, input *ListJobsHistoryInput) (*ListJobsHistoryOutput, error)
SubmitJobTextFunc func(ctx context.Context, input *SubmitJobTextInput) (*SubmitJobTextOutput, error)
SubmitJobEmbeddedFunc func(ctx context.Context, input *SubmitJobEmbeddedInput) (*SubmitJobEmbeddedOutput, error)
SubmitJobFileFunc func(ctx context.Context, input *SubmitJobFileInput) (*SubmitJobFileOutput, error)
SubmitJobS3Func func(ctx context.Context, input *SubmitJobS3Input) (*SubmitJobS3Output, error)
SubmitJobJDBCFunc func(ctx context.Context, input *SubmitJobJDBCInput) (*SubmitJobJDBCOutput, error)
WaitForJobCompletionFunc func(ctx context.Context, input *WaitForJobCompletionInput, pollInterval time.Duration) (*GetJobDetailsOutput, error)
CancelJobFunc func(ctx context.Context, input *CancelJobInput) (*CancelJobOutput, error)
GetJobResultsFunc func(ctx context.Context, input *GetJobResultsInput) (*GetJobResultsOutput, error)
GetJobFeaturesFunc func(ctx context.Context) (*GetJobFeaturesOutput, error)
}
var _ JobsClient = &JobsClientFake{}
func (c *JobsClientFake) GetJobDetails(ctx context.Context, input *GetJobDetailsInput) (*GetJobDetailsOutput, error) {
return c.GetJobDetailsFunc(ctx, input)
}
func (c *JobsClientFake) ListJobsHistory(ctx context.Context, input *ListJobsHistoryInput) (*ListJobsHistoryOutput, error) {
return c.ListJobsHistoryFunc(ctx, input)
}
func (c *JobsClientFake) SubmitJobText(ctx context.Context, input *SubmitJobTextInput) (*SubmitJobTextOutput, error) {
return c.SubmitJobTextFunc(ctx, input)
}
func (c *JobsClientFake) SubmitJobEmbedded(ctx context.Context, input *SubmitJobEmbeddedInput) (*SubmitJobEmbeddedOutput, error) {
return c.SubmitJobEmbeddedFunc(ctx, input)
}
func (c *JobsClientFake) SubmitJobFile(ctx context.Context, input *SubmitJobFileInput) (*SubmitJobFileOutput, error) {
return c.SubmitJobFileFunc(ctx, input)
}
func (c *JobsClientFake) SubmitJobS3(ctx context.Context, input *SubmitJobS3Input) (*SubmitJobS3Output, error) {
return c.SubmitJobS3Func(ctx, input)
}
func (c *JobsClientFake) SubmitJobJDBC(ctx context.Context, input *SubmitJobJDBCInput) (*SubmitJobJDBCOutput, error) {
return c.SubmitJobJDBCFunc(ctx, input)
}
func (c *JobsClientFake) WaitForJobCompletion(ctx context.Context, input *WaitForJobCompletionInput, pollInterval time.Duration) (*GetJobDetailsOutput, error) {
return c.WaitForJobCompletionFunc(ctx, input, pollInterval)
}
func (c *JobsClientFake) CancelJob(ctx context.Context, input *CancelJobInput) (*CancelJobOutput, error) {
return c.CancelJobFunc(ctx, input)
}
func (c *JobsClientFake) GetJobResults(ctx context.Context, input *GetJobResultsInput) (*GetJobResultsOutput, error) {
return c.GetJobResultsFunc(ctx, input)
}
func (c *JobsClientFake) GetJobFeatures(ctx context.Context) (*GetJobFeaturesOutput, error) {
return c.GetJobFeaturesFunc(ctx)
}