-
Notifications
You must be signed in to change notification settings - Fork 142
/
fulciocawithrekor.go
45 lines (39 loc) · 2.22 KB
/
fulciocawithrekor.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
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha1
// FulcioCAWithRekorApplyConfiguration represents an declarative configuration of the FulcioCAWithRekor type for use
// with apply.
type FulcioCAWithRekorApplyConfiguration struct {
FulcioCAData []byte `json:"fulcioCAData,omitempty"`
RekorKeyData []byte `json:"rekorKeyData,omitempty"`
FulcioSubject *PolicyFulcioSubjectApplyConfiguration `json:"fulcioSubject,omitempty"`
}
// FulcioCAWithRekorApplyConfiguration constructs an declarative configuration of the FulcioCAWithRekor type for use with
// apply.
func FulcioCAWithRekor() *FulcioCAWithRekorApplyConfiguration {
return &FulcioCAWithRekorApplyConfiguration{}
}
// WithFulcioCAData adds the given value to the FulcioCAData 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 FulcioCAData field.
func (b *FulcioCAWithRekorApplyConfiguration) WithFulcioCAData(values ...byte) *FulcioCAWithRekorApplyConfiguration {
for i := range values {
b.FulcioCAData = append(b.FulcioCAData, values[i])
}
return b
}
// WithRekorKeyData adds the given value to the RekorKeyData 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 RekorKeyData field.
func (b *FulcioCAWithRekorApplyConfiguration) WithRekorKeyData(values ...byte) *FulcioCAWithRekorApplyConfiguration {
for i := range values {
b.RekorKeyData = append(b.RekorKeyData, values[i])
}
return b
}
// WithFulcioSubject sets the FulcioSubject 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 FulcioSubject field is set to the value of the last call.
func (b *FulcioCAWithRekorApplyConfiguration) WithFulcioSubject(value *PolicyFulcioSubjectApplyConfiguration) *FulcioCAWithRekorApplyConfiguration {
b.FulcioSubject = value
return b
}