-
Notifications
You must be signed in to change notification settings - Fork 8
/
Node__checks.go
103 lines (76 loc) · 2.38 KB
/
Node__checks.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
//go:build !no_runtime_type_checking
// A programming model for software-defined state
package constructs
import (
"fmt"
_jsii_ "github.com/aws/jsii-runtime-go/runtime"
)
func (n *jsiiProxy_Node) validateAddMetadataParameters(type_ *string, data interface{}, options *MetadataOptions) error {
if type_ == nil {
return fmt.Errorf("parameter type_ is required, but nil was provided")
}
if data == nil {
return fmt.Errorf("parameter data is required, but nil was provided")
}
if err := _jsii_.ValidateStruct(options, func() string { return "parameter options" }); err != nil {
return err
}
return nil
}
func (n *jsiiProxy_Node) validateAddValidationParameters(validation IValidation) error {
if validation == nil {
return fmt.Errorf("parameter validation is required, but nil was provided")
}
return nil
}
func (n *jsiiProxy_Node) validateFindChildParameters(id *string) error {
if id == nil {
return fmt.Errorf("parameter id is required, but nil was provided")
}
return nil
}
func (n *jsiiProxy_Node) validateSetContextParameters(key *string, value interface{}) error {
if key == nil {
return fmt.Errorf("parameter key is required, but nil was provided")
}
if value == nil {
return fmt.Errorf("parameter value is required, but nil was provided")
}
return nil
}
func (n *jsiiProxy_Node) validateTryFindChildParameters(id *string) error {
if id == nil {
return fmt.Errorf("parameter id is required, but nil was provided")
}
return nil
}
func (n *jsiiProxy_Node) validateTryGetContextParameters(key *string) error {
if key == nil {
return fmt.Errorf("parameter key is required, but nil was provided")
}
return nil
}
func (n *jsiiProxy_Node) validateTryRemoveChildParameters(childName *string) error {
if childName == nil {
return fmt.Errorf("parameter childName is required, but nil was provided")
}
return nil
}
func validateNode_OfParameters(construct IConstruct) error {
if construct == nil {
return fmt.Errorf("parameter construct is required, but nil was provided")
}
return nil
}
func validateNewNodeParameters(host Construct, scope IConstruct, id *string) error {
if host == nil {
return fmt.Errorf("parameter host is required, but nil was provided")
}
if scope == nil {
return fmt.Errorf("parameter scope is required, but nil was provided")
}
if id == nil {
return fmt.Errorf("parameter id is required, but nil was provided")
}
return nil
}