Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (*metav1.OwnerReference, error)
- func (b *Builder) WithAPIVersion(apiVersion string) *Builder
- func (b *Builder) WithBlockOwnerDeletionOption(blockOwnerDeletion *bool) *Builder
- func (b *Builder) WithControllerOption(controller *bool) *Builder
- func (b *Builder) WithKind(kind string) *Builder
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithUID(uid types.UID) *Builder
- type OwnerReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder helps to build OwnerReference
func NewBuilderForAPIObject ¶
func NewBuilderForAPIObject(meta *metav1.OwnerReference) *Builder
NewBuilderForAPIObject returns a new instance of Builder for given metav1.OwnerReference
func (*Builder) Build ¶
func (b *Builder) Build() (*metav1.OwnerReference, error)
Build builds a new instance of matav1.OwnerReference
func (*Builder) WithAPIVersion ¶
WithAPIVersion sets api version in OwnerReference instance
func (*Builder) WithBlockOwnerDeletionOption ¶
WithBlockOwnerDeletionOption sets BlockOwnerDeletion property in OwnerReference instance
func (*Builder) WithControllerOption ¶
WithControllerOption sets Controller property in OwnerReference instance
type OwnerReference ¶
type OwnerReference struct {
// contains filtered or unexported fields
}
OwnerReference is a wrapper over metav1.OwnerReference
func (OwnerReference) GoString ¶
func (or OwnerReference) GoString() string
GoString implements GoStringer interface
func (OwnerReference) String ¶
func (or OwnerReference) String() string
String implements Stringer interface
Click to show internal directories.
Click to hide internal directories.