-
Notifications
You must be signed in to change notification settings - Fork 113
/
pulumiEnums.go
184 lines (142 loc) · 6.02 KB
/
pulumiEnums.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
// Code generated by pulumigen DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ServiceSpecType string
const (
ServiceSpecTypeExternalName = ServiceSpecType("ExternalName")
ServiceSpecTypeClusterIP = ServiceSpecType("ClusterIP")
ServiceSpecTypeNodePort = ServiceSpecType("NodePort")
ServiceSpecTypeLoadBalancer = ServiceSpecType("LoadBalancer")
)
func (ServiceSpecType) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceSpecType)(nil)).Elem()
}
func (e ServiceSpecType) ToServiceSpecTypeOutput() ServiceSpecTypeOutput {
return pulumi.ToOutput(e).(ServiceSpecTypeOutput)
}
func (e ServiceSpecType) ToServiceSpecTypeOutputWithContext(ctx context.Context) ServiceSpecTypeOutput {
return pulumi.ToOutputWithContext(ctx, e).(ServiceSpecTypeOutput)
}
func (e ServiceSpecType) ToServiceSpecTypePtrOutput() ServiceSpecTypePtrOutput {
return e.ToServiceSpecTypePtrOutputWithContext(context.Background())
}
func (e ServiceSpecType) ToServiceSpecTypePtrOutputWithContext(ctx context.Context) ServiceSpecTypePtrOutput {
return ServiceSpecType(e).ToServiceSpecTypeOutputWithContext(ctx).ToServiceSpecTypePtrOutputWithContext(ctx)
}
func (e ServiceSpecType) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e ServiceSpecType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e ServiceSpecType) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e ServiceSpecType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type ServiceSpecTypeOutput struct{ *pulumi.OutputState }
func (ServiceSpecTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ServiceSpecType)(nil)).Elem()
}
func (o ServiceSpecTypeOutput) ToServiceSpecTypeOutput() ServiceSpecTypeOutput {
return o
}
func (o ServiceSpecTypeOutput) ToServiceSpecTypeOutputWithContext(ctx context.Context) ServiceSpecTypeOutput {
return o
}
func (o ServiceSpecTypeOutput) ToServiceSpecTypePtrOutput() ServiceSpecTypePtrOutput {
return o.ToServiceSpecTypePtrOutputWithContext(context.Background())
}
func (o ServiceSpecTypeOutput) ToServiceSpecTypePtrOutputWithContext(ctx context.Context) ServiceSpecTypePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceSpecType) *ServiceSpecType {
return &v
}).(ServiceSpecTypePtrOutput)
}
func (o ServiceSpecTypeOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o ServiceSpecTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e ServiceSpecType) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o ServiceSpecTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o ServiceSpecTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e ServiceSpecType) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type ServiceSpecTypePtrOutput struct{ *pulumi.OutputState }
func (ServiceSpecTypePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceSpecType)(nil)).Elem()
}
func (o ServiceSpecTypePtrOutput) ToServiceSpecTypePtrOutput() ServiceSpecTypePtrOutput {
return o
}
func (o ServiceSpecTypePtrOutput) ToServiceSpecTypePtrOutputWithContext(ctx context.Context) ServiceSpecTypePtrOutput {
return o
}
func (o ServiceSpecTypePtrOutput) Elem() ServiceSpecTypeOutput {
return o.ApplyT(func(v *ServiceSpecType) ServiceSpecType {
if v != nil {
return *v
}
var ret ServiceSpecType
return ret
}).(ServiceSpecTypeOutput)
}
func (o ServiceSpecTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o ServiceSpecTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *ServiceSpecType) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// ServiceSpecTypeInput is an input type that accepts ServiceSpecTypeArgs and ServiceSpecTypeOutput values.
// You can construct a concrete instance of `ServiceSpecTypeInput` via:
//
// ServiceSpecTypeArgs{...}
type ServiceSpecTypeInput interface {
pulumi.Input
ToServiceSpecTypeOutput() ServiceSpecTypeOutput
ToServiceSpecTypeOutputWithContext(context.Context) ServiceSpecTypeOutput
}
var serviceSpecTypePtrType = reflect.TypeOf((**ServiceSpecType)(nil)).Elem()
type ServiceSpecTypePtrInput interface {
pulumi.Input
ToServiceSpecTypePtrOutput() ServiceSpecTypePtrOutput
ToServiceSpecTypePtrOutputWithContext(context.Context) ServiceSpecTypePtrOutput
}
type serviceSpecTypePtr string
func ServiceSpecTypePtr(v string) ServiceSpecTypePtrInput {
return (*serviceSpecTypePtr)(&v)
}
func (*serviceSpecTypePtr) ElementType() reflect.Type {
return serviceSpecTypePtrType
}
func (in *serviceSpecTypePtr) ToServiceSpecTypePtrOutput() ServiceSpecTypePtrOutput {
return pulumi.ToOutput(in).(ServiceSpecTypePtrOutput)
}
func (in *serviceSpecTypePtr) ToServiceSpecTypePtrOutputWithContext(ctx context.Context) ServiceSpecTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(ServiceSpecTypePtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ServiceSpecTypeInput)(nil)).Elem(), ServiceSpecType("ExternalName"))
pulumi.RegisterInputType(reflect.TypeOf((*ServiceSpecTypePtrInput)(nil)).Elem(), ServiceSpecType("ExternalName"))
pulumi.RegisterOutputType(ServiceSpecTypeOutput{})
pulumi.RegisterOutputType(ServiceSpecTypePtrOutput{})
}