-
Notifications
You must be signed in to change notification settings - Fork 88
/
fabricmainchannelordererorganization.go
103 lines (92 loc) · 5.84 KB
/
fabricmainchannelordererorganization.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
/*
* Copyright Kungfusoftware.es. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
// FabricMainChannelOrdererOrganizationApplyConfiguration represents an declarative configuration of the FabricMainChannelOrdererOrganization type for use
// with apply.
type FabricMainChannelOrdererOrganizationApplyConfiguration struct {
MSPID *string `json:"mspID,omitempty"`
CAName *string `json:"caName,omitempty"`
CANamespace *string `json:"caNamespace,omitempty"`
TLSCACert *string `json:"tlsCACert,omitempty"`
SignCACert *string `json:"signCACert,omitempty"`
OrdererEndpoints []string `json:"ordererEndpoints,omitempty"`
OrderersToJoin []FabricMainChannelOrdererNodeApplyConfiguration `json:"orderersToJoin,omitempty"`
ExternalOrderersToJoin []FabricMainChannelExternalOrdererNodeApplyConfiguration `json:"externalOrderersToJoin,omitempty"`
}
// FabricMainChannelOrdererOrganizationApplyConfiguration constructs an declarative configuration of the FabricMainChannelOrdererOrganization type for use with
// apply.
func FabricMainChannelOrdererOrganization() *FabricMainChannelOrdererOrganizationApplyConfiguration {
return &FabricMainChannelOrdererOrganizationApplyConfiguration{}
}
// WithMSPID sets the MSPID 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 MSPID field is set to the value of the last call.
func (b *FabricMainChannelOrdererOrganizationApplyConfiguration) WithMSPID(value string) *FabricMainChannelOrdererOrganizationApplyConfiguration {
b.MSPID = &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 *FabricMainChannelOrdererOrganizationApplyConfiguration) WithCAName(value string) *FabricMainChannelOrdererOrganizationApplyConfiguration {
b.CAName = &value
return b
}
// WithCANamespace sets the CANamespace 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 CANamespace field is set to the value of the last call.
func (b *FabricMainChannelOrdererOrganizationApplyConfiguration) WithCANamespace(value string) *FabricMainChannelOrdererOrganizationApplyConfiguration {
b.CANamespace = &value
return b
}
// WithTLSCACert sets the TLSCACert 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 TLSCACert field is set to the value of the last call.
func (b *FabricMainChannelOrdererOrganizationApplyConfiguration) WithTLSCACert(value string) *FabricMainChannelOrdererOrganizationApplyConfiguration {
b.TLSCACert = &value
return b
}
// WithSignCACert sets the SignCACert 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 SignCACert field is set to the value of the last call.
func (b *FabricMainChannelOrdererOrganizationApplyConfiguration) WithSignCACert(value string) *FabricMainChannelOrdererOrganizationApplyConfiguration {
b.SignCACert = &value
return b
}
// WithOrdererEndpoints adds the given value to the OrdererEndpoints field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OrdererEndpoints field.
func (b *FabricMainChannelOrdererOrganizationApplyConfiguration) WithOrdererEndpoints(values ...string) *FabricMainChannelOrdererOrganizationApplyConfiguration {
for i := range values {
b.OrdererEndpoints = append(b.OrdererEndpoints, values[i])
}
return b
}
// WithOrderersToJoin adds the given value to the OrderersToJoin field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the OrderersToJoin field.
func (b *FabricMainChannelOrdererOrganizationApplyConfiguration) WithOrderersToJoin(values ...*FabricMainChannelOrdererNodeApplyConfiguration) *FabricMainChannelOrdererOrganizationApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOrderersToJoin")
}
b.OrderersToJoin = append(b.OrderersToJoin, *values[i])
}
return b
}
// WithExternalOrderersToJoin adds the given value to the ExternalOrderersToJoin field in the declarative configuration
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
// If called multiple times, values provided by each call will be appended to the ExternalOrderersToJoin field.
func (b *FabricMainChannelOrdererOrganizationApplyConfiguration) WithExternalOrderersToJoin(values ...*FabricMainChannelExternalOrdererNodeApplyConfiguration) *FabricMainChannelOrdererOrganizationApplyConfiguration {
for i := range values {
if values[i] == nil {
panic("nil value passed to WithExternalOrderersToJoin")
}
b.ExternalOrderersToJoin = append(b.ExternalOrderersToJoin, *values[i])
}
return b
}