Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +groupName=topology.kcp.io +k8s:openapi-gen=true
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Partition
- type PartitionList
- type PartitionSet
- func (in *PartitionSet) DeepCopy() *PartitionSet
- func (in *PartitionSet) DeepCopyInto(out *PartitionSet)
- func (in *PartitionSet) DeepCopyObject() runtime.Object
- func (in *PartitionSet) GetConditions() conditionsv1alpha1.Conditions
- func (in *PartitionSet) SetConditions(conditions conditionsv1alpha1.Conditions)
- type PartitionSetList
- type PartitionSetSpec
- type PartitionSetStatus
- type PartitionSpec
Constants ¶
const ( // PartitionSetValid reflects the validity of the PartitionSet spec. PartitionSetValid conditionsv1alpha1.ConditionType = "PartitionSetValid" // PartitionsReady indicates whether matching partitions could be created. PartitionsReady conditionsv1alpha1.ConditionType = "PartitionsReady" // PartitionSetInvalidSelectorReason indicates that the specified selector could not be // marshalled into a valid one. PartitionSetInvalidSelectorReason = "InvalidSelector" // ErrorGeneratingPartitionsReason indicates that the partitions could not be generated. ErrorGeneratingPartitionsReason = "ErrorGeneratingPartitions" )
These are valid conditions of PartitionSet.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: topology.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type Partition ¶
type Partition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // spec holds the desired state. Spec PartitionSpec `json:"spec,omitempty"` }
Partition defines the selection of a set of shards along multiple dimensions. Partitions can get automatically generated through a partitioner or manually crafted.
func (*Partition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Partition.
func (*Partition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Partition) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PartitionList ¶
type PartitionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Partition `json:"items"` }
PartitionList is a list of Partition resources.
func (*PartitionList) DeepCopy ¶
func (in *PartitionList) DeepCopy() *PartitionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionList.
func (*PartitionList) DeepCopyInto ¶
func (in *PartitionList) DeepCopyInto(out *PartitionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PartitionList) DeepCopyObject ¶
func (in *PartitionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PartitionSet ¶
type PartitionSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // spec holds the desired state. Spec PartitionSetSpec `json:"spec,omitempty"` // status holds information about the current status Status PartitionSetStatus `json:"status,omitempty"` }
PartitionSet defines a target domain and dimensions to divide a set of shards into 1 or more partitions.
func (*PartitionSet) DeepCopy ¶
func (in *PartitionSet) DeepCopy() *PartitionSet
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSet.
func (*PartitionSet) DeepCopyInto ¶
func (in *PartitionSet) DeepCopyInto(out *PartitionSet)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PartitionSet) DeepCopyObject ¶
func (in *PartitionSet) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PartitionSet) GetConditions ¶
func (in *PartitionSet) GetConditions() conditionsv1alpha1.Conditions
func (*PartitionSet) SetConditions ¶
func (in *PartitionSet) SetConditions(conditions conditionsv1alpha1.Conditions)
type PartitionSetList ¶
type PartitionSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []PartitionSet `json:"items"` }
PartitionSetList is a list of PartitionSet resources.
func (*PartitionSetList) DeepCopy ¶
func (in *PartitionSetList) DeepCopy() *PartitionSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSetList.
func (*PartitionSetList) DeepCopyInto ¶
func (in *PartitionSetList) DeepCopyInto(out *PartitionSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PartitionSetList) DeepCopyObject ¶
func (in *PartitionSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PartitionSetSpec ¶
type PartitionSetSpec struct { // dimensions (optional) are used to group shards into partitions Dimensions []string `json:"dimensions,omitempty"` // shardSelector (optional) specifies filtering for shard targets. ShardSelector *metav1.LabelSelector `json:"shardSelector,omitempty"` }
PartitionSetSpec records dimensions and a target domain for the partitioning.
func (*PartitionSetSpec) DeepCopy ¶
func (in *PartitionSetSpec) DeepCopy() *PartitionSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSetSpec.
func (*PartitionSetSpec) DeepCopyInto ¶
func (in *PartitionSetSpec) DeepCopyInto(out *PartitionSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PartitionSetStatus ¶
type PartitionSetStatus struct { // count is the total number of partitions. Count uint16 `json:"count,omitempty"` // conditions is a list of conditions that apply to the APIExportEndpointSlice. Conditions conditionsv1alpha1.Conditions `json:"conditions,omitempty"` }
PartitionSetStatus records the status of the PartitionSet.
func (*PartitionSetStatus) DeepCopy ¶
func (in *PartitionSetStatus) DeepCopy() *PartitionSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSetStatus.
func (*PartitionSetStatus) DeepCopyInto ¶
func (in *PartitionSetStatus) DeepCopyInto(out *PartitionSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PartitionSpec ¶
type PartitionSpec struct { // selector (optional) is a label selector that filters shard targets. Selector *metav1.LabelSelector `json:"selector,omitempty"` }
PartitionSpec records the values defining the partition along multiple dimensions.
func (*PartitionSpec) DeepCopy ¶
func (in *PartitionSpec) DeepCopy() *PartitionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PartitionSpec.
func (*PartitionSpec) DeepCopyInto ¶
func (in *PartitionSpec) DeepCopyInto(out *PartitionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.