/
stub.go
60 lines (47 loc) · 2.32 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
// Generated by github.com/temporalio/temporal-aws-sdk-generator
// from github.com/aws/aws-sdk-go version 1.35.7
package sagemakeredgemanagerstub
import (
"github.com/aws/aws-sdk-go/service/sagemakeredgemanager"
"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 GetDeviceRegistrationFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *GetDeviceRegistrationFuture) Get(ctx workflow.Context) (*sagemakeredgemanager.GetDeviceRegistrationOutput, error) {
var output sagemakeredgemanager.GetDeviceRegistrationOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
type SendHeartbeatFuture struct {
// public to support Selector.addFuture
Future workflow.Future
}
func (r *SendHeartbeatFuture) Get(ctx workflow.Context) (*sagemakeredgemanager.SendHeartbeatOutput, error) {
var output sagemakeredgemanager.SendHeartbeatOutput
err := r.Future.Get(ctx, &output)
return &output, err
}
func (a *stub) GetDeviceRegistration(ctx workflow.Context, input *sagemakeredgemanager.GetDeviceRegistrationInput) (*sagemakeredgemanager.GetDeviceRegistrationOutput, error) {
var output sagemakeredgemanager.GetDeviceRegistrationOutput
err := workflow.ExecuteActivity(ctx, "aws-sagemakeredgemanager-GetDeviceRegistration", input).Get(ctx, &output)
return &output, err
}
func (a *stub) GetDeviceRegistrationAsync(ctx workflow.Context, input *sagemakeredgemanager.GetDeviceRegistrationInput) *GetDeviceRegistrationFuture {
future := workflow.ExecuteActivity(ctx, "aws-sagemakeredgemanager-GetDeviceRegistration", input)
return &GetDeviceRegistrationFuture{Future: future}
}
func (a *stub) SendHeartbeat(ctx workflow.Context, input *sagemakeredgemanager.SendHeartbeatInput) (*sagemakeredgemanager.SendHeartbeatOutput, error) {
var output sagemakeredgemanager.SendHeartbeatOutput
err := workflow.ExecuteActivity(ctx, "aws-sagemakeredgemanager-SendHeartbeat", input).Get(ctx, &output)
return &output, err
}
func (a *stub) SendHeartbeatAsync(ctx workflow.Context, input *sagemakeredgemanager.SendHeartbeatInput) *SendHeartbeatFuture {
future := workflow.ExecuteActivity(ctx, "aws-sagemakeredgemanager-SendHeartbeat", input)
return &SendHeartbeatFuture{Future: future}
}