generated from pulumi/pulumi-component-provider-go-boilerplate
/
pulumiEnums.go
1295 lines (1023 loc) · 44.8 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
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
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package tools
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type CommandLifecycle string
const (
CommandLifecycleCreate = CommandLifecycle("create")
CommandLifecycleUpdate = CommandLifecycle("update")
CommandLifecycleDelete = CommandLifecycle("delete")
)
type CurlCertType string
const (
CurlCertTypePEM = CurlCertType("PEM")
CurlCertTypeDER = CurlCertType("DER")
CurlCertTypeENG = CurlCertType("ENG")
CurlCertTypeP12 = CurlCertType("P12")
)
func (CurlCertType) ElementType() reflect.Type {
return reflect.TypeOf((*CurlCertType)(nil)).Elem()
}
func (e CurlCertType) ToCurlCertTypeOutput() CurlCertTypeOutput {
return pulumi.ToOutput(e).(CurlCertTypeOutput)
}
func (e CurlCertType) ToCurlCertTypeOutputWithContext(ctx context.Context) CurlCertTypeOutput {
return pulumi.ToOutputWithContext(ctx, e).(CurlCertTypeOutput)
}
func (e CurlCertType) ToCurlCertTypePtrOutput() CurlCertTypePtrOutput {
return e.ToCurlCertTypePtrOutputWithContext(context.Background())
}
func (e CurlCertType) ToCurlCertTypePtrOutputWithContext(ctx context.Context) CurlCertTypePtrOutput {
return CurlCertType(e).ToCurlCertTypeOutputWithContext(ctx).ToCurlCertTypePtrOutputWithContext(ctx)
}
func (e CurlCertType) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e CurlCertType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e CurlCertType) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e CurlCertType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type CurlCertTypeOutput struct{ *pulumi.OutputState }
func (CurlCertTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CurlCertType)(nil)).Elem()
}
func (o CurlCertTypeOutput) ToCurlCertTypeOutput() CurlCertTypeOutput {
return o
}
func (o CurlCertTypeOutput) ToCurlCertTypeOutputWithContext(ctx context.Context) CurlCertTypeOutput {
return o
}
func (o CurlCertTypeOutput) ToCurlCertTypePtrOutput() CurlCertTypePtrOutput {
return o.ToCurlCertTypePtrOutputWithContext(context.Background())
}
func (o CurlCertTypeOutput) ToCurlCertTypePtrOutputWithContext(ctx context.Context) CurlCertTypePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v CurlCertType) *CurlCertType {
return &v
}).(CurlCertTypePtrOutput)
}
func (o CurlCertTypeOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o CurlCertTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e CurlCertType) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o CurlCertTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o CurlCertTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e CurlCertType) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type CurlCertTypePtrOutput struct{ *pulumi.OutputState }
func (CurlCertTypePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CurlCertType)(nil)).Elem()
}
func (o CurlCertTypePtrOutput) ToCurlCertTypePtrOutput() CurlCertTypePtrOutput {
return o
}
func (o CurlCertTypePtrOutput) ToCurlCertTypePtrOutputWithContext(ctx context.Context) CurlCertTypePtrOutput {
return o
}
func (o CurlCertTypePtrOutput) Elem() CurlCertTypeOutput {
return o.ApplyT(func(v *CurlCertType) CurlCertType {
if v != nil {
return *v
}
var ret CurlCertType
return ret
}).(CurlCertTypeOutput)
}
func (o CurlCertTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o CurlCertTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *CurlCertType) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// CurlCertTypeInput is an input type that accepts values of the CurlCertType enum
// A concrete instance of `CurlCertTypeInput` can be one of the following:
//
// CurlCertTypePEM
// CurlCertTypeDER
// CurlCertTypeENG
// CurlCertTypeP12
type CurlCertTypeInput interface {
pulumi.Input
ToCurlCertTypeOutput() CurlCertTypeOutput
ToCurlCertTypeOutputWithContext(context.Context) CurlCertTypeOutput
}
var curlCertTypePtrType = reflect.TypeOf((**CurlCertType)(nil)).Elem()
type CurlCertTypePtrInput interface {
pulumi.Input
ToCurlCertTypePtrOutput() CurlCertTypePtrOutput
ToCurlCertTypePtrOutputWithContext(context.Context) CurlCertTypePtrOutput
}
type curlCertTypePtr string
func CurlCertTypePtr(v string) CurlCertTypePtrInput {
return (*curlCertTypePtr)(&v)
}
func (*curlCertTypePtr) ElementType() reflect.Type {
return curlCertTypePtrType
}
func (in *curlCertTypePtr) ToCurlCertTypePtrOutput() CurlCertTypePtrOutput {
return pulumi.ToOutput(in).(CurlCertTypePtrOutput)
}
func (in *curlCertTypePtr) ToCurlCertTypePtrOutputWithContext(ctx context.Context) CurlCertTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(CurlCertTypePtrOutput)
}
type CurlDelegationLevel string
const (
CurlDelegationLevelNone = CurlDelegationLevel("none")
CurlDelegationLevelPolicy = CurlDelegationLevel("policy")
CurlDelegationLevelAlways = CurlDelegationLevel("always")
)
func (CurlDelegationLevel) ElementType() reflect.Type {
return reflect.TypeOf((*CurlDelegationLevel)(nil)).Elem()
}
func (e CurlDelegationLevel) ToCurlDelegationLevelOutput() CurlDelegationLevelOutput {
return pulumi.ToOutput(e).(CurlDelegationLevelOutput)
}
func (e CurlDelegationLevel) ToCurlDelegationLevelOutputWithContext(ctx context.Context) CurlDelegationLevelOutput {
return pulumi.ToOutputWithContext(ctx, e).(CurlDelegationLevelOutput)
}
func (e CurlDelegationLevel) ToCurlDelegationLevelPtrOutput() CurlDelegationLevelPtrOutput {
return e.ToCurlDelegationLevelPtrOutputWithContext(context.Background())
}
func (e CurlDelegationLevel) ToCurlDelegationLevelPtrOutputWithContext(ctx context.Context) CurlDelegationLevelPtrOutput {
return CurlDelegationLevel(e).ToCurlDelegationLevelOutputWithContext(ctx).ToCurlDelegationLevelPtrOutputWithContext(ctx)
}
func (e CurlDelegationLevel) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e CurlDelegationLevel) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e CurlDelegationLevel) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e CurlDelegationLevel) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type CurlDelegationLevelOutput struct{ *pulumi.OutputState }
func (CurlDelegationLevelOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CurlDelegationLevel)(nil)).Elem()
}
func (o CurlDelegationLevelOutput) ToCurlDelegationLevelOutput() CurlDelegationLevelOutput {
return o
}
func (o CurlDelegationLevelOutput) ToCurlDelegationLevelOutputWithContext(ctx context.Context) CurlDelegationLevelOutput {
return o
}
func (o CurlDelegationLevelOutput) ToCurlDelegationLevelPtrOutput() CurlDelegationLevelPtrOutput {
return o.ToCurlDelegationLevelPtrOutputWithContext(context.Background())
}
func (o CurlDelegationLevelOutput) ToCurlDelegationLevelPtrOutputWithContext(ctx context.Context) CurlDelegationLevelPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v CurlDelegationLevel) *CurlDelegationLevel {
return &v
}).(CurlDelegationLevelPtrOutput)
}
func (o CurlDelegationLevelOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o CurlDelegationLevelOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e CurlDelegationLevel) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o CurlDelegationLevelOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o CurlDelegationLevelOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e CurlDelegationLevel) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type CurlDelegationLevelPtrOutput struct{ *pulumi.OutputState }
func (CurlDelegationLevelPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CurlDelegationLevel)(nil)).Elem()
}
func (o CurlDelegationLevelPtrOutput) ToCurlDelegationLevelPtrOutput() CurlDelegationLevelPtrOutput {
return o
}
func (o CurlDelegationLevelPtrOutput) ToCurlDelegationLevelPtrOutputWithContext(ctx context.Context) CurlDelegationLevelPtrOutput {
return o
}
func (o CurlDelegationLevelPtrOutput) Elem() CurlDelegationLevelOutput {
return o.ApplyT(func(v *CurlDelegationLevel) CurlDelegationLevel {
if v != nil {
return *v
}
var ret CurlDelegationLevel
return ret
}).(CurlDelegationLevelOutput)
}
func (o CurlDelegationLevelPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o CurlDelegationLevelPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *CurlDelegationLevel) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// CurlDelegationLevelInput is an input type that accepts values of the CurlDelegationLevel enum
// A concrete instance of `CurlDelegationLevelInput` can be one of the following:
//
// CurlDelegationLevelNone
// CurlDelegationLevelPolicy
// CurlDelegationLevelAlways
type CurlDelegationLevelInput interface {
pulumi.Input
ToCurlDelegationLevelOutput() CurlDelegationLevelOutput
ToCurlDelegationLevelOutputWithContext(context.Context) CurlDelegationLevelOutput
}
var curlDelegationLevelPtrType = reflect.TypeOf((**CurlDelegationLevel)(nil)).Elem()
type CurlDelegationLevelPtrInput interface {
pulumi.Input
ToCurlDelegationLevelPtrOutput() CurlDelegationLevelPtrOutput
ToCurlDelegationLevelPtrOutputWithContext(context.Context) CurlDelegationLevelPtrOutput
}
type curlDelegationLevelPtr string
func CurlDelegationLevelPtr(v string) CurlDelegationLevelPtrInput {
return (*curlDelegationLevelPtr)(&v)
}
func (*curlDelegationLevelPtr) ElementType() reflect.Type {
return curlDelegationLevelPtrType
}
func (in *curlDelegationLevelPtr) ToCurlDelegationLevelPtrOutput() CurlDelegationLevelPtrOutput {
return pulumi.ToOutput(in).(CurlDelegationLevelPtrOutput)
}
func (in *curlDelegationLevelPtr) ToCurlDelegationLevelPtrOutputWithContext(ctx context.Context) CurlDelegationLevelPtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(CurlDelegationLevelPtrOutput)
}
type EtcdctlCommand string
const (
EtcdctlCommandMember = EtcdctlCommand("member")
EtcdctlCommandList = EtcdctlCommand("list")
EtcdctlCommandVersion = EtcdctlCommand("version")
)
func (EtcdctlCommand) ElementType() reflect.Type {
return reflect.TypeOf((*EtcdctlCommand)(nil)).Elem()
}
func (e EtcdctlCommand) ToEtcdctlCommandOutput() EtcdctlCommandOutput {
return pulumi.ToOutput(e).(EtcdctlCommandOutput)
}
func (e EtcdctlCommand) ToEtcdctlCommandOutputWithContext(ctx context.Context) EtcdctlCommandOutput {
return pulumi.ToOutputWithContext(ctx, e).(EtcdctlCommandOutput)
}
func (e EtcdctlCommand) ToEtcdctlCommandPtrOutput() EtcdctlCommandPtrOutput {
return e.ToEtcdctlCommandPtrOutputWithContext(context.Background())
}
func (e EtcdctlCommand) ToEtcdctlCommandPtrOutputWithContext(ctx context.Context) EtcdctlCommandPtrOutput {
return EtcdctlCommand(e).ToEtcdctlCommandOutputWithContext(ctx).ToEtcdctlCommandPtrOutputWithContext(ctx)
}
func (e EtcdctlCommand) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e EtcdctlCommand) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e EtcdctlCommand) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e EtcdctlCommand) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type EtcdctlCommandOutput struct{ *pulumi.OutputState }
func (EtcdctlCommandOutput) ElementType() reflect.Type {
return reflect.TypeOf((*EtcdctlCommand)(nil)).Elem()
}
func (o EtcdctlCommandOutput) ToEtcdctlCommandOutput() EtcdctlCommandOutput {
return o
}
func (o EtcdctlCommandOutput) ToEtcdctlCommandOutputWithContext(ctx context.Context) EtcdctlCommandOutput {
return o
}
func (o EtcdctlCommandOutput) ToEtcdctlCommandPtrOutput() EtcdctlCommandPtrOutput {
return o.ToEtcdctlCommandPtrOutputWithContext(context.Background())
}
func (o EtcdctlCommandOutput) ToEtcdctlCommandPtrOutputWithContext(ctx context.Context) EtcdctlCommandPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v EtcdctlCommand) *EtcdctlCommand {
return &v
}).(EtcdctlCommandPtrOutput)
}
func (o EtcdctlCommandOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o EtcdctlCommandOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e EtcdctlCommand) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o EtcdctlCommandOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o EtcdctlCommandOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e EtcdctlCommand) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type EtcdctlCommandPtrOutput struct{ *pulumi.OutputState }
func (EtcdctlCommandPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**EtcdctlCommand)(nil)).Elem()
}
func (o EtcdctlCommandPtrOutput) ToEtcdctlCommandPtrOutput() EtcdctlCommandPtrOutput {
return o
}
func (o EtcdctlCommandPtrOutput) ToEtcdctlCommandPtrOutputWithContext(ctx context.Context) EtcdctlCommandPtrOutput {
return o
}
func (o EtcdctlCommandPtrOutput) Elem() EtcdctlCommandOutput {
return o.ApplyT(func(v *EtcdctlCommand) EtcdctlCommand {
if v != nil {
return *v
}
var ret EtcdctlCommand
return ret
}).(EtcdctlCommandOutput)
}
func (o EtcdctlCommandPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o EtcdctlCommandPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *EtcdctlCommand) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// EtcdctlCommandInput is an input type that accepts values of the EtcdctlCommand enum
// A concrete instance of `EtcdctlCommandInput` can be one of the following:
//
// EtcdctlCommandMember
// EtcdctlCommandList
// EtcdctlCommandVersion
type EtcdctlCommandInput interface {
pulumi.Input
ToEtcdctlCommandOutput() EtcdctlCommandOutput
ToEtcdctlCommandOutputWithContext(context.Context) EtcdctlCommandOutput
}
var etcdctlCommandPtrType = reflect.TypeOf((**EtcdctlCommand)(nil)).Elem()
type EtcdctlCommandPtrInput interface {
pulumi.Input
ToEtcdctlCommandPtrOutput() EtcdctlCommandPtrOutput
ToEtcdctlCommandPtrOutputWithContext(context.Context) EtcdctlCommandPtrOutput
}
type etcdctlCommandPtr string
func EtcdctlCommandPtr(v string) EtcdctlCommandPtrInput {
return (*etcdctlCommandPtr)(&v)
}
func (*etcdctlCommandPtr) ElementType() reflect.Type {
return etcdctlCommandPtrType
}
func (in *etcdctlCommandPtr) ToEtcdctlCommandPtrOutput() EtcdctlCommandPtrOutput {
return pulumi.ToOutput(in).(EtcdctlCommandPtrOutput)
}
func (in *etcdctlCommandPtr) ToEtcdctlCommandPtrOutputWithContext(ctx context.Context) EtcdctlCommandPtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(EtcdctlCommandPtrOutput)
}
type HostnamectlCommand string
const (
// Show system hostname and related information. If no command is specified, this is the implied default.
HostnamectlCommandStatus = HostnamectlCommand("status")
// If no argument is given, print the system hostname. If an optional argument NAME is provided then the command changes the system hostname to NAME.
HostnamectlCommandHostname = HostnamectlCommand("hostname")
// If no argument is given, print the icon name of the system. If an optional argument NAME is provided then the command changes the icon name to NAME.
HostnamectlCommand_Icon_Name = HostnamectlCommand("icon-name")
// If no argument is given, print the chassis type. If an optional argument TYPE is provided then the command changes the chassis type to TYPE.
HostnamectlCommandChassis = HostnamectlCommand("chassis")
// If no argument is given, print the deployment environment. If an optional argument ENVIRONMENT is provided then the command changes the deployment environment to ENVIRONMENT.
HostnamectlCommandDeployment = HostnamectlCommand("deployment")
// If no argument is given, print the location string for the system. If an optional argument LOCATION is provided then the command changes the location string for the system to LOCATION.
HostnamectlCommandLocation = HostnamectlCommand("location")
)
func (HostnamectlCommand) ElementType() reflect.Type {
return reflect.TypeOf((*HostnamectlCommand)(nil)).Elem()
}
func (e HostnamectlCommand) ToHostnamectlCommandOutput() HostnamectlCommandOutput {
return pulumi.ToOutput(e).(HostnamectlCommandOutput)
}
func (e HostnamectlCommand) ToHostnamectlCommandOutputWithContext(ctx context.Context) HostnamectlCommandOutput {
return pulumi.ToOutputWithContext(ctx, e).(HostnamectlCommandOutput)
}
func (e HostnamectlCommand) ToHostnamectlCommandPtrOutput() HostnamectlCommandPtrOutput {
return e.ToHostnamectlCommandPtrOutputWithContext(context.Background())
}
func (e HostnamectlCommand) ToHostnamectlCommandPtrOutputWithContext(ctx context.Context) HostnamectlCommandPtrOutput {
return HostnamectlCommand(e).ToHostnamectlCommandOutputWithContext(ctx).ToHostnamectlCommandPtrOutputWithContext(ctx)
}
func (e HostnamectlCommand) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e HostnamectlCommand) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e HostnamectlCommand) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e HostnamectlCommand) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type HostnamectlCommandOutput struct{ *pulumi.OutputState }
func (HostnamectlCommandOutput) ElementType() reflect.Type {
return reflect.TypeOf((*HostnamectlCommand)(nil)).Elem()
}
func (o HostnamectlCommandOutput) ToHostnamectlCommandOutput() HostnamectlCommandOutput {
return o
}
func (o HostnamectlCommandOutput) ToHostnamectlCommandOutputWithContext(ctx context.Context) HostnamectlCommandOutput {
return o
}
func (o HostnamectlCommandOutput) ToHostnamectlCommandPtrOutput() HostnamectlCommandPtrOutput {
return o.ToHostnamectlCommandPtrOutputWithContext(context.Background())
}
func (o HostnamectlCommandOutput) ToHostnamectlCommandPtrOutputWithContext(ctx context.Context) HostnamectlCommandPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v HostnamectlCommand) *HostnamectlCommand {
return &v
}).(HostnamectlCommandPtrOutput)
}
func (o HostnamectlCommandOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o HostnamectlCommandOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e HostnamectlCommand) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o HostnamectlCommandOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o HostnamectlCommandOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e HostnamectlCommand) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type HostnamectlCommandPtrOutput struct{ *pulumi.OutputState }
func (HostnamectlCommandPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**HostnamectlCommand)(nil)).Elem()
}
func (o HostnamectlCommandPtrOutput) ToHostnamectlCommandPtrOutput() HostnamectlCommandPtrOutput {
return o
}
func (o HostnamectlCommandPtrOutput) ToHostnamectlCommandPtrOutputWithContext(ctx context.Context) HostnamectlCommandPtrOutput {
return o
}
func (o HostnamectlCommandPtrOutput) Elem() HostnamectlCommandOutput {
return o.ApplyT(func(v *HostnamectlCommand) HostnamectlCommand {
if v != nil {
return *v
}
var ret HostnamectlCommand
return ret
}).(HostnamectlCommandOutput)
}
func (o HostnamectlCommandPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o HostnamectlCommandPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *HostnamectlCommand) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// HostnamectlCommandInput is an input type that accepts values of the HostnamectlCommand enum
// A concrete instance of `HostnamectlCommandInput` can be one of the following:
//
// HostnamectlCommandStatus
// HostnamectlCommandHostname
// HostnamectlCommand_Icon_Name
// HostnamectlCommandChassis
// HostnamectlCommandDeployment
// HostnamectlCommandLocation
type HostnamectlCommandInput interface {
pulumi.Input
ToHostnamectlCommandOutput() HostnamectlCommandOutput
ToHostnamectlCommandOutputWithContext(context.Context) HostnamectlCommandOutput
}
var hostnamectlCommandPtrType = reflect.TypeOf((**HostnamectlCommand)(nil)).Elem()
type HostnamectlCommandPtrInput interface {
pulumi.Input
ToHostnamectlCommandPtrOutput() HostnamectlCommandPtrOutput
ToHostnamectlCommandPtrOutputWithContext(context.Context) HostnamectlCommandPtrOutput
}
type hostnamectlCommandPtr string
func HostnamectlCommandPtr(v string) HostnamectlCommandPtrInput {
return (*hostnamectlCommandPtr)(&v)
}
func (*hostnamectlCommandPtr) ElementType() reflect.Type {
return hostnamectlCommandPtrType
}
func (in *hostnamectlCommandPtr) ToHostnamectlCommandPtrOutput() HostnamectlCommandPtrOutput {
return pulumi.ToOutput(in).(HostnamectlCommandPtrOutput)
}
func (in *hostnamectlCommandPtr) ToHostnamectlCommandPtrOutputWithContext(ctx context.Context) HostnamectlCommandPtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(HostnamectlCommandPtrOutput)
}
type HostnamectlJsonMode string
const (
HostnamectlJsonModeShort = HostnamectlJsonMode("short")
HostnamectlJsonModePretty = HostnamectlJsonMode("pretty")
HostnamectlJsonModeOff = HostnamectlJsonMode("off")
)
func (HostnamectlJsonMode) ElementType() reflect.Type {
return reflect.TypeOf((*HostnamectlJsonMode)(nil)).Elem()
}
func (e HostnamectlJsonMode) ToHostnamectlJsonModeOutput() HostnamectlJsonModeOutput {
return pulumi.ToOutput(e).(HostnamectlJsonModeOutput)
}
func (e HostnamectlJsonMode) ToHostnamectlJsonModeOutputWithContext(ctx context.Context) HostnamectlJsonModeOutput {
return pulumi.ToOutputWithContext(ctx, e).(HostnamectlJsonModeOutput)
}
func (e HostnamectlJsonMode) ToHostnamectlJsonModePtrOutput() HostnamectlJsonModePtrOutput {
return e.ToHostnamectlJsonModePtrOutputWithContext(context.Background())
}
func (e HostnamectlJsonMode) ToHostnamectlJsonModePtrOutputWithContext(ctx context.Context) HostnamectlJsonModePtrOutput {
return HostnamectlJsonMode(e).ToHostnamectlJsonModeOutputWithContext(ctx).ToHostnamectlJsonModePtrOutputWithContext(ctx)
}
func (e HostnamectlJsonMode) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e HostnamectlJsonMode) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e HostnamectlJsonMode) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e HostnamectlJsonMode) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type HostnamectlJsonModeOutput struct{ *pulumi.OutputState }
func (HostnamectlJsonModeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*HostnamectlJsonMode)(nil)).Elem()
}
func (o HostnamectlJsonModeOutput) ToHostnamectlJsonModeOutput() HostnamectlJsonModeOutput {
return o
}
func (o HostnamectlJsonModeOutput) ToHostnamectlJsonModeOutputWithContext(ctx context.Context) HostnamectlJsonModeOutput {
return o
}
func (o HostnamectlJsonModeOutput) ToHostnamectlJsonModePtrOutput() HostnamectlJsonModePtrOutput {
return o.ToHostnamectlJsonModePtrOutputWithContext(context.Background())
}
func (o HostnamectlJsonModeOutput) ToHostnamectlJsonModePtrOutputWithContext(ctx context.Context) HostnamectlJsonModePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v HostnamectlJsonMode) *HostnamectlJsonMode {
return &v
}).(HostnamectlJsonModePtrOutput)
}
func (o HostnamectlJsonModeOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o HostnamectlJsonModeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e HostnamectlJsonMode) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o HostnamectlJsonModeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o HostnamectlJsonModeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e HostnamectlJsonMode) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type HostnamectlJsonModePtrOutput struct{ *pulumi.OutputState }
func (HostnamectlJsonModePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**HostnamectlJsonMode)(nil)).Elem()
}
func (o HostnamectlJsonModePtrOutput) ToHostnamectlJsonModePtrOutput() HostnamectlJsonModePtrOutput {
return o
}
func (o HostnamectlJsonModePtrOutput) ToHostnamectlJsonModePtrOutputWithContext(ctx context.Context) HostnamectlJsonModePtrOutput {
return o
}
func (o HostnamectlJsonModePtrOutput) Elem() HostnamectlJsonModeOutput {
return o.ApplyT(func(v *HostnamectlJsonMode) HostnamectlJsonMode {
if v != nil {
return *v
}
var ret HostnamectlJsonMode
return ret
}).(HostnamectlJsonModeOutput)
}
func (o HostnamectlJsonModePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o HostnamectlJsonModePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *HostnamectlJsonMode) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// HostnamectlJsonModeInput is an input type that accepts values of the HostnamectlJsonMode enum
// A concrete instance of `HostnamectlJsonModeInput` can be one of the following:
//
// HostnamectlJsonModeShort
// HostnamectlJsonModePretty
// HostnamectlJsonModeOff
type HostnamectlJsonModeInput interface {
pulumi.Input
ToHostnamectlJsonModeOutput() HostnamectlJsonModeOutput
ToHostnamectlJsonModeOutputWithContext(context.Context) HostnamectlJsonModeOutput
}
var hostnamectlJsonModePtrType = reflect.TypeOf((**HostnamectlJsonMode)(nil)).Elem()
type HostnamectlJsonModePtrInput interface {
pulumi.Input
ToHostnamectlJsonModePtrOutput() HostnamectlJsonModePtrOutput
ToHostnamectlJsonModePtrOutputWithContext(context.Context) HostnamectlJsonModePtrOutput
}
type hostnamectlJsonModePtr string
func HostnamectlJsonModePtr(v string) HostnamectlJsonModePtrInput {
return (*hostnamectlJsonModePtr)(&v)
}
func (*hostnamectlJsonModePtr) ElementType() reflect.Type {
return hostnamectlJsonModePtrType
}
func (in *hostnamectlJsonModePtr) ToHostnamectlJsonModePtrOutput() HostnamectlJsonModePtrOutput {
return pulumi.ToOutput(in).(HostnamectlJsonModePtrOutput)
}
func (in *hostnamectlJsonModePtr) ToHostnamectlJsonModePtrOutputWithContext(ctx context.Context) HostnamectlJsonModePtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(HostnamectlJsonModePtrOutput)
}
type SystemctlCommand string
const (
SystemctlCommandBind = SystemctlCommand("bind")
SystemctlCommandCat = SystemctlCommand("cat")
SystemctlCommandClean = SystemctlCommand("clean")
SystemctlCommand_Daemon_Reload = SystemctlCommand("daemon-reload")
SystemctlCommandDisable = SystemctlCommand("disable")
SystemctlCommandEnable = SystemctlCommand("enable")
SystemctlCommandFreeze = SystemctlCommand("freeze")
SystemctlCommand_Is_Active = SystemctlCommand("is-active")
SystemctlCommand_Is_Enabled = SystemctlCommand("is-enabled")
SystemctlCommand_Is_Failed = SystemctlCommand("is-failed")
SystemctlCommandIsolate = SystemctlCommand("isolate")
SystemctlCommandKill = SystemctlCommand("kill")
SystemctlCommand_List_Automounts = SystemctlCommand("list-automounts")
SystemctlCommand_List_Dependencies = SystemctlCommand("list-dependencies")
SystemctlCommand_List_Paths = SystemctlCommand("list-paths")
SystemctlCommand_List_Sockets = SystemctlCommand("list-sockets")
SystemctlCommand_List_Timers = SystemctlCommand("list-timers")
SystemctlCommand_List_Units = SystemctlCommand("list-units")
SystemctlCommandMask = SystemctlCommand("mask")
SystemctlCommand_Mount_Image = SystemctlCommand("mount-image")
SystemctlCommandReenable = SystemctlCommand("reenable")
SystemctlCommandReload = SystemctlCommand("reload")
SystemctlCommand_Reload_Or_Restart = SystemctlCommand("reload-or-restart")
SystemctlCommandRestart = SystemctlCommand("restart")
SystemctlCommand_Set_Property = SystemctlCommand("set-property")
SystemctlCommandShow = SystemctlCommand("show")
SystemctlCommandStart = SystemctlCommand("start")
SystemctlCommandStatus = SystemctlCommand("status")
SystemctlCommandStop = SystemctlCommand("stop")
SystemctlCommandThaw = SystemctlCommand("thaw")
SystemctlCommand_Try_Reload_Or_Restart = SystemctlCommand("try-reload-or-restart")
SystemctlCommand_Try_Restart = SystemctlCommand("try-restart")
SystemctlCommandUnmask = SystemctlCommand("unmask")
)
func (SystemctlCommand) ElementType() reflect.Type {
return reflect.TypeOf((*SystemctlCommand)(nil)).Elem()
}
func (e SystemctlCommand) ToSystemctlCommandOutput() SystemctlCommandOutput {
return pulumi.ToOutput(e).(SystemctlCommandOutput)
}
func (e SystemctlCommand) ToSystemctlCommandOutputWithContext(ctx context.Context) SystemctlCommandOutput {
return pulumi.ToOutputWithContext(ctx, e).(SystemctlCommandOutput)
}
func (e SystemctlCommand) ToSystemctlCommandPtrOutput() SystemctlCommandPtrOutput {
return e.ToSystemctlCommandPtrOutputWithContext(context.Background())
}
func (e SystemctlCommand) ToSystemctlCommandPtrOutputWithContext(ctx context.Context) SystemctlCommandPtrOutput {
return SystemctlCommand(e).ToSystemctlCommandOutputWithContext(ctx).ToSystemctlCommandPtrOutputWithContext(ctx)
}
func (e SystemctlCommand) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e SystemctlCommand) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e SystemctlCommand) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e SystemctlCommand) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type SystemctlCommandOutput struct{ *pulumi.OutputState }
func (SystemctlCommandOutput) ElementType() reflect.Type {
return reflect.TypeOf((*SystemctlCommand)(nil)).Elem()
}
func (o SystemctlCommandOutput) ToSystemctlCommandOutput() SystemctlCommandOutput {
return o
}
func (o SystemctlCommandOutput) ToSystemctlCommandOutputWithContext(ctx context.Context) SystemctlCommandOutput {
return o
}
func (o SystemctlCommandOutput) ToSystemctlCommandPtrOutput() SystemctlCommandPtrOutput {
return o.ToSystemctlCommandPtrOutputWithContext(context.Background())
}
func (o SystemctlCommandOutput) ToSystemctlCommandPtrOutputWithContext(ctx context.Context) SystemctlCommandPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v SystemctlCommand) *SystemctlCommand {
return &v
}).(SystemctlCommandPtrOutput)
}
func (o SystemctlCommandOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o SystemctlCommandOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e SystemctlCommand) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o SystemctlCommandOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o SystemctlCommandOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e SystemctlCommand) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type SystemctlCommandPtrOutput struct{ *pulumi.OutputState }
func (SystemctlCommandPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**SystemctlCommand)(nil)).Elem()
}
func (o SystemctlCommandPtrOutput) ToSystemctlCommandPtrOutput() SystemctlCommandPtrOutput {
return o
}
func (o SystemctlCommandPtrOutput) ToSystemctlCommandPtrOutputWithContext(ctx context.Context) SystemctlCommandPtrOutput {
return o