Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() (*metav1.ObjectMeta, error)
- func (b *Builder) WithAnnotations(annotations map[string]string) *Builder
- func (b *Builder) WithGenerateName(generateName string) *Builder
- func (b *Builder) WithLabels(labels map[string]string) *Builder
- func (b *Builder) WithName(name string) *Builder
- func (b *Builder) WithNamespace(namespace string) *Builder
- func (b *Builder) WithOwnerReferences(ownerReferences ...metav1.OwnerReference) *Builder
- type ObjectMeta
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 ObjectMeta
func NewBuilderForAPIObject ¶
func NewBuilderForAPIObject(meta *metav1.ObjectMeta) *Builder
NewBuilderForAPIObject returns a new instance of Builder for given metav1.ObjectMeta
func (*Builder) Build ¶
func (b *Builder) Build() (*metav1.ObjectMeta, error)
Build builds a new instance of metav1.ObjectMeta
func (*Builder) WithAnnotations ¶
WithAnnotations adds annotations in ObjectMeta instance
func (*Builder) WithGenerateName ¶
WithGenerateName adds GenerateName in ObjectMeta instance
func (*Builder) WithLabels ¶
WithLabels adds labels in ObjectMeta instance
func (*Builder) WithNamespace ¶
WithNamespace adds namespace in ObjectMeta instance
func (*Builder) WithOwnerReferences ¶
func (b *Builder) WithOwnerReferences(ownerReferences ...metav1.OwnerReference) *Builder
WithOwnerReferences owner references in ObjectMeta instance
type ObjectMeta ¶
type ObjectMeta struct {
// contains filtered or unexported fields
}
ObjectMeta is a wrapper over metav1.ObjectMeta
func (ObjectMeta) GoString ¶
func (om ObjectMeta) GoString() string
GoString implements GoStringer interface
func (ObjectMeta) String ¶
func (om ObjectMeta) String() string
String implements Stringer interface
Click to show internal directories.
Click to hide internal directories.