Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=duck.knative.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: duck.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 Placeable ¶
type Placeable struct { MaxAllowedVReplicas *int32 `json:"maxAllowedVReplicas,omitempty"` Placement []Placement `json:"placements,omitempty"` }
Placeable is a list of podName and virtual replicas pairs. Each pair represents the assignment of virtual replicas to a pod
func (*Placeable) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Placeable.
func (*Placeable) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Placeable) GetFullType ¶
func (*Placeable) GetFullType() duck.Populatable
GetFullType implements duck.Implementable
type PlaceableList ¶
type PlaceableList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Placeable `json:"items"` }
PlaceableList is a list of PlaceableType resources
func (*PlaceableList) DeepCopy ¶
func (in *PlaceableList) DeepCopy() *PlaceableList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaceableList.
func (*PlaceableList) DeepCopyInto ¶
func (in *PlaceableList) DeepCopyInto(out *PlaceableList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlaceableList) DeepCopyObject ¶
func (in *PlaceableList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlaceableStatus ¶
type PlaceableStatus struct {
Placeable `json:",inline"`
}
func (*PlaceableStatus) DeepCopy ¶
func (in *PlaceableStatus) DeepCopy() *PlaceableStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaceableStatus.
func (*PlaceableStatus) DeepCopyInto ¶
func (in *PlaceableStatus) DeepCopyInto(out *PlaceableStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlaceableType ¶
type PlaceableType struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status PlaceableStatus `json:"status"` }
PlaceableType is a skeleton type wrapping Placeable in the manner we expect resource writers defining compatible resources to embed it. We will typically use this type to deserialize Placeable ObjectReferences and access the Placeable data. This is not a real resource. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*PlaceableType) DeepCopy ¶
func (in *PlaceableType) DeepCopy() *PlaceableType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlaceableType.
func (*PlaceableType) DeepCopyInto ¶
func (in *PlaceableType) DeepCopyInto(out *PlaceableType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlaceableType) DeepCopyObject ¶
func (in *PlaceableType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*PlaceableType) GetListType ¶
func (*PlaceableType) GetListType() runtime.Object
GetListType implements apis.Listable
func (*PlaceableType) Populate ¶
func (t *PlaceableType) Populate()
Populate implements duck.Populatable
type Placement ¶
type Placement struct { // PodName is the name of the pod where the resource is placed PodName string `json:"podName,omitempty"` // ZoneName is the name of the zone where the pod is located ZoneName string `json:"zoneName,omitempty"` // VReplicas is the number of virtual replicas assigned to in the pod VReplicas int32 `json:"vreplicas,omitempty"` }
func (*Placement) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Placement.
func (*Placement) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.