/
stub.go
148 lines (119 loc) · 5.82 KB
/
stub.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
// Generated by github.com/temporalio/temporal-aws-sdk-generator
// from github.com/aws/aws-sdk-go version 1.35.7
package marketplacecatalogstub
import (
"github.com/aws/aws-sdk-go/service/marketplacecatalog"
"go.uber.org/cadence/workflow"
"github.com/banzaicloud/cadence-aws-sdk/clients"
)
// ensure that imports are valid even if not used by the generated code
var _ clients.VoidFuture
type stub struct{}
type CancelChangeSetFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *CancelChangeSetFuture) Get(ctx workflow.Context) (*marketplacecatalog.CancelChangeSetOutput, error) {
var output marketplacecatalog.CancelChangeSetOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type DescribeChangeSetFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *DescribeChangeSetFuture) Get(ctx workflow.Context) (*marketplacecatalog.DescribeChangeSetOutput, error) {
var output marketplacecatalog.DescribeChangeSetOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type DescribeEntityFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *DescribeEntityFuture) Get(ctx workflow.Context) (*marketplacecatalog.DescribeEntityOutput, error) {
var output marketplacecatalog.DescribeEntityOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type ListChangeSetsFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *ListChangeSetsFuture) Get(ctx workflow.Context) (*marketplacecatalog.ListChangeSetsOutput, error) {
var output marketplacecatalog.ListChangeSetsOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type ListEntitiesFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *ListEntitiesFuture) Get(ctx workflow.Context) (*marketplacecatalog.ListEntitiesOutput, error) {
var output marketplacecatalog.ListEntitiesOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type StartChangeSetFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *StartChangeSetFuture) Get(ctx workflow.Context) (*marketplacecatalog.StartChangeSetOutput, error) {
var output marketplacecatalog.StartChangeSetOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
func (a *stub) CancelChangeSet(ctx workflow.Context, input *marketplacecatalog.CancelChangeSetInput) (*marketplacecatalog.CancelChangeSetOutput, error) {
var output marketplacecatalog.CancelChangeSetOutput
err := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-CancelChangeSet", input).Get(ctx, &output)
return &output, err
}
func (a *stub) CancelChangeSetAsync(ctx workflow.Context, input *marketplacecatalog.CancelChangeSetInput) *CancelChangeSetFuture {
future := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-CancelChangeSet", input)
return &CancelChangeSetFuture{Future: future}
}
func (a *stub) DescribeChangeSet(ctx workflow.Context, input *marketplacecatalog.DescribeChangeSetInput) (*marketplacecatalog.DescribeChangeSetOutput, error) {
var output marketplacecatalog.DescribeChangeSetOutput
err := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-DescribeChangeSet", input).Get(ctx, &output)
return &output, err
}
func (a *stub) DescribeChangeSetAsync(ctx workflow.Context, input *marketplacecatalog.DescribeChangeSetInput) *DescribeChangeSetFuture {
future := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-DescribeChangeSet", input)
return &DescribeChangeSetFuture{Future: future}
}
func (a *stub) DescribeEntity(ctx workflow.Context, input *marketplacecatalog.DescribeEntityInput) (*marketplacecatalog.DescribeEntityOutput, error) {
var output marketplacecatalog.DescribeEntityOutput
err := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-DescribeEntity", input).Get(ctx, &output)
return &output, err
}
func (a *stub) DescribeEntityAsync(ctx workflow.Context, input *marketplacecatalog.DescribeEntityInput) *DescribeEntityFuture {
future := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-DescribeEntity", input)
return &DescribeEntityFuture{Future: future}
}
func (a *stub) ListChangeSets(ctx workflow.Context, input *marketplacecatalog.ListChangeSetsInput) (*marketplacecatalog.ListChangeSetsOutput, error) {
var output marketplacecatalog.ListChangeSetsOutput
err := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-ListChangeSets", input).Get(ctx, &output)
return &output, err
}
func (a *stub) ListChangeSetsAsync(ctx workflow.Context, input *marketplacecatalog.ListChangeSetsInput) *ListChangeSetsFuture {
future := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-ListChangeSets", input)
return &ListChangeSetsFuture{Future: future}
}
func (a *stub) ListEntities(ctx workflow.Context, input *marketplacecatalog.ListEntitiesInput) (*marketplacecatalog.ListEntitiesOutput, error) {
var output marketplacecatalog.ListEntitiesOutput
err := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-ListEntities", input).Get(ctx, &output)
return &output, err
}
func (a *stub) ListEntitiesAsync(ctx workflow.Context, input *marketplacecatalog.ListEntitiesInput) *ListEntitiesFuture {
future := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-ListEntities", input)
return &ListEntitiesFuture{Future: future}
}
func (a *stub) StartChangeSet(ctx workflow.Context, input *marketplacecatalog.StartChangeSetInput) (*marketplacecatalog.StartChangeSetOutput, error) {
var output marketplacecatalog.StartChangeSetOutput
err := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-StartChangeSet", input).Get(ctx, &output)
return &output, err
}
func (a *stub) StartChangeSetAsync(ctx workflow.Context, input *marketplacecatalog.StartChangeSetInput) *StartChangeSetFuture {
future := workflow.ExecuteActivity(ctx, "aws-marketplacecatalog-StartChangeSet", input)
return &StartChangeSetFuture{Future: future}
}