-
Notifications
You must be signed in to change notification settings - Fork 115
/
pulumiTypes.go
667 lines (538 loc) · 35.5 KB
/
pulumiTypes.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v1beta1
import (
"context"
"reflect"
corev1 "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/core/v1"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Endpoint represents a single logical "backend" implementing a service.
type Endpoint struct {
// addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100.
Addresses []string `pulumi:"addresses"`
// conditions contains information about the current status of the endpoint.
Conditions *EndpointConditions `pulumi:"conditions"`
// hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation.
Hostname *string `pulumi:"hostname"`
// targetRef is a reference to a Kubernetes object that represents this endpoint.
TargetRef *corev1.ObjectReference `pulumi:"targetRef"`
// topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node
// where the endpoint is located. This should match the corresponding
// node label.
// * topology.kubernetes.io/zone: the value indicates the zone where the
// endpoint is located. This should match the corresponding node label.
// * topology.kubernetes.io/region: the value indicates the region where the
// endpoint is located. This should match the corresponding node label.
Topology map[string]string `pulumi:"topology"`
}
// EndpointInput is an input type that accepts EndpointArgs and EndpointOutput values.
// You can construct a concrete instance of `EndpointInput` via:
//
// EndpointArgs{...}
type EndpointInput interface {
pulumi.Input
ToEndpointOutput() EndpointOutput
ToEndpointOutputWithContext(context.Context) EndpointOutput
}
// Endpoint represents a single logical "backend" implementing a service.
type EndpointArgs struct {
// addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100.
Addresses pulumi.StringArrayInput `pulumi:"addresses"`
// conditions contains information about the current status of the endpoint.
Conditions EndpointConditionsPtrInput `pulumi:"conditions"`
// hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation.
Hostname pulumi.StringPtrInput `pulumi:"hostname"`
// targetRef is a reference to a Kubernetes object that represents this endpoint.
TargetRef corev1.ObjectReferencePtrInput `pulumi:"targetRef"`
// topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node
// where the endpoint is located. This should match the corresponding
// node label.
// * topology.kubernetes.io/zone: the value indicates the zone where the
// endpoint is located. This should match the corresponding node label.
// * topology.kubernetes.io/region: the value indicates the region where the
// endpoint is located. This should match the corresponding node label.
Topology pulumi.StringMapInput `pulumi:"topology"`
}
func (EndpointArgs) ElementType() reflect.Type {
return reflect.TypeOf((*Endpoint)(nil)).Elem()
}
func (i EndpointArgs) ToEndpointOutput() EndpointOutput {
return i.ToEndpointOutputWithContext(context.Background())
}
func (i EndpointArgs) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointOutput)
}
// EndpointArrayInput is an input type that accepts EndpointArray and EndpointArrayOutput values.
// You can construct a concrete instance of `EndpointArrayInput` via:
//
// EndpointArray{ EndpointArgs{...} }
type EndpointArrayInput interface {
pulumi.Input
ToEndpointArrayOutput() EndpointArrayOutput
ToEndpointArrayOutputWithContext(context.Context) EndpointArrayOutput
}
type EndpointArray []EndpointInput
func (EndpointArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]Endpoint)(nil)).Elem()
}
func (i EndpointArray) ToEndpointArrayOutput() EndpointArrayOutput {
return i.ToEndpointArrayOutputWithContext(context.Background())
}
func (i EndpointArray) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointArrayOutput)
}
// Endpoint represents a single logical "backend" implementing a service.
type EndpointOutput struct{ *pulumi.OutputState }
func (EndpointOutput) ElementType() reflect.Type {
return reflect.TypeOf((*Endpoint)(nil)).Elem()
}
func (o EndpointOutput) ToEndpointOutput() EndpointOutput {
return o
}
func (o EndpointOutput) ToEndpointOutputWithContext(ctx context.Context) EndpointOutput {
return o
}
// addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100.
func (o EndpointOutput) Addresses() pulumi.StringArrayOutput {
return o.ApplyT(func(v Endpoint) []string { return v.Addresses }).(pulumi.StringArrayOutput)
}
// conditions contains information about the current status of the endpoint.
func (o EndpointOutput) Conditions() EndpointConditionsPtrOutput {
return o.ApplyT(func(v Endpoint) *EndpointConditions { return v.Conditions }).(EndpointConditionsPtrOutput)
}
// hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123) validation.
func (o EndpointOutput) Hostname() pulumi.StringPtrOutput {
return o.ApplyT(func(v Endpoint) *string { return v.Hostname }).(pulumi.StringPtrOutput)
}
// targetRef is a reference to a Kubernetes object that represents this endpoint.
func (o EndpointOutput) TargetRef() corev1.ObjectReferencePtrOutput {
return o.ApplyT(func(v Endpoint) *corev1.ObjectReference { return v.TargetRef }).(corev1.ObjectReferencePtrOutput)
}
// topology contains arbitrary topology information associated with the endpoint. These key/value pairs must conform with the label format. https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Topology may include a maximum of 16 key/value pairs. This includes, but is not limited to the following well known keys: * kubernetes.io/hostname: the value indicates the hostname of the node
// where the endpoint is located. This should match the corresponding
// node label.
// * topology.kubernetes.io/zone: the value indicates the zone where the
// endpoint is located. This should match the corresponding node label.
// * topology.kubernetes.io/region: the value indicates the region where the
// endpoint is located. This should match the corresponding node label.
func (o EndpointOutput) Topology() pulumi.StringMapOutput {
return o.ApplyT(func(v Endpoint) map[string]string { return v.Topology }).(pulumi.StringMapOutput)
}
type EndpointArrayOutput struct{ *pulumi.OutputState }
func (EndpointArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]Endpoint)(nil)).Elem()
}
func (o EndpointArrayOutput) ToEndpointArrayOutput() EndpointArrayOutput {
return o
}
func (o EndpointArrayOutput) ToEndpointArrayOutputWithContext(ctx context.Context) EndpointArrayOutput {
return o
}
func (o EndpointArrayOutput) Index(i pulumi.IntInput) EndpointOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) Endpoint {
return vs[0].([]Endpoint)[vs[1].(int)]
}).(EndpointOutput)
}
// EndpointConditions represents the current condition of an endpoint.
type EndpointConditions struct {
// ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready.
Ready *bool `pulumi:"ready"`
}
// EndpointConditionsInput is an input type that accepts EndpointConditionsArgs and EndpointConditionsOutput values.
// You can construct a concrete instance of `EndpointConditionsInput` via:
//
// EndpointConditionsArgs{...}
type EndpointConditionsInput interface {
pulumi.Input
ToEndpointConditionsOutput() EndpointConditionsOutput
ToEndpointConditionsOutputWithContext(context.Context) EndpointConditionsOutput
}
// EndpointConditions represents the current condition of an endpoint.
type EndpointConditionsArgs struct {
// ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready.
Ready pulumi.BoolPtrInput `pulumi:"ready"`
}
func (EndpointConditionsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EndpointConditions)(nil)).Elem()
}
func (i EndpointConditionsArgs) ToEndpointConditionsOutput() EndpointConditionsOutput {
return i.ToEndpointConditionsOutputWithContext(context.Background())
}
func (i EndpointConditionsArgs) ToEndpointConditionsOutputWithContext(ctx context.Context) EndpointConditionsOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointConditionsOutput)
}
func (i EndpointConditionsArgs) ToEndpointConditionsPtrOutput() EndpointConditionsPtrOutput {
return i.ToEndpointConditionsPtrOutputWithContext(context.Background())
}
func (i EndpointConditionsArgs) ToEndpointConditionsPtrOutputWithContext(ctx context.Context) EndpointConditionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointConditionsOutput).ToEndpointConditionsPtrOutputWithContext(ctx)
}
// EndpointConditionsPtrInput is an input type that accepts EndpointConditionsArgs, EndpointConditionsPtr and EndpointConditionsPtrOutput values.
// You can construct a concrete instance of `EndpointConditionsPtrInput` via:
//
// EndpointConditionsArgs{...}
//
// or:
//
// nil
type EndpointConditionsPtrInput interface {
pulumi.Input
ToEndpointConditionsPtrOutput() EndpointConditionsPtrOutput
ToEndpointConditionsPtrOutputWithContext(context.Context) EndpointConditionsPtrOutput
}
type endpointConditionsPtrType EndpointConditionsArgs
func EndpointConditionsPtr(v *EndpointConditionsArgs) EndpointConditionsPtrInput {
return (*endpointConditionsPtrType)(v)
}
func (*endpointConditionsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**EndpointConditions)(nil)).Elem()
}
func (i *endpointConditionsPtrType) ToEndpointConditionsPtrOutput() EndpointConditionsPtrOutput {
return i.ToEndpointConditionsPtrOutputWithContext(context.Background())
}
func (i *endpointConditionsPtrType) ToEndpointConditionsPtrOutputWithContext(ctx context.Context) EndpointConditionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointConditionsPtrOutput)
}
// EndpointConditions represents the current condition of an endpoint.
type EndpointConditionsOutput struct{ *pulumi.OutputState }
func (EndpointConditionsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EndpointConditions)(nil)).Elem()
}
func (o EndpointConditionsOutput) ToEndpointConditionsOutput() EndpointConditionsOutput {
return o
}
func (o EndpointConditionsOutput) ToEndpointConditionsOutputWithContext(ctx context.Context) EndpointConditionsOutput {
return o
}
func (o EndpointConditionsOutput) ToEndpointConditionsPtrOutput() EndpointConditionsPtrOutput {
return o.ToEndpointConditionsPtrOutputWithContext(context.Background())
}
func (o EndpointConditionsOutput) ToEndpointConditionsPtrOutputWithContext(ctx context.Context) EndpointConditionsPtrOutput {
return o.ApplyT(func(v EndpointConditions) *EndpointConditions {
return &v
}).(EndpointConditionsPtrOutput)
}
// ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready.
func (o EndpointConditionsOutput) Ready() pulumi.BoolPtrOutput {
return o.ApplyT(func(v EndpointConditions) *bool { return v.Ready }).(pulumi.BoolPtrOutput)
}
type EndpointConditionsPtrOutput struct{ *pulumi.OutputState }
func (EndpointConditionsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**EndpointConditions)(nil)).Elem()
}
func (o EndpointConditionsPtrOutput) ToEndpointConditionsPtrOutput() EndpointConditionsPtrOutput {
return o
}
func (o EndpointConditionsPtrOutput) ToEndpointConditionsPtrOutputWithContext(ctx context.Context) EndpointConditionsPtrOutput {
return o
}
func (o EndpointConditionsPtrOutput) Elem() EndpointConditionsOutput {
return o.ApplyT(func(v *EndpointConditions) EndpointConditions { return *v }).(EndpointConditionsOutput)
}
// ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready.
func (o EndpointConditionsPtrOutput) Ready() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *EndpointConditions) *bool {
if v == nil {
return nil
}
return v.Ready
}).(pulumi.BoolPtrOutput)
}
// EndpointPort represents a Port used by an EndpointSlice
type EndpointPort struct {
// The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.
AppProtocol *string `pulumi:"appProtocol"`
// The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.
Name *string `pulumi:"name"`
// The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.
Port *int `pulumi:"port"`
// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.
Protocol *string `pulumi:"protocol"`
}
// EndpointPortInput is an input type that accepts EndpointPortArgs and EndpointPortOutput values.
// You can construct a concrete instance of `EndpointPortInput` via:
//
// EndpointPortArgs{...}
type EndpointPortInput interface {
pulumi.Input
ToEndpointPortOutput() EndpointPortOutput
ToEndpointPortOutputWithContext(context.Context) EndpointPortOutput
}
// EndpointPort represents a Port used by an EndpointSlice
type EndpointPortArgs struct {
// The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.
AppProtocol pulumi.StringPtrInput `pulumi:"appProtocol"`
// The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.
Name pulumi.StringPtrInput `pulumi:"name"`
// The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.
Port pulumi.IntPtrInput `pulumi:"port"`
// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.
Protocol pulumi.StringPtrInput `pulumi:"protocol"`
}
func (EndpointPortArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EndpointPort)(nil)).Elem()
}
func (i EndpointPortArgs) ToEndpointPortOutput() EndpointPortOutput {
return i.ToEndpointPortOutputWithContext(context.Background())
}
func (i EndpointPortArgs) ToEndpointPortOutputWithContext(ctx context.Context) EndpointPortOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointPortOutput)
}
// EndpointPortArrayInput is an input type that accepts EndpointPortArray and EndpointPortArrayOutput values.
// You can construct a concrete instance of `EndpointPortArrayInput` via:
//
// EndpointPortArray{ EndpointPortArgs{...} }
type EndpointPortArrayInput interface {
pulumi.Input
ToEndpointPortArrayOutput() EndpointPortArrayOutput
ToEndpointPortArrayOutputWithContext(context.Context) EndpointPortArrayOutput
}
type EndpointPortArray []EndpointPortInput
func (EndpointPortArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]EndpointPort)(nil)).Elem()
}
func (i EndpointPortArray) ToEndpointPortArrayOutput() EndpointPortArrayOutput {
return i.ToEndpointPortArrayOutputWithContext(context.Background())
}
func (i EndpointPortArray) ToEndpointPortArrayOutputWithContext(ctx context.Context) EndpointPortArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointPortArrayOutput)
}
// EndpointPort represents a Port used by an EndpointSlice
type EndpointPortOutput struct{ *pulumi.OutputState }
func (EndpointPortOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EndpointPort)(nil)).Elem()
}
func (o EndpointPortOutput) ToEndpointPortOutput() EndpointPortOutput {
return o
}
func (o EndpointPortOutput) ToEndpointPortOutputWithContext(ctx context.Context) EndpointPortOutput {
return o
}
// The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.
func (o EndpointPortOutput) AppProtocol() pulumi.StringPtrOutput {
return o.ApplyT(func(v EndpointPort) *string { return v.AppProtocol }).(pulumi.StringPtrOutput)
}
// The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.
func (o EndpointPortOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v EndpointPort) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.
func (o EndpointPortOutput) Port() pulumi.IntPtrOutput {
return o.ApplyT(func(v EndpointPort) *int { return v.Port }).(pulumi.IntPtrOutput)
}
// The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.
func (o EndpointPortOutput) Protocol() pulumi.StringPtrOutput {
return o.ApplyT(func(v EndpointPort) *string { return v.Protocol }).(pulumi.StringPtrOutput)
}
type EndpointPortArrayOutput struct{ *pulumi.OutputState }
func (EndpointPortArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]EndpointPort)(nil)).Elem()
}
func (o EndpointPortArrayOutput) ToEndpointPortArrayOutput() EndpointPortArrayOutput {
return o
}
func (o EndpointPortArrayOutput) ToEndpointPortArrayOutputWithContext(ctx context.Context) EndpointPortArrayOutput {
return o
}
func (o EndpointPortArrayOutput) Index(i pulumi.IntInput) EndpointPortOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) EndpointPort {
return vs[0].([]EndpointPort)[vs[1].(int)]
}).(EndpointPortOutput)
}
// EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
type EndpointSliceType struct {
// addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
AddressType string `pulumi:"addressType"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.
Endpoints []Endpoint `pulumi:"endpoints"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard object's metadata.
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports.
Ports []EndpointPort `pulumi:"ports"`
}
// EndpointSliceTypeInput is an input type that accepts EndpointSliceTypeArgs and EndpointSliceTypeOutput values.
// You can construct a concrete instance of `EndpointSliceTypeInput` via:
//
// EndpointSliceTypeArgs{...}
type EndpointSliceTypeInput interface {
pulumi.Input
ToEndpointSliceTypeOutput() EndpointSliceTypeOutput
ToEndpointSliceTypeOutputWithContext(context.Context) EndpointSliceTypeOutput
}
// EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
type EndpointSliceTypeArgs struct {
// addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
AddressType pulumi.StringInput `pulumi:"addressType"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.
Endpoints EndpointArrayInput `pulumi:"endpoints"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard object's metadata.
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports.
Ports EndpointPortArrayInput `pulumi:"ports"`
}
func (EndpointSliceTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EndpointSliceType)(nil)).Elem()
}
func (i EndpointSliceTypeArgs) ToEndpointSliceTypeOutput() EndpointSliceTypeOutput {
return i.ToEndpointSliceTypeOutputWithContext(context.Background())
}
func (i EndpointSliceTypeArgs) ToEndpointSliceTypeOutputWithContext(ctx context.Context) EndpointSliceTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointSliceTypeOutput)
}
// EndpointSliceTypeArrayInput is an input type that accepts EndpointSliceTypeArray and EndpointSliceTypeArrayOutput values.
// You can construct a concrete instance of `EndpointSliceTypeArrayInput` via:
//
// EndpointSliceTypeArray{ EndpointSliceTypeArgs{...} }
type EndpointSliceTypeArrayInput interface {
pulumi.Input
ToEndpointSliceTypeArrayOutput() EndpointSliceTypeArrayOutput
ToEndpointSliceTypeArrayOutputWithContext(context.Context) EndpointSliceTypeArrayOutput
}
type EndpointSliceTypeArray []EndpointSliceTypeInput
func (EndpointSliceTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]EndpointSliceType)(nil)).Elem()
}
func (i EndpointSliceTypeArray) ToEndpointSliceTypeArrayOutput() EndpointSliceTypeArrayOutput {
return i.ToEndpointSliceTypeArrayOutputWithContext(context.Background())
}
func (i EndpointSliceTypeArray) ToEndpointSliceTypeArrayOutputWithContext(ctx context.Context) EndpointSliceTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointSliceTypeArrayOutput)
}
// EndpointSlice represents a subset of the endpoints that implement a service. For a given service there may be multiple EndpointSlice objects, selected by labels, which must be joined to produce the full set of endpoints.
type EndpointSliceTypeOutput struct{ *pulumi.OutputState }
func (EndpointSliceTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EndpointSliceType)(nil)).Elem()
}
func (o EndpointSliceTypeOutput) ToEndpointSliceTypeOutput() EndpointSliceTypeOutput {
return o
}
func (o EndpointSliceTypeOutput) ToEndpointSliceTypeOutputWithContext(ctx context.Context) EndpointSliceTypeOutput {
return o
}
// addressType specifies the type of address carried by this EndpointSlice. All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
func (o EndpointSliceTypeOutput) AddressType() pulumi.StringOutput {
return o.ApplyT(func(v EndpointSliceType) string { return v.AddressType }).(pulumi.StringOutput)
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o EndpointSliceTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v EndpointSliceType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.
func (o EndpointSliceTypeOutput) Endpoints() EndpointArrayOutput {
return o.ApplyT(func(v EndpointSliceType) []Endpoint { return v.Endpoints }).(EndpointArrayOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o EndpointSliceTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v EndpointSliceType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata.
func (o EndpointSliceTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v EndpointSliceType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports.
func (o EndpointSliceTypeOutput) Ports() EndpointPortArrayOutput {
return o.ApplyT(func(v EndpointSliceType) []EndpointPort { return v.Ports }).(EndpointPortArrayOutput)
}
type EndpointSliceTypeArrayOutput struct{ *pulumi.OutputState }
func (EndpointSliceTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]EndpointSliceType)(nil)).Elem()
}
func (o EndpointSliceTypeArrayOutput) ToEndpointSliceTypeArrayOutput() EndpointSliceTypeArrayOutput {
return o
}
func (o EndpointSliceTypeArrayOutput) ToEndpointSliceTypeArrayOutputWithContext(ctx context.Context) EndpointSliceTypeArrayOutput {
return o
}
func (o EndpointSliceTypeArrayOutput) Index(i pulumi.IntInput) EndpointSliceTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) EndpointSliceType {
return vs[0].([]EndpointSliceType)[vs[1].(int)]
}).(EndpointSliceTypeOutput)
}
// EndpointSliceList represents a list of endpoint slices
type EndpointSliceListType struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// List of endpoint slices
Items []EndpointSliceType `pulumi:"items"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard list metadata.
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// EndpointSliceListTypeInput is an input type that accepts EndpointSliceListTypeArgs and EndpointSliceListTypeOutput values.
// You can construct a concrete instance of `EndpointSliceListTypeInput` via:
//
// EndpointSliceListTypeArgs{...}
type EndpointSliceListTypeInput interface {
pulumi.Input
ToEndpointSliceListTypeOutput() EndpointSliceListTypeOutput
ToEndpointSliceListTypeOutputWithContext(context.Context) EndpointSliceListTypeOutput
}
// EndpointSliceList represents a list of endpoint slices
type EndpointSliceListTypeArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// List of endpoint slices
Items EndpointSliceTypeArrayInput `pulumi:"items"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard list metadata.
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (EndpointSliceListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*EndpointSliceListType)(nil)).Elem()
}
func (i EndpointSliceListTypeArgs) ToEndpointSliceListTypeOutput() EndpointSliceListTypeOutput {
return i.ToEndpointSliceListTypeOutputWithContext(context.Background())
}
func (i EndpointSliceListTypeArgs) ToEndpointSliceListTypeOutputWithContext(ctx context.Context) EndpointSliceListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(EndpointSliceListTypeOutput)
}
// EndpointSliceList represents a list of endpoint slices
type EndpointSliceListTypeOutput struct{ *pulumi.OutputState }
func (EndpointSliceListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EndpointSliceListType)(nil)).Elem()
}
func (o EndpointSliceListTypeOutput) ToEndpointSliceListTypeOutput() EndpointSliceListTypeOutput {
return o
}
func (o EndpointSliceListTypeOutput) ToEndpointSliceListTypeOutputWithContext(ctx context.Context) EndpointSliceListTypeOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o EndpointSliceListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v EndpointSliceListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// List of endpoint slices
func (o EndpointSliceListTypeOutput) Items() EndpointSliceTypeArrayOutput {
return o.ApplyT(func(v EndpointSliceListType) []EndpointSliceType { return v.Items }).(EndpointSliceTypeArrayOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o EndpointSliceListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v EndpointSliceListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard list metadata.
func (o EndpointSliceListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v EndpointSliceListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
func init() {
pulumi.RegisterOutputType(EndpointOutput{})
pulumi.RegisterOutputType(EndpointArrayOutput{})
pulumi.RegisterOutputType(EndpointConditionsOutput{})
pulumi.RegisterOutputType(EndpointConditionsPtrOutput{})
pulumi.RegisterOutputType(EndpointPortOutput{})
pulumi.RegisterOutputType(EndpointPortArrayOutput{})
pulumi.RegisterOutputType(EndpointSliceTypeOutput{})
pulumi.RegisterOutputType(EndpointSliceTypeArrayOutput{})
pulumi.RegisterOutputType(EndpointSliceListTypeOutput{})
}