-
Notifications
You must be signed in to change notification settings - Fork 88
/
component.go
82 lines (72 loc) · 3.88 KB
/
component.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
/*
* Copyright Kungfusoftware.es. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
// ComponentApplyConfiguration represents an declarative configuration of the Component type for use
// with apply.
type ComponentApplyConfiguration struct {
Cahost *string `json:"cahost,omitempty"`
Caname *string `json:"caname,omitempty"`
Caport *int `json:"caport,omitempty"`
Catls *CatlsApplyConfiguration `json:"catls,omitempty"`
Enrollid *string `json:"enrollid,omitempty"`
Enrollsecret *string `json:"enrollsecret,omitempty"`
External *ExternalCertificateApplyConfiguration `json:"external,omitempty"`
}
// ComponentApplyConfiguration constructs an declarative configuration of the Component type for use with
// apply.
func Component() *ComponentApplyConfiguration {
return &ComponentApplyConfiguration{}
}
// WithCahost sets the Cahost field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Cahost field is set to the value of the last call.
func (b *ComponentApplyConfiguration) WithCahost(value string) *ComponentApplyConfiguration {
b.Cahost = &value
return b
}
// WithCaname sets the Caname field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Caname field is set to the value of the last call.
func (b *ComponentApplyConfiguration) WithCaname(value string) *ComponentApplyConfiguration {
b.Caname = &value
return b
}
// WithCaport sets the Caport field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Caport field is set to the value of the last call.
func (b *ComponentApplyConfiguration) WithCaport(value int) *ComponentApplyConfiguration {
b.Caport = &value
return b
}
// WithCatls sets the Catls field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Catls field is set to the value of the last call.
func (b *ComponentApplyConfiguration) WithCatls(value *CatlsApplyConfiguration) *ComponentApplyConfiguration {
b.Catls = value
return b
}
// WithEnrollid sets the Enrollid field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Enrollid field is set to the value of the last call.
func (b *ComponentApplyConfiguration) WithEnrollid(value string) *ComponentApplyConfiguration {
b.Enrollid = &value
return b
}
// WithEnrollsecret sets the Enrollsecret field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the Enrollsecret field is set to the value of the last call.
func (b *ComponentApplyConfiguration) WithEnrollsecret(value string) *ComponentApplyConfiguration {
b.Enrollsecret = &value
return b
}
// WithExternal sets the External field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the External field is set to the value of the last call.
func (b *ComponentApplyConfiguration) WithExternal(value *ExternalCertificateApplyConfiguration) *ComponentApplyConfiguration {
b.External = value
return b
}