-
Notifications
You must be signed in to change notification settings - Fork 88
/
fabricpeercouchdb.go
77 lines (67 loc) · 3.66 KB
/
fabricpeercouchdb.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
/*
* Copyright Kungfusoftware.es. All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
import (
v1 "k8s.io/api/core/v1"
)
// FabricPeerCouchDBApplyConfiguration represents an declarative configuration of the FabricPeerCouchDB type for use
// with apply.
type FabricPeerCouchDBApplyConfiguration struct {
User *string `json:"user,omitempty"`
Password *string `json:"password,omitempty"`
Image *string `json:"image,omitempty"`
Tag *string `json:"tag,omitempty"`
PullPolicy *v1.PullPolicy `json:"pullPolicy,omitempty"`
ExternalCouchDB *FabricPeerExternalCouchDBApplyConfiguration `json:"externalCouchDB,omitempty"`
}
// FabricPeerCouchDBApplyConfiguration constructs an declarative configuration of the FabricPeerCouchDB type for use with
// apply.
func FabricPeerCouchDB() *FabricPeerCouchDBApplyConfiguration {
return &FabricPeerCouchDBApplyConfiguration{}
}
// WithUser sets the User 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 User field is set to the value of the last call.
func (b *FabricPeerCouchDBApplyConfiguration) WithUser(value string) *FabricPeerCouchDBApplyConfiguration {
b.User = &value
return b
}
// WithPassword sets the Password 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 Password field is set to the value of the last call.
func (b *FabricPeerCouchDBApplyConfiguration) WithPassword(value string) *FabricPeerCouchDBApplyConfiguration {
b.Password = &value
return b
}
// WithImage sets the Image 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 Image field is set to the value of the last call.
func (b *FabricPeerCouchDBApplyConfiguration) WithImage(value string) *FabricPeerCouchDBApplyConfiguration {
b.Image = &value
return b
}
// WithTag sets the Tag 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 Tag field is set to the value of the last call.
func (b *FabricPeerCouchDBApplyConfiguration) WithTag(value string) *FabricPeerCouchDBApplyConfiguration {
b.Tag = &value
return b
}
// WithPullPolicy sets the PullPolicy 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 PullPolicy field is set to the value of the last call.
func (b *FabricPeerCouchDBApplyConfiguration) WithPullPolicy(value v1.PullPolicy) *FabricPeerCouchDBApplyConfiguration {
b.PullPolicy = &value
return b
}
// WithExternalCouchDB sets the ExternalCouchDB 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 ExternalCouchDB field is set to the value of the last call.
func (b *FabricPeerCouchDBApplyConfiguration) WithExternalCouchDB(value *FabricPeerExternalCouchDBApplyConfiguration) *FabricPeerCouchDBApplyConfiguration {
b.ExternalCouchDB = value
return b
}