Documentation ¶
Overview ¶
Package types contains slimmer versions of k8s types.
Package v1 contains API types that are common to all versions.
The package contains two categories of types:
- external (serialized) types that lack their own version (e.g TypeMeta)
- internal (never-serialized) types that are needed by several different api groups, and so live here, to avoid duplication and/or import loops (e.g. LabelSelector).
In the future, we will probably move these categories of objects into separate packages.
Index ¶
- Constants
- Variables
- func AddMetaToScheme(scheme *runtime.Scheme) error
- func FormatLabelSelector(labelSelector *LabelSelector) string
- func FullOwnerReferences(references []OwnerReference) []metav1.OwnerReference
- func Kind(kind string) schema.GroupKind
- func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error)
- type Condition
- func (in *Condition) DeepCopy() *Condition
- func (in *Condition) DeepCopyInto(out *Condition)
- func (in *Condition) DeepEqual(other *Condition) bool
- func (*Condition) Descriptor() ([]byte, []int)
- func (m *Condition) Marshal() (dAtA []byte, err error)
- func (m *Condition) MarshalTo(dAtA []byte) (int, error)
- func (m *Condition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Condition) ProtoMessage()
- func (m *Condition) Reset()
- func (m *Condition) Size() (n int)
- func (this *Condition) String() string
- func (m *Condition) Unmarshal(dAtA []byte) error
- func (m *Condition) XXX_DiscardUnknown()
- func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Condition) XXX_Merge(src proto.Message)
- func (m *Condition) XXX_Size() int
- func (m *Condition) XXX_Unmarshal(b []byte) error
- type ConditionStatus
- type LabelSelector
- func (in *LabelSelector) DeepCopy() *LabelSelector
- func (in *LabelSelector) DeepCopyInto(out *LabelSelector)
- func (in *LabelSelector) DeepEqual(other *LabelSelector) bool
- func (*LabelSelector) Descriptor() ([]byte, []int)
- func (m *LabelSelector) Marshal() (dAtA []byte, err error)
- func (m *LabelSelector) MarshalTo(dAtA []byte) (int, error)
- func (m *LabelSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LabelSelector) ProtoMessage()
- func (m *LabelSelector) Reset()
- func (m *LabelSelector) Size() (n int)
- func (this *LabelSelector) String() string
- func (m *LabelSelector) Unmarshal(dAtA []byte) error
- func (m *LabelSelector) XXX_DiscardUnknown()
- func (m *LabelSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LabelSelector) XXX_Merge(src proto.Message)
- func (m *LabelSelector) XXX_Size() int
- func (m *LabelSelector) XXX_Unmarshal(b []byte) error
- type LabelSelectorOperator
- type LabelSelectorRequirement
- func (in *LabelSelectorRequirement) DeepCopy() *LabelSelectorRequirement
- func (in *LabelSelectorRequirement) DeepCopyInto(out *LabelSelectorRequirement)
- func (in *LabelSelectorRequirement) DeepEqual(other *LabelSelectorRequirement) bool
- func (*LabelSelectorRequirement) Descriptor() ([]byte, []int)
- func (m *LabelSelectorRequirement) Marshal() (dAtA []byte, err error)
- func (m *LabelSelectorRequirement) MarshalTo(dAtA []byte) (int, error)
- func (m *LabelSelectorRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LabelSelectorRequirement) ProtoMessage()
- func (m *LabelSelectorRequirement) Reset()
- func (m *LabelSelectorRequirement) Size() (n int)
- func (this *LabelSelectorRequirement) String() string
- func (m *LabelSelectorRequirement) Unmarshal(dAtA []byte) error
- func (m *LabelSelectorRequirement) XXX_DiscardUnknown()
- func (m *LabelSelectorRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LabelSelectorRequirement) XXX_Merge(src proto.Message)
- func (m *LabelSelectorRequirement) XXX_Size() int
- func (m *LabelSelectorRequirement) XXX_Unmarshal(b []byte) error
- type ListMeta
- func (in *ListMeta) DeepCopy() *ListMeta
- func (in *ListMeta) DeepCopyInto(out *ListMeta)
- func (in *ListMeta) DeepEqual(other *ListMeta) bool
- func (*ListMeta) Descriptor() ([]byte, []int)
- func (meta *ListMeta) GetContinue() string
- func (obj *ListMeta) GetListMeta() metav1.ListInterface
- func (meta *ListMeta) GetRemainingItemCount() *int64
- func (meta *ListMeta) GetResourceVersion() string
- func (meta *ListMeta) GetSelfLink() string
- func (m *ListMeta) Marshal() (dAtA []byte, err error)
- func (m *ListMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *ListMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ListMeta) ProtoMessage()
- func (m *ListMeta) Reset()
- func (meta *ListMeta) SetContinue(c string)
- func (meta *ListMeta) SetRemainingItemCount(c *int64)
- func (meta *ListMeta) SetResourceVersion(version string)
- func (meta *ListMeta) SetSelfLink(_ string)
- func (m *ListMeta) Size() (n int)
- func (this *ListMeta) String() string
- func (m *ListMeta) Unmarshal(dAtA []byte) error
- func (m *ListMeta) XXX_DiscardUnknown()
- func (m *ListMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListMeta) XXX_Merge(src proto.Message)
- func (m *ListMeta) XXX_Size() int
- func (m *ListMeta) XXX_Unmarshal(b []byte) error
- type MatchLabelsValue
- type ObjectMeta
- func (in *ObjectMeta) DeepCopy() *ObjectMeta
- func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)
- func (in *ObjectMeta) DeepEqual(other *ObjectMeta) bool
- func (*ObjectMeta) Descriptor() ([]byte, []int)
- func (meta *ObjectMeta) GetAnnotations() map[string]string
- func (meta *ObjectMeta) GetCreationTimestamp() metav1.Time
- func (meta *ObjectMeta) GetDeletionGracePeriodSeconds() *int64
- func (meta *ObjectMeta) GetDeletionTimestamp() *metav1.Time
- func (meta *ObjectMeta) GetFinalizers() []string
- func (meta *ObjectMeta) GetGenerateName() string
- func (meta *ObjectMeta) GetGeneration() int64
- func (meta *ObjectMeta) GetLabels() map[string]string
- func (meta *ObjectMeta) GetManagedFields() []metav1.ManagedFieldsEntry
- func (meta *ObjectMeta) GetName() string
- func (meta *ObjectMeta) GetNamespace() string
- func (obj *ObjectMeta) GetObjectMeta() metav1.Object
- func (meta *ObjectMeta) GetOwnerReferences() []metav1.OwnerReference
- func (meta *ObjectMeta) GetResourceVersion() string
- func (meta *ObjectMeta) GetSelfLink() string
- func (meta *ObjectMeta) GetUID() types.UID
- func (meta *ObjectMeta) GetZZZ_DeprecatedClusterName() string
- func (m *ObjectMeta) Marshal() (dAtA []byte, err error)
- func (m *ObjectMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ObjectMeta) ProtoMessage()
- func (m *ObjectMeta) Reset()
- func (meta *ObjectMeta) SetAnnotations(annotations map[string]string)
- func (meta *ObjectMeta) SetCreationTimestamp(_ metav1.Time)
- func (meta *ObjectMeta) SetDeletionGracePeriodSeconds(_ *int64)
- func (meta *ObjectMeta) SetDeletionTimestamp(_ *metav1.Time)
- func (meta *ObjectMeta) SetFinalizers(_ []string)
- func (meta *ObjectMeta) SetGenerateName(string)
- func (meta *ObjectMeta) SetGeneration(_ int64)
- func (meta *ObjectMeta) SetLabels(labels map[string]string)
- func (meta *ObjectMeta) SetManagedFields(_ []metav1.ManagedFieldsEntry)
- func (meta *ObjectMeta) SetName(name string)
- func (meta *ObjectMeta) SetNamespace(namespace string)
- func (meta *ObjectMeta) SetOwnerReferences(references []metav1.OwnerReference)
- func (meta *ObjectMeta) SetResourceVersion(ver string)
- func (meta *ObjectMeta) SetSelfLink(_ string)
- func (meta *ObjectMeta) SetUID(uid types.UID)
- func (meta *ObjectMeta) SetZZZ_DeprecatedClusterName(_ string)
- func (m *ObjectMeta) Size() (n int)
- func (this *ObjectMeta) String() string
- func (m *ObjectMeta) Unmarshal(dAtA []byte) error
- func (m *ObjectMeta) XXX_DiscardUnknown()
- func (m *ObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ObjectMeta) XXX_Merge(src proto.Message)
- func (m *ObjectMeta) XXX_Size() int
- func (m *ObjectMeta) XXX_Unmarshal(b []byte) error
- type OwnerReference
- func (in *OwnerReference) DeepCopy() *OwnerReference
- func (in *OwnerReference) DeepCopyInto(out *OwnerReference)
- func (in *OwnerReference) DeepEqual(other *OwnerReference) bool
- func (*OwnerReference) Descriptor() ([]byte, []int)
- func (m *OwnerReference) Marshal() (dAtA []byte, err error)
- func (m *OwnerReference) MarshalTo(dAtA []byte) (int, error)
- func (m *OwnerReference) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OwnerReference) ProtoMessage()
- func (m *OwnerReference) Reset()
- func (m *OwnerReference) Size() (n int)
- func (this *OwnerReference) String() string
- func (m *OwnerReference) Unmarshal(dAtA []byte) error
- func (m *OwnerReference) XXX_DiscardUnknown()
- func (m *OwnerReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OwnerReference) XXX_Merge(src proto.Message)
- func (m *OwnerReference) XXX_Size() int
- func (m *OwnerReference) XXX_Unmarshal(b []byte) error
- type PartialObjectMetadata
- func (in *PartialObjectMetadata) DeepCopy() *PartialObjectMetadata
- func (in *PartialObjectMetadata) DeepCopyInto(out *PartialObjectMetadata)
- func (in *PartialObjectMetadata) DeepCopyObject() runtime.Object
- func (in *PartialObjectMetadata) DeepEqual(other *PartialObjectMetadata) bool
- func (*PartialObjectMetadata) Descriptor() ([]byte, []int)
- func (m *PartialObjectMetadata) Marshal() (dAtA []byte, err error)
- func (m *PartialObjectMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *PartialObjectMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PartialObjectMetadata) ProtoMessage()
- func (m *PartialObjectMetadata) Reset()
- func (m *PartialObjectMetadata) Size() (n int)
- func (this *PartialObjectMetadata) String() string
- func (m *PartialObjectMetadata) Unmarshal(dAtA []byte) error
- func (m *PartialObjectMetadata) XXX_DiscardUnknown()
- func (m *PartialObjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PartialObjectMetadata) XXX_Merge(src proto.Message)
- func (m *PartialObjectMetadata) XXX_Size() int
- func (m *PartialObjectMetadata) XXX_Unmarshal(b []byte) error
- type PartialObjectMetadataList
- func (in *PartialObjectMetadataList) DeepCopy() *PartialObjectMetadataList
- func (in *PartialObjectMetadataList) DeepCopyInto(out *PartialObjectMetadataList)
- func (in *PartialObjectMetadataList) DeepCopyObject() runtime.Object
- func (in *PartialObjectMetadataList) DeepEqual(other *PartialObjectMetadataList) bool
- func (*PartialObjectMetadataList) Descriptor() ([]byte, []int)
- func (m *PartialObjectMetadataList) Marshal() (dAtA []byte, err error)
- func (m *PartialObjectMetadataList) MarshalTo(dAtA []byte) (int, error)
- func (m *PartialObjectMetadataList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PartialObjectMetadataList) ProtoMessage()
- func (m *PartialObjectMetadataList) Reset()
- func (m *PartialObjectMetadataList) Size() (n int)
- func (this *PartialObjectMetadataList) String() string
- func (m *PartialObjectMetadataList) Unmarshal(dAtA []byte) error
- func (m *PartialObjectMetadataList) XXX_DiscardUnknown()
- func (m *PartialObjectMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PartialObjectMetadataList) XXX_Merge(src proto.Message)
- func (m *PartialObjectMetadataList) XXX_Size() int
- func (m *PartialObjectMetadataList) XXX_Unmarshal(b []byte) error
- type Time
- func (t *Time) Before(u *Time) bool
- func (in *Time) DeepCopy() *Time
- func (t *Time) DeepCopyInto(out *Time)
- func (in *Time) DeepEqual(other *Time) bool
- func (*Time) Descriptor() ([]byte, []int)
- func (t *Time) Equal(u *Time) bool
- func (t *Time) IsZero() bool
- func (m *Time) Marshal() (data []byte, err error)
- func (t Time) MarshalJSON() ([]byte, error)
- func (t Time) MarshalQueryParameter() (string, error)
- func (m *Time) MarshalTo(data []byte) (int, error)
- func (m *Time) MarshalToSizedBuffer(data []byte) (int, error)
- func (_ Time) OpenAPISchemaFormat() string
- func (_ Time) OpenAPISchemaType() []string
- func (*Time) ProtoMessage()
- func (m *Time) ProtoTime() *Timestamp
- func (m *Time) Reset()
- func (t Time) Rfc3339Copy() Time
- func (m *Time) Size() (n int)
- func (t Time) ToUnstructured() interface{}
- func (m *Time) Unmarshal(data []byte) error
- func (t *Time) UnmarshalJSON(b []byte) error
- func (t *Time) UnmarshalQueryParameter(str string) error
- func (m *Time) XXX_DiscardUnknown()
- func (m *Time) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Time) XXX_Merge(src proto.Message)
- func (m *Time) XXX_Size() int
- func (m *Time) XXX_Unmarshal(b []byte) error
- type Timestamp
- func (in *Timestamp) DeepCopy() *Timestamp
- func (in *Timestamp) DeepCopyInto(out *Timestamp)
- func (in *Timestamp) DeepEqual(other *Timestamp) bool
- func (*Timestamp) Descriptor() ([]byte, []int)
- func (m *Timestamp) Marshal() (dAtA []byte, err error)
- func (m *Timestamp) MarshalTo(dAtA []byte) (int, error)
- func (m *Timestamp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Timestamp) ProtoMessage()
- func (m *Timestamp) Reset()
- func (m *Timestamp) Size() (n int)
- func (this *Timestamp) String() string
- func (m *Timestamp) Unmarshal(dAtA []byte) error
- func (m *Timestamp) XXX_DiscardUnknown()
- func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Timestamp) XXX_Merge(src proto.Message)
- func (m *Timestamp) XXX_Size() int
- func (m *Timestamp) XXX_Unmarshal(b []byte) error
- type TypeMeta
- func (in *TypeMeta) DeepEqual(other *TypeMeta) bool
- func (*TypeMeta) Descriptor() ([]byte, []int)
- func (obj *TypeMeta) GetObjectKind() schema.ObjectKind
- func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind
- func (m *TypeMeta) Marshal() (dAtA []byte, err error)
- func (m *TypeMeta) MarshalTo(dAtA []byte) (int, error)
- func (m *TypeMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TypeMeta) ProtoMessage()
- func (m *TypeMeta) Reset()
- func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind)
- func (m *TypeMeta) Size() (n int)
- func (this *TypeMeta) String() string
- func (m *TypeMeta) Unmarshal(dAtA []byte) error
- func (m *TypeMeta) XXX_DiscardUnknown()
- func (m *TypeMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TypeMeta) XXX_Merge(src proto.Message)
- func (m *TypeMeta) XXX_Size() int
- func (m *TypeMeta) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // NamespaceDefault means the object is in the default namespace which is applied when not specified by clients NamespaceDefault = "default" // NamespaceAll is the default argument to specify on a context when you want to list or filter resources across all namespaces NamespaceAll = "" // NamespaceNone is the argument for a context when there is no namespace. NamespaceNone = "" // NamespaceSystem is the system namespace where we place system components. NamespaceSystem = "kube-system" // NamespacePublic is the namespace where we place public info (ConfigMaps) NamespacePublic = "kube-public" )
const GroupName = "meta.k8s.io"
GroupName is the group name for this API.
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ParameterCodec = runtime.NewParameterCodec(scheme)
ParameterCodec knows about query parameters used with the meta v1 API spec.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
var Unversioned = schema.GroupVersion{Group: "", Version: "v1"}
Unversioned is group version for unversioned API objects TODO: this should be v1 probably
Functions ¶
func AddMetaToScheme ¶
AddMetaToScheme registers base meta types into schemas.
func FormatLabelSelector ¶
func FormatLabelSelector(labelSelector *LabelSelector) string
FormatLabelSelector convert labelSelector into plain string
func FullOwnerReferences ¶
func FullOwnerReferences(references []OwnerReference) []metav1.OwnerReference
FullOwnerReferences converts slim OwnerReferences to original OwnerReferences
func LabelSelectorAsSelector ¶
func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error)
LabelSelectorAsSelector converts the LabelSelector api type into a struct that implements labels.Selector Note: This function should be kept in sync with the selector methods in pkg/labels/selector.go
Types ¶
type Condition ¶
type Condition struct { // type of condition in CamelCase or in foo.example.com/CamelCase. // --- // Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be // useful (see .node.status.conditions), the ability to deconflict is important. // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` // +kubebuilder:validation:MaxLength=316 Type string `json:"type" protobuf:"bytes,1,opt,name=type"` // status of the condition, one of True, False, Unknown. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Enum=True;False;Unknown Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"` // observedGeneration represents the .metadata.generation that the condition was set based upon. // For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date // with respect to the current state of the instance. // +optional // +kubebuilder:validation:Minimum=0 ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` // lastTransitionTime is the last time the condition transitioned from one status to another. // This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Format=date-time LastTransitionTime Time `json:"lastTransitionTime" protobuf:"bytes,4,opt,name=lastTransitionTime"` // reason contains a programmatic identifier indicating the reason for the condition's last transition. // Producers of specific condition types may define expected values and meanings for this field, // and whether the values are considered a guaranteed API. // The value should be a CamelCase string. // This field may not be empty. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:MaxLength=1024 // +kubebuilder:validation:MinLength=1 // +kubebuilder:validation:Pattern=`^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$` Reason string `json:"reason" protobuf:"bytes,5,opt,name=reason"` // message is a human readable message indicating details about the transition. // This may be an empty string. // +required // +kubebuilder:validation:Required // +kubebuilder:validation:MaxLength=32768 Message string `json:"message" protobuf:"bytes,6,opt,name=message"` }
Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example,
type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: "Available", "Progressing", and "Degraded" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` // other fields }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Condition) DeepEqual ¶
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*Condition) Descriptor ¶
func (*Condition) MarshalToSizedBuffer ¶
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) XXX_DiscardUnknown ¶
func (m *Condition) XXX_DiscardUnknown()
func (*Condition) XXX_Marshal ¶
func (*Condition) XXX_Unmarshal ¶
type ConditionStatus ¶
type ConditionStatus string
const ( ConditionTrue ConditionStatus = "True" ConditionFalse ConditionStatus = "False" ConditionUnknown ConditionStatus = "Unknown" )
These are valid condition statuses. "ConditionTrue" means a resource is in the condition. "ConditionFalse" means a resource is not in the condition. "ConditionUnknown" means kubernetes can't decide if a resource is in the condition or not. In the future, we could add other intermediate conditions, e.g. ConditionDegraded.
type LabelSelector ¶
type LabelSelector struct { // matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels // map is equivalent to an element of matchExpressions, whose key field is "key", the // operator is "In", and the values array contains only "value". The requirements are ANDed. // // +kubebuilder:validation:Optional MatchLabels map[string]MatchLabelsValue `json:"matchLabels,omitempty" protobuf:"bytes,1,rep,name=matchLabels"` // matchExpressions is a list of label selector requirements. The requirements are ANDed. // +kubebuilder:validation:Optional MatchExpressions []LabelSelectorRequirement `json:"matchExpressions,omitempty" protobuf:"bytes,2,rep,name=matchExpressions"` }
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. +structType=atomic
func (*LabelSelector) DeepCopy ¶
func (in *LabelSelector) DeepCopy() *LabelSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.
func (*LabelSelector) DeepCopyInto ¶
func (in *LabelSelector) DeepCopyInto(out *LabelSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LabelSelector) DeepEqual ¶
func (in *LabelSelector) DeepEqual(other *LabelSelector) bool
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*LabelSelector) Descriptor ¶
func (*LabelSelector) Descriptor() ([]byte, []int)
func (*LabelSelector) Marshal ¶
func (m *LabelSelector) Marshal() (dAtA []byte, err error)
func (*LabelSelector) MarshalToSizedBuffer ¶
func (m *LabelSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LabelSelector) ProtoMessage ¶
func (*LabelSelector) ProtoMessage()
func (*LabelSelector) Reset ¶
func (m *LabelSelector) Reset()
func (*LabelSelector) Size ¶
func (m *LabelSelector) Size() (n int)
func (*LabelSelector) String ¶
func (this *LabelSelector) String() string
func (*LabelSelector) Unmarshal ¶
func (m *LabelSelector) Unmarshal(dAtA []byte) error
func (*LabelSelector) XXX_DiscardUnknown ¶
func (m *LabelSelector) XXX_DiscardUnknown()
func (*LabelSelector) XXX_Marshal ¶
func (m *LabelSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LabelSelector) XXX_Merge ¶
func (m *LabelSelector) XXX_Merge(src proto.Message)
func (*LabelSelector) XXX_Size ¶
func (m *LabelSelector) XXX_Size() int
func (*LabelSelector) XXX_Unmarshal ¶
func (m *LabelSelector) XXX_Unmarshal(b []byte) error
type LabelSelectorOperator ¶
type LabelSelectorOperator string
A label selector operator is the set of operators that can be used in a selector requirement.
const ( LabelSelectorOpIn LabelSelectorOperator = "In" LabelSelectorOpNotIn LabelSelectorOperator = "NotIn" LabelSelectorOpExists LabelSelectorOperator = "Exists" LabelSelectorOpDoesNotExist LabelSelectorOperator = "DoesNotExist" )
type LabelSelectorRequirement ¶
type LabelSelectorRequirement struct { // key is the label key that the selector applies to. // +patchMergeKey=key // +patchStrategy=merge Key string `json:"key" patchStrategy:"merge" patchMergeKey:"key" protobuf:"bytes,1,opt,name=key"` // operator represents a key's relationship to a set of values. // Valid operators are In, NotIn, Exists and DoesNotExist. // // +kubebuilder:validation:Enum=In;NotIn;Exists;DoesNotExist Operator LabelSelectorOperator `json:"operator" protobuf:"bytes,2,opt,name=operator,casttype=LabelSelectorOperator"` // values is an array of string values. If the operator is In or NotIn, // the values array must be non-empty. If the operator is Exists or DoesNotExist, // the values array must be empty. This array is replaced during a strategic // merge patch. // // +kubebuilder:validation:Optional Values []string `json:"values,omitempty" protobuf:"bytes,3,rep,name=values"` }
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
func (*LabelSelectorRequirement) DeepCopy ¶
func (in *LabelSelectorRequirement) DeepCopy() *LabelSelectorRequirement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelectorRequirement.
func (*LabelSelectorRequirement) DeepCopyInto ¶
func (in *LabelSelectorRequirement) DeepCopyInto(out *LabelSelectorRequirement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LabelSelectorRequirement) DeepEqual ¶
func (in *LabelSelectorRequirement) DeepEqual(other *LabelSelectorRequirement) bool
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*LabelSelectorRequirement) Descriptor ¶
func (*LabelSelectorRequirement) Descriptor() ([]byte, []int)
func (*LabelSelectorRequirement) Marshal ¶
func (m *LabelSelectorRequirement) Marshal() (dAtA []byte, err error)
func (*LabelSelectorRequirement) MarshalTo ¶
func (m *LabelSelectorRequirement) MarshalTo(dAtA []byte) (int, error)
func (*LabelSelectorRequirement) MarshalToSizedBuffer ¶
func (m *LabelSelectorRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LabelSelectorRequirement) ProtoMessage ¶
func (*LabelSelectorRequirement) ProtoMessage()
func (*LabelSelectorRequirement) Reset ¶
func (m *LabelSelectorRequirement) Reset()
func (*LabelSelectorRequirement) Size ¶
func (m *LabelSelectorRequirement) Size() (n int)
func (*LabelSelectorRequirement) String ¶
func (this *LabelSelectorRequirement) String() string
func (*LabelSelectorRequirement) Unmarshal ¶
func (m *LabelSelectorRequirement) Unmarshal(dAtA []byte) error
func (*LabelSelectorRequirement) XXX_DiscardUnknown ¶
func (m *LabelSelectorRequirement) XXX_DiscardUnknown()
func (*LabelSelectorRequirement) XXX_Marshal ¶
func (m *LabelSelectorRequirement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LabelSelectorRequirement) XXX_Merge ¶
func (m *LabelSelectorRequirement) XXX_Merge(src proto.Message)
func (*LabelSelectorRequirement) XXX_Size ¶
func (m *LabelSelectorRequirement) XXX_Size() int
func (*LabelSelectorRequirement) XXX_Unmarshal ¶
func (m *LabelSelectorRequirement) XXX_Unmarshal(b []byte) error
type ListMeta ¶
type ListMeta struct { // String that identifies the server's internal version of this object that // can be used by clients to determine when objects have changed. // Value must be treated as opaque by clients and passed unmodified back to the server. // Populated by the system. // Read-only. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency // +optional ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,2,opt,name=resourceVersion"` // continue may be set if the user set a limit on the number of items returned, and indicates that // the server has more data available. The value is opaque and may be used to issue another request // to the endpoint that served this list to retrieve the next set of available objects. Continuing a // consistent list may not be possible if the server configuration has changed or more than a few // minutes have passed. The resourceVersion field returned when using this continue value will be // identical to the value in the first response, unless you have received this token from an error // message. Continue string `json:"continue,omitempty" protobuf:"bytes,3,opt,name=continue"` // remainingItemCount is the number of subsequent items in the list which are not included in this // list response. If the list request contained label or field selectors, then the number of // remaining items is unknown and the field will be left unset and omitted during serialization. // If the list is complete (either because it is not chunking or because this is the last chunk), // then there are no more remaining items and this field will be left unset and omitted during // serialization. // Servers older than v1.15 do not set this field. // The intended use of the remainingItemCount is *estimating* the size of a collection. Clients // should not rely on the remainingItemCount to be set or to be exact. // +optional RemainingItemCount *int64 `json:"remainingItemCount,omitempty" protobuf:"bytes,4,opt,name=remainingItemCount"` }
ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
func (*ListMeta) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListMeta.
func (*ListMeta) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ListMeta) DeepEqual ¶
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*ListMeta) Descriptor ¶
func (*ListMeta) GetContinue ¶
func (*ListMeta) GetListMeta ¶
func (obj *ListMeta) GetListMeta() metav1.ListInterface
func (*ListMeta) GetRemainingItemCount ¶
func (*ListMeta) GetResourceVersion ¶
func (*ListMeta) GetSelfLink ¶
func (*ListMeta) MarshalToSizedBuffer ¶
func (*ListMeta) ProtoMessage ¶
func (*ListMeta) ProtoMessage()
func (*ListMeta) SetContinue ¶
func (*ListMeta) SetRemainingItemCount ¶
func (*ListMeta) SetResourceVersion ¶
func (*ListMeta) SetSelfLink ¶
func (*ListMeta) XXX_DiscardUnknown ¶
func (m *ListMeta) XXX_DiscardUnknown()
func (*ListMeta) XXX_Marshal ¶
func (*ListMeta) XXX_Unmarshal ¶
type MatchLabelsValue ¶
type MatchLabelsValue = string
MatchLabelsValue represents the value from the MatchLabels {key,value} pair.
+kubebuilder:validation:MaxLength=63 +kubebuilder:validation:Pattern=`^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$`
type ObjectMeta ¶
type ObjectMeta struct { // Name must be unique within a namespace. Is required when creating resources, although // some resources may allow a client to request the generation of an appropriate name // automatically. Name is primarily intended for creation idempotence and configuration // definition. // Cannot be updated. // More info: http://kubernetes.io/docs/user-guide/identifiers#names // +optional Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"` // GenerateName is an optional prefix, used by the server, to generate a unique // name ONLY IF the Name field has not been provided. // If this field is used, the name returned to the client will be different // than the name passed. This value will also be combined with a unique suffix. // The provided value has the same validation rules as the Name field, // and may be truncated by the length of the suffix required to make the value // unique on the server. // // If this field is specified and the generated name exists, the server will return a 409. // // Applied only if Name is not specified. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency // +optional GenerateName string `json:"generateName,omitempty" protobuf:"bytes,2,opt,name=generateName"` // Namespace defines the space within which each name must be unique. An empty namespace is // equivalent to the "default" namespace, but "default" is the canonical representation. // Not all objects are required to be scoped to a namespace - the value of this field for // those objects will be empty. // // Must be a DNS_LABEL. // Cannot be updated. // More info: http://kubernetes.io/docs/user-guide/namespaces // +optional Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` // UID is the unique in time and space value for this object. It is typically generated by // the server on successful creation of a resource and is not allowed to change on PUT // operations. // // Populated by the system. // Read-only. // More info: http://kubernetes.io/docs/user-guide/identifiers#uids // +optional UID types.UID `json:"uid,omitempty" protobuf:"bytes,5,opt,name=uid,casttype=k8s.io/kubernetes/pkg/types.UID"` // An opaque value that represents the internal version of this object that can // be used by clients to determine when objects have changed. May be used for optimistic // concurrency, change detection, and the watch operation on a resource or set of resources. // Clients must treat these values as opaque and passed unmodified back to the server. // They may only be valid for a particular resource or set of resources. // // Populated by the system. // Read-only. // Value must be treated as opaque by clients and . // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency // +optional // +deepequal-gen=false ResourceVersion string `json:"resourceVersion,omitempty" protobuf:"bytes,6,opt,name=resourceVersion"` // A sequence number representing a specific generation of the desired state. // Populated by the system. Read-only. // +optional Generation int64 `json:"generation,omitempty" protobuf:"varint,7,opt,name=generation"` // DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This // field is set by the server when a graceful deletion is requested by the user, and is not // directly settable by a client. The resource is expected to be deleted (no longer visible // from resource lists, and not reachable by name) after the time in this field, once the // finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. // Once the deletionTimestamp is set, this value may not be unset or be set further into the // future, although it may be shortened or the resource may be deleted prior to this time. // For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react // by sending a graceful termination signal to the containers in the pod. After that 30 seconds, // the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, // remove the pod from the API. In the presence of network partitions, this object may still // exist after this timestamp, until an administrator or automated process can determine the // resource is fully terminated. // If not set, graceful deletion of the object has not been requested. // // Populated by the system when a graceful deletion is requested. // Read-only. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional DeletionTimestamp *Time `json:"deletionTimestamp,omitempty" protobuf:"bytes,9,opt,name=deletionTimestamp"` // Map of string keys and values that can be used to organize and categorize // (scope and select) objects. May match selectors of replication controllers // and services. // More info: http://kubernetes.io/docs/user-guide/labels // +optional Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"` // Annotations is an unstructured key value map stored with a resource that may be // set by external tools to store and retrieve arbitrary metadata. They are not // queryable and should be preserved when modifying objects. // More info: http://kubernetes.io/docs/user-guide/annotations // +optional Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,12,rep,name=annotations"` // List of objects depended by this object. If ALL objects in the list have // been deleted, this object will be garbage collected. If this object is managed by a controller, // then an entry in this list will point to this controller, with the controller field set to true. // There cannot be more than one managing controller. // +optional // +patchMergeKey=uid // +patchStrategy=merge OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" patchStrategy:"merge" patchMergeKey:"uid" protobuf:"bytes,13,rep,name=ownerReferences"` }
ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
func (*ObjectMeta) DeepCopy ¶
func (in *ObjectMeta) DeepCopy() *ObjectMeta
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMeta.
func (*ObjectMeta) DeepCopyInto ¶
func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ObjectMeta) DeepEqual ¶
func (in *ObjectMeta) DeepEqual(other *ObjectMeta) bool
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*ObjectMeta) Descriptor ¶
func (*ObjectMeta) Descriptor() ([]byte, []int)
func (*ObjectMeta) GetAnnotations ¶
func (meta *ObjectMeta) GetAnnotations() map[string]string
func (*ObjectMeta) GetCreationTimestamp ¶
func (meta *ObjectMeta) GetCreationTimestamp() metav1.Time
func (*ObjectMeta) GetDeletionGracePeriodSeconds ¶
func (meta *ObjectMeta) GetDeletionGracePeriodSeconds() *int64
func (*ObjectMeta) GetDeletionTimestamp ¶
func (meta *ObjectMeta) GetDeletionTimestamp() *metav1.Time
func (*ObjectMeta) GetFinalizers ¶
func (meta *ObjectMeta) GetFinalizers() []string
func (*ObjectMeta) GetGenerateName ¶
func (meta *ObjectMeta) GetGenerateName() string
func (*ObjectMeta) GetGeneration ¶
func (meta *ObjectMeta) GetGeneration() int64
func (*ObjectMeta) GetLabels ¶
func (meta *ObjectMeta) GetLabels() map[string]string
func (*ObjectMeta) GetManagedFields ¶
func (meta *ObjectMeta) GetManagedFields() []metav1.ManagedFieldsEntry
func (*ObjectMeta) GetName ¶
func (meta *ObjectMeta) GetName() string
func (*ObjectMeta) GetNamespace ¶
func (meta *ObjectMeta) GetNamespace() string
Namespace implements metav1.Object for any object with an ObjectMeta typed field. Allows fast, direct access to metadata fields for API objects.
func (*ObjectMeta) GetObjectMeta ¶
func (obj *ObjectMeta) GetObjectMeta() metav1.Object
func (*ObjectMeta) GetOwnerReferences ¶
func (meta *ObjectMeta) GetOwnerReferences() []metav1.OwnerReference
func (*ObjectMeta) GetResourceVersion ¶
func (meta *ObjectMeta) GetResourceVersion() string
func (*ObjectMeta) GetSelfLink ¶
func (meta *ObjectMeta) GetSelfLink() string
func (*ObjectMeta) GetUID ¶
func (meta *ObjectMeta) GetUID() types.UID
func (*ObjectMeta) GetZZZ_DeprecatedClusterName ¶
func (meta *ObjectMeta) GetZZZ_DeprecatedClusterName() string
func (*ObjectMeta) Marshal ¶
func (m *ObjectMeta) Marshal() (dAtA []byte, err error)
func (*ObjectMeta) MarshalToSizedBuffer ¶
func (m *ObjectMeta) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ObjectMeta) ProtoMessage ¶
func (*ObjectMeta) ProtoMessage()
func (*ObjectMeta) Reset ¶
func (m *ObjectMeta) Reset()
func (*ObjectMeta) SetAnnotations ¶
func (meta *ObjectMeta) SetAnnotations(annotations map[string]string)
func (*ObjectMeta) SetCreationTimestamp ¶
func (meta *ObjectMeta) SetCreationTimestamp(_ metav1.Time)
func (*ObjectMeta) SetDeletionGracePeriodSeconds ¶
func (meta *ObjectMeta) SetDeletionGracePeriodSeconds(_ *int64)
func (*ObjectMeta) SetDeletionTimestamp ¶
func (meta *ObjectMeta) SetDeletionTimestamp(_ *metav1.Time)
func (*ObjectMeta) SetFinalizers ¶
func (meta *ObjectMeta) SetFinalizers(_ []string)
func (*ObjectMeta) SetGenerateName ¶
func (meta *ObjectMeta) SetGenerateName(string)
func (*ObjectMeta) SetGeneration ¶
func (meta *ObjectMeta) SetGeneration(_ int64)
func (*ObjectMeta) SetLabels ¶
func (meta *ObjectMeta) SetLabels(labels map[string]string)
func (*ObjectMeta) SetManagedFields ¶
func (meta *ObjectMeta) SetManagedFields(_ []metav1.ManagedFieldsEntry)
func (*ObjectMeta) SetName ¶
func (meta *ObjectMeta) SetName(name string)
func (*ObjectMeta) SetNamespace ¶
func (meta *ObjectMeta) SetNamespace(namespace string)
func (*ObjectMeta) SetOwnerReferences ¶
func (meta *ObjectMeta) SetOwnerReferences(references []metav1.OwnerReference)
func (*ObjectMeta) SetResourceVersion ¶
func (meta *ObjectMeta) SetResourceVersion(ver string)
func (*ObjectMeta) SetSelfLink ¶
func (meta *ObjectMeta) SetSelfLink(_ string)
func (*ObjectMeta) SetUID ¶
func (meta *ObjectMeta) SetUID(uid types.UID)
func (*ObjectMeta) SetZZZ_DeprecatedClusterName ¶
func (meta *ObjectMeta) SetZZZ_DeprecatedClusterName(_ string)
func (*ObjectMeta) Size ¶
func (m *ObjectMeta) Size() (n int)
func (*ObjectMeta) String ¶
func (this *ObjectMeta) String() string
func (*ObjectMeta) Unmarshal ¶
func (m *ObjectMeta) Unmarshal(dAtA []byte) error
func (*ObjectMeta) XXX_DiscardUnknown ¶
func (m *ObjectMeta) XXX_DiscardUnknown()
func (*ObjectMeta) XXX_Marshal ¶
func (m *ObjectMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ObjectMeta) XXX_Merge ¶
func (m *ObjectMeta) XXX_Merge(src proto.Message)
func (*ObjectMeta) XXX_Size ¶
func (m *ObjectMeta) XXX_Size() int
func (*ObjectMeta) XXX_Unmarshal ¶
func (m *ObjectMeta) XXX_Unmarshal(b []byte) error
type OwnerReference ¶
type OwnerReference struct { // Kind of the referent. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind" protobuf:"bytes,1,opt,name=kind"` // Name of the referent. // More info: http://kubernetes.io/docs/user-guide/identifiers#names Name string `json:"name" protobuf:"bytes,3,opt,name=name"` // If true, this reference points to the managing controller. // +optional Controller *bool `json:"controller,omitempty" protobuf:"varint,6,opt,name=controller"` }
OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. +structType=atomic
func SlimOwnerReferences ¶
func SlimOwnerReferences(references []metav1.OwnerReference) []OwnerReference
SlimOwnerReferences converts original OwnerReferences to slim OwnerReferences
func (*OwnerReference) DeepCopy ¶
func (in *OwnerReference) DeepCopy() *OwnerReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OwnerReference.
func (*OwnerReference) DeepCopyInto ¶
func (in *OwnerReference) DeepCopyInto(out *OwnerReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OwnerReference) DeepEqual ¶
func (in *OwnerReference) DeepEqual(other *OwnerReference) bool
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*OwnerReference) Descriptor ¶
func (*OwnerReference) Descriptor() ([]byte, []int)
func (*OwnerReference) Marshal ¶
func (m *OwnerReference) Marshal() (dAtA []byte, err error)
func (*OwnerReference) MarshalToSizedBuffer ¶
func (m *OwnerReference) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OwnerReference) ProtoMessage ¶
func (*OwnerReference) ProtoMessage()
func (*OwnerReference) Reset ¶
func (m *OwnerReference) Reset()
func (*OwnerReference) Size ¶
func (m *OwnerReference) Size() (n int)
func (*OwnerReference) String ¶
func (this *OwnerReference) String() string
func (*OwnerReference) Unmarshal ¶
func (m *OwnerReference) Unmarshal(dAtA []byte) error
func (*OwnerReference) XXX_DiscardUnknown ¶
func (m *OwnerReference) XXX_DiscardUnknown()
func (*OwnerReference) XXX_Marshal ¶
func (m *OwnerReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OwnerReference) XXX_Merge ¶
func (m *OwnerReference) XXX_Merge(src proto.Message)
func (*OwnerReference) XXX_Size ¶
func (m *OwnerReference) XXX_Size() int
func (*OwnerReference) XXX_Unmarshal ¶
func (m *OwnerReference) XXX_Unmarshal(b []byte) error
type PartialObjectMetadata ¶
type PartialObjectMetadata struct { TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` }
PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients to get access to a particular ObjectMeta schema without knowing the details of the version. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*PartialObjectMetadata) DeepCopy ¶
func (in *PartialObjectMetadata) DeepCopy() *PartialObjectMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartialObjectMetadata.
func (*PartialObjectMetadata) DeepCopyInto ¶
func (in *PartialObjectMetadata) DeepCopyInto(out *PartialObjectMetadata)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PartialObjectMetadata) DeepCopyObject ¶
func (in *PartialObjectMetadata) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PartialObjectMetadata) DeepEqual ¶
func (in *PartialObjectMetadata) DeepEqual(other *PartialObjectMetadata) bool
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*PartialObjectMetadata) Descriptor ¶
func (*PartialObjectMetadata) Descriptor() ([]byte, []int)
func (*PartialObjectMetadata) Marshal ¶
func (m *PartialObjectMetadata) Marshal() (dAtA []byte, err error)
func (*PartialObjectMetadata) MarshalTo ¶
func (m *PartialObjectMetadata) MarshalTo(dAtA []byte) (int, error)
func (*PartialObjectMetadata) MarshalToSizedBuffer ¶
func (m *PartialObjectMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PartialObjectMetadata) ProtoMessage ¶
func (*PartialObjectMetadata) ProtoMessage()
func (*PartialObjectMetadata) Reset ¶
func (m *PartialObjectMetadata) Reset()
func (*PartialObjectMetadata) Size ¶
func (m *PartialObjectMetadata) Size() (n int)
func (*PartialObjectMetadata) String ¶
func (this *PartialObjectMetadata) String() string
func (*PartialObjectMetadata) Unmarshal ¶
func (m *PartialObjectMetadata) Unmarshal(dAtA []byte) error
func (*PartialObjectMetadata) XXX_DiscardUnknown ¶
func (m *PartialObjectMetadata) XXX_DiscardUnknown()
func (*PartialObjectMetadata) XXX_Marshal ¶
func (m *PartialObjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PartialObjectMetadata) XXX_Merge ¶
func (m *PartialObjectMetadata) XXX_Merge(src proto.Message)
func (*PartialObjectMetadata) XXX_Size ¶
func (m *PartialObjectMetadata) XXX_Size() int
func (*PartialObjectMetadata) XXX_Unmarshal ¶
func (m *PartialObjectMetadata) XXX_Unmarshal(b []byte) error
type PartialObjectMetadataList ¶
type PartialObjectMetadataList struct { TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` // items contains each of the included items. Items []PartialObjectMetadata `json:"items" protobuf:"bytes,2,rep,name=items"` }
PartialObjectMetadataList contains a list of objects containing only their metadata +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*PartialObjectMetadataList) DeepCopy ¶
func (in *PartialObjectMetadataList) DeepCopy() *PartialObjectMetadataList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartialObjectMetadataList.
func (*PartialObjectMetadataList) DeepCopyInto ¶
func (in *PartialObjectMetadataList) DeepCopyInto(out *PartialObjectMetadataList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PartialObjectMetadataList) DeepCopyObject ¶
func (in *PartialObjectMetadataList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PartialObjectMetadataList) DeepEqual ¶
func (in *PartialObjectMetadataList) DeepEqual(other *PartialObjectMetadataList) bool
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*PartialObjectMetadataList) Descriptor ¶
func (*PartialObjectMetadataList) Descriptor() ([]byte, []int)
func (*PartialObjectMetadataList) Marshal ¶
func (m *PartialObjectMetadataList) Marshal() (dAtA []byte, err error)
func (*PartialObjectMetadataList) MarshalTo ¶
func (m *PartialObjectMetadataList) MarshalTo(dAtA []byte) (int, error)
func (*PartialObjectMetadataList) MarshalToSizedBuffer ¶
func (m *PartialObjectMetadataList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PartialObjectMetadataList) ProtoMessage ¶
func (*PartialObjectMetadataList) ProtoMessage()
func (*PartialObjectMetadataList) Reset ¶
func (m *PartialObjectMetadataList) Reset()
func (*PartialObjectMetadataList) Size ¶
func (m *PartialObjectMetadataList) Size() (n int)
func (*PartialObjectMetadataList) String ¶
func (this *PartialObjectMetadataList) String() string
func (*PartialObjectMetadataList) Unmarshal ¶
func (m *PartialObjectMetadataList) Unmarshal(dAtA []byte) error
func (*PartialObjectMetadataList) XXX_DiscardUnknown ¶
func (m *PartialObjectMetadataList) XXX_DiscardUnknown()
func (*PartialObjectMetadataList) XXX_Marshal ¶
func (m *PartialObjectMetadataList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PartialObjectMetadataList) XXX_Merge ¶
func (m *PartialObjectMetadataList) XXX_Merge(src proto.Message)
func (*PartialObjectMetadataList) XXX_Size ¶
func (m *PartialObjectMetadataList) XXX_Size() int
func (*PartialObjectMetadataList) XXX_Unmarshal ¶
func (m *PartialObjectMetadataList) XXX_Unmarshal(b []byte) error
type Time ¶
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
+protobuf.options.marshal=false +protobuf.as=Timestamp +protobuf.options.(gogoproto.goproto_stringer)=false
+kubebuilder:validation:Format=date-time +kubebuilder:validation:Type=string
func (*Time) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Time.
func (*Time) DeepCopyInto ¶
DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time type is effectively immutable in the time API, so it is safe to copy-by-assign, despite the presence of (unexported) Pointer fields.
func (*Time) Descriptor ¶
func (Time) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (Time) MarshalQueryParameter ¶
MarshalQueryParameter converts to a URL query parameter value
func (*Time) MarshalToSizedBuffer ¶
MarshalToSizedBuffer implements the protobuf reverse marshaling interface.
func (Time) OpenAPISchemaFormat ¶
OpenAPISchemaFormat is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
func (Time) OpenAPISchemaType ¶
OpenAPISchemaType is used by the kube-openapi generator when constructing the OpenAPI spec of this type.
See: https://github.com/kubernetes/kube-openapi/tree/master/pkg/generators
func (*Time) ProtoMessage ¶
func (*Time) ProtoMessage()
func (Time) Rfc3339Copy ¶
Rfc3339Copy returns a copy of the Time at second-level precision.
func (Time) ToUnstructured ¶
func (t Time) ToUnstructured() interface{}
ToUnstructured implements the value.UnstructuredConverter interface.
func (*Time) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface.
func (*Time) UnmarshalQueryParameter ¶
UnmarshalQueryParameter converts from a URL query parameter value to an object
func (*Time) XXX_DiscardUnknown ¶
func (m *Time) XXX_DiscardUnknown()
func (*Time) XXX_Unmarshal ¶
type Timestamp ¶
type Timestamp struct { // Represents seconds of UTC time since Unix epoch // 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to // 9999-12-31T23:59:59Z inclusive. Seconds int64 `json:"seconds" protobuf:"varint,1,opt,name=seconds"` // Non-negative fractions of a second at nanosecond resolution. Negative // second values with fractions must still have non-negative nanos values // that count forward in time. Must be from 0 to 999,999,999 // inclusive. This field may be limited in precision depending on context. Nanos int32 `json:"nanos" protobuf:"varint,2,opt,name=nanos"` }
Timestamp is a struct that is equivalent to Time, but intended for protobuf marshalling/unmarshalling. It is generated into a serialization that matches Time. Do not use in Go structs.
func (*Timestamp) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Timestamp.
func (*Timestamp) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Timestamp) DeepEqual ¶
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*Timestamp) Descriptor ¶
func (*Timestamp) MarshalToSizedBuffer ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) XXX_DiscardUnknown ¶
func (m *Timestamp) XXX_DiscardUnknown()
func (*Timestamp) XXX_Marshal ¶
func (*Timestamp) XXX_Unmarshal ¶
type TypeMeta ¶
type TypeMeta struct { // Kind is a string value representing the REST resource this object represents. // Servers may infer this from the endpoint the client submits requests to. // Cannot be updated. // In CamelCase. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional Kind string `json:"kind,omitempty" protobuf:"bytes,1,opt,name=kind"` // APIVersion defines the versioned schema of this representation of an object. // Servers should convert recognized schemas to the latest internal value, and // may reject unrecognized values. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources // +optional APIVersion string `json:"apiVersion,omitempty" protobuf:"bytes,2,opt,name=apiVersion"` }
TypeMeta describes an individual object in an API response or request with strings representing the type of the object and its API schema version. Structures that are versioned or persisted should inline TypeMeta.
+k8s:deepcopy-gen=false
func (*TypeMeta) DeepEqual ¶
DeepEqual is an autogenerated deepequal function, deeply comparing the receiver with other. in must be non-nil.
func (*TypeMeta) Descriptor ¶
func (*TypeMeta) GetObjectKind ¶
func (obj *TypeMeta) GetObjectKind() schema.ObjectKind
func (*TypeMeta) GroupVersionKind ¶
func (obj *TypeMeta) GroupVersionKind() schema.GroupVersionKind
GroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta
func (*TypeMeta) MarshalToSizedBuffer ¶
func (*TypeMeta) ProtoMessage ¶
func (*TypeMeta) ProtoMessage()
func (*TypeMeta) SetGroupVersionKind ¶
func (obj *TypeMeta) SetGroupVersionKind(gvk schema.GroupVersionKind)
SetGroupVersionKind satisfies the ObjectKind interface for all objects that embed TypeMeta
func (*TypeMeta) XXX_DiscardUnknown ¶
func (m *TypeMeta) XXX_DiscardUnknown()