Documentation
¶
Index ¶
- func Equals(obj1, obj2 client.Object) bool
- type NamedObject
- type Object
- type ObjectList
- type ObjectRef
- func (o *ObjectRef) DeepCopy() *ObjectRef
- func (o *ObjectRef) DeepCopyInto(out *ObjectRef)
- func (o *ObjectRef) Equals(other NamedObject) bool
- func (o *ObjectRef) GetName() string
- func (o *ObjectRef) GetNamespace() string
- func (o *ObjectRef) IsEmpty() bool
- func (o *ObjectRef) K8s() client.ObjectKey
- func (o ObjectRef) String() string
- type TypedNamedObject
- type TypedObjectRef
- func (o *TypedObjectRef) DeepCopy() *TypedObjectRef
- func (o *TypedObjectRef) DeepCopyInto(out *TypedObjectRef)
- func (o *TypedObjectRef) Equals(other TypedNamedObject) bool
- func (o *TypedObjectRef) GetAPIVersion() string
- func (o *TypedObjectRef) GetKind() string
- func (o *TypedObjectRef) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NamedObject ¶
type Object ¶
type Object interface {
client.Object
GetConditions() []metav1.Condition
SetCondition(metav1.Condition) bool
}
**Note:** Please have a look at [api-conventions](https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#spec-and-status) for the conventions around the `spec` and `status` fields.
Espectially regarding conditions, see [here](https://github.com/kubernetes/apimachinery/blob/release-1.23/pkg/apis/meta/v1/types.go#L1448)
type ObjectList ¶
type ObjectList interface {
client.ObjectList
GetItems() []Object
}
type ObjectRef ¶
type ObjectRef struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
UID types.UID `json:"uid,omitempty"`
}
ObjectRef is a reference to a Kubernetes object It is similar to types.NamespacedName but has the required json tags for serialization
func ObjectRefFromObject ¶
func (*ObjectRef) DeepCopyInto ¶
func (*ObjectRef) Equals ¶
func (o *ObjectRef) Equals(other NamedObject) bool
func (*ObjectRef) GetNamespace ¶
type TypedNamedObject ¶
type TypedNamedObject interface {
NamedObject
GetKind() string
GetAPIVersion() string
}
type TypedObjectRef ¶
TypedObjectRef is a reference to a Kubernetes object with type information It is similar to ObjectRef but includes the Kind and APIVersion
func TypedObjectRefFromObject ¶
func TypedObjectRefFromObject(obj client.Object, scheme *runtime.Scheme) *TypedObjectRef
func (*TypedObjectRef) DeepCopy ¶
func (o *TypedObjectRef) DeepCopy() *TypedObjectRef
func (*TypedObjectRef) DeepCopyInto ¶
func (o *TypedObjectRef) DeepCopyInto(out *TypedObjectRef)
func (*TypedObjectRef) Equals ¶
func (o *TypedObjectRef) Equals(other TypedNamedObject) bool
func (*TypedObjectRef) GetAPIVersion ¶
func (o *TypedObjectRef) GetAPIVersion() string
func (*TypedObjectRef) GetKind ¶
func (o *TypedObjectRef) GetKind() string
func (*TypedObjectRef) String ¶
func (o *TypedObjectRef) String() string
Click to show internal directories.
Click to hide internal directories.