/
tagimagehook.go
36 lines (30 loc) · 1.42 KB
/
tagimagehook.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
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1
import (
v1 "k8s.io/api/core/v1"
)
// TagImageHookApplyConfiguration represents an declarative configuration of the TagImageHook type for use
// with apply.
type TagImageHookApplyConfiguration struct {
ContainerName *string `json:"containerName,omitempty"`
To *v1.ObjectReference `json:"to,omitempty"`
}
// TagImageHookApplyConfiguration constructs an declarative configuration of the TagImageHook type for use with
// apply.
func TagImageHook() *TagImageHookApplyConfiguration {
return &TagImageHookApplyConfiguration{}
}
// WithContainerName sets the ContainerName 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 ContainerName field is set to the value of the last call.
func (b *TagImageHookApplyConfiguration) WithContainerName(value string) *TagImageHookApplyConfiguration {
b.ContainerName = &value
return b
}
// WithTo sets the To 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 To field is set to the value of the last call.
func (b *TagImageHookApplyConfiguration) WithTo(value v1.ObjectReference) *TagImageHookApplyConfiguration {
b.To = &value
return b
}