-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodels_client_fake.go
76 lines (60 loc) · 3.96 KB
/
models_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
68
69
70
71
72
73
74
75
76
package modzy
import (
"context"
)
// ModelsClientFake is meant to help in mocking the ModelsClient interface easily for unit testing.
type ModelsClientFake struct {
ListModelsFunc func(ctx context.Context, input *ListModelsInput) (*ListModelsOutput, error)
GetLatestModelsFunc func(ctx context.Context) (*GetLatestModelsOutput, error)
GetMinimumEnginesFunc func(ctx context.Context) (*GetMinimumEnginesOutput, error)
UpdateModelProcessingEnginesFunc func(ctx context.Context, input *UpdateModelProcessingEnginesInput) (*UpdateModelProcessingEnginesOutput, error)
GetModelDetailsFunc func(ctx context.Context, input *GetModelDetailsInput) (*GetModelDetailsOutput, error)
GetModelDetailsByNameFunc func(ctx context.Context, input *GetModelDetailsByNameInput) (*GetModelDetailsOutput, error)
ListModelVersionsFunc func(ctx context.Context, input *ListModelVersionsInput) (*ListModelVersionsOutput, error)
GetRelatedModelsFunc func(ctx context.Context, input *GetRelatedModelsInput) (*GetRelatedModelsOutput, error)
GetModelVersionDetailsFunc func(ctx context.Context, input *GetModelVersionDetailsInput) (*GetModelVersionDetailsOutput, error)
GetModelVersionSampleInputFunc func(ctx context.Context, input *GetModelVersionSampleInputInput) (*GetModelVersionSampleInputOutput, error)
GetModelVersionSampleOutputFunc func(ctx context.Context, input *GetModelVersionSampleOutputInput) (*GetModelVersionSampleOutputOutput, error)
GetTagsFunc func(ctx context.Context) (*GetTagsOutput, error)
GetTagModelsFunc func(ctx context.Context, input *GetTagModelsInput) (*GetTagModelsOutput, error)
}
var _ ModelsClient = &ModelsClientFake{}
func (c *ModelsClientFake) ListModels(ctx context.Context, input *ListModelsInput) (*ListModelsOutput, error) {
return c.ListModelsFunc(ctx, input)
}
func (c *ModelsClientFake) GetLatestModels(ctx context.Context) (*GetLatestModelsOutput, error) {
return c.GetLatestModelsFunc(ctx)
}
func (c *ModelsClientFake) GetMinimumEngines(ctx context.Context) (*GetMinimumEnginesOutput, error) {
return c.GetMinimumEnginesFunc(ctx)
}
func (c *ModelsClientFake) UpdateModelProcessingEngines(ctx context.Context, input *UpdateModelProcessingEnginesInput) (*UpdateModelProcessingEnginesOutput, error) {
return c.UpdateModelProcessingEnginesFunc(ctx, input)
}
func (c *ModelsClientFake) GetModelDetails(ctx context.Context, input *GetModelDetailsInput) (*GetModelDetailsOutput, error) {
return c.GetModelDetailsFunc(ctx, input)
}
func (c *ModelsClientFake) GetModelDetailsByName(ctx context.Context, input *GetModelDetailsByNameInput) (*GetModelDetailsOutput, error) {
return c.GetModelDetailsByNameFunc(ctx, input)
}
func (c *ModelsClientFake) ListModelVersions(ctx context.Context, input *ListModelVersionsInput) (*ListModelVersionsOutput, error) {
return c.ListModelVersionsFunc(ctx, input)
}
func (c *ModelsClientFake) GetRelatedModels(ctx context.Context, input *GetRelatedModelsInput) (*GetRelatedModelsOutput, error) {
return c.GetRelatedModelsFunc(ctx, input)
}
func (c *ModelsClientFake) GetModelVersionDetails(ctx context.Context, input *GetModelVersionDetailsInput) (*GetModelVersionDetailsOutput, error) {
return c.GetModelVersionDetailsFunc(ctx, input)
}
func (c *ModelsClientFake) GetModelVersionSampleInput(ctx context.Context, input *GetModelVersionSampleInputInput) (*GetModelVersionSampleInputOutput, error) {
return c.GetModelVersionSampleInputFunc(ctx, input)
}
func (c *ModelsClientFake) GetModelVersionSampleOutput(ctx context.Context, input *GetModelVersionSampleOutputInput) (*GetModelVersionSampleOutputOutput, error) {
return c.GetModelVersionSampleOutputFunc(ctx, input)
}
func (c *ModelsClientFake) GetTags(ctx context.Context) (*GetTagsOutput, error) {
return c.GetTagsFunc(ctx)
}
func (c *ModelsClientFake) GetTagModels(ctx context.Context, input *GetTagModelsInput) (*GetTagModelsOutput, error) {
return c.GetTagModelsFunc(ctx, input)
}