-
Notifications
You must be signed in to change notification settings - Fork 88
/
fabricpeercouchdbexporter.go
59 lines (51 loc) · 2.64 KB
/
fabricpeercouchdbexporter.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
/*
* 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"
)
// FabricPeerCouchdbExporterApplyConfiguration represents an declarative configuration of the FabricPeerCouchdbExporter type for use
// with apply.
type FabricPeerCouchdbExporterApplyConfiguration struct {
Enabled *bool `json:"enabled,omitempty"`
Image *string `json:"image,omitempty"`
Tag *string `json:"tag,omitempty"`
ImagePullPolicy *v1.PullPolicy `json:"imagePullPolicy,omitempty"`
}
// FabricPeerCouchdbExporterApplyConfiguration constructs an declarative configuration of the FabricPeerCouchdbExporter type for use with
// apply.
func FabricPeerCouchdbExporter() *FabricPeerCouchdbExporterApplyConfiguration {
return &FabricPeerCouchdbExporterApplyConfiguration{}
}
// WithEnabled sets the Enabled 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 Enabled field is set to the value of the last call.
func (b *FabricPeerCouchdbExporterApplyConfiguration) WithEnabled(value bool) *FabricPeerCouchdbExporterApplyConfiguration {
b.Enabled = &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 *FabricPeerCouchdbExporterApplyConfiguration) WithImage(value string) *FabricPeerCouchdbExporterApplyConfiguration {
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 *FabricPeerCouchdbExporterApplyConfiguration) WithTag(value string) *FabricPeerCouchdbExporterApplyConfiguration {
b.Tag = &value
return b
}
// WithImagePullPolicy sets the ImagePullPolicy 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 ImagePullPolicy field is set to the value of the last call.
func (b *FabricPeerCouchdbExporterApplyConfiguration) WithImagePullPolicy(value v1.PullPolicy) *FabricPeerCouchdbExporterApplyConfiguration {
b.ImagePullPolicy = &value
return b
}