| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247 |
- //go:build !ignore_autogenerated
- // +build !ignore_autogenerated
- /*
- Copyright The Kubernetes Authors.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- */
- // Code generated by deepcopy-gen. DO NOT EDIT.
- package v1beta1
- import (
- corev1 "k8s.io/api/core/v1"
- resource "k8s.io/apimachinery/pkg/api/resource"
- v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
- runtime "k8s.io/apimachinery/pkg/runtime"
- types "k8s.io/apimachinery/pkg/types"
- )
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *AllocatedDeviceStatus) DeepCopyInto(out *AllocatedDeviceStatus) {
- *out = *in
- if in.ShareID != nil {
- in, out := &in.ShareID, &out.ShareID
- *out = new(string)
- **out = **in
- }
- if in.Conditions != nil {
- in, out := &in.Conditions, &out.Conditions
- *out = make([]v1.Condition, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Data != nil {
- in, out := &in.Data, &out.Data
- *out = new(runtime.RawExtension)
- (*in).DeepCopyInto(*out)
- }
- if in.NetworkData != nil {
- in, out := &in.NetworkData, &out.NetworkData
- *out = new(NetworkDeviceData)
- (*in).DeepCopyInto(*out)
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocatedDeviceStatus.
- func (in *AllocatedDeviceStatus) DeepCopy() *AllocatedDeviceStatus {
- if in == nil {
- return nil
- }
- out := new(AllocatedDeviceStatus)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *AllocationResult) DeepCopyInto(out *AllocationResult) {
- *out = *in
- in.Devices.DeepCopyInto(&out.Devices)
- if in.NodeSelector != nil {
- in, out := &in.NodeSelector, &out.NodeSelector
- *out = new(corev1.NodeSelector)
- (*in).DeepCopyInto(*out)
- }
- if in.AllocationTimestamp != nil {
- in, out := &in.AllocationTimestamp, &out.AllocationTimestamp
- *out = (*in).DeepCopy()
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResult.
- func (in *AllocationResult) DeepCopy() *AllocationResult {
- if in == nil {
- return nil
- }
- out := new(AllocationResult)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *BasicDevice) DeepCopyInto(out *BasicDevice) {
- *out = *in
- if in.Attributes != nil {
- in, out := &in.Attributes, &out.Attributes
- *out = make(map[QualifiedName]DeviceAttribute, len(*in))
- for key, val := range *in {
- (*out)[key] = *val.DeepCopy()
- }
- }
- if in.Capacity != nil {
- in, out := &in.Capacity, &out.Capacity
- *out = make(map[QualifiedName]DeviceCapacity, len(*in))
- for key, val := range *in {
- (*out)[key] = *val.DeepCopy()
- }
- }
- if in.ConsumesCounters != nil {
- in, out := &in.ConsumesCounters, &out.ConsumesCounters
- *out = make([]DeviceCounterConsumption, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.NodeName != nil {
- in, out := &in.NodeName, &out.NodeName
- *out = new(string)
- **out = **in
- }
- if in.NodeSelector != nil {
- in, out := &in.NodeSelector, &out.NodeSelector
- *out = new(corev1.NodeSelector)
- (*in).DeepCopyInto(*out)
- }
- if in.AllNodes != nil {
- in, out := &in.AllNodes, &out.AllNodes
- *out = new(bool)
- **out = **in
- }
- if in.Taints != nil {
- in, out := &in.Taints, &out.Taints
- *out = make([]DeviceTaint, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.BindsToNode != nil {
- in, out := &in.BindsToNode, &out.BindsToNode
- *out = new(bool)
- **out = **in
- }
- if in.BindingConditions != nil {
- in, out := &in.BindingConditions, &out.BindingConditions
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.BindingFailureConditions != nil {
- in, out := &in.BindingFailureConditions, &out.BindingFailureConditions
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.AllowMultipleAllocations != nil {
- in, out := &in.AllowMultipleAllocations, &out.AllowMultipleAllocations
- *out = new(bool)
- **out = **in
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BasicDevice.
- func (in *BasicDevice) DeepCopy() *BasicDevice {
- if in == nil {
- return nil
- }
- out := new(BasicDevice)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *CELDeviceSelector) DeepCopyInto(out *CELDeviceSelector) {
- *out = *in
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CELDeviceSelector.
- func (in *CELDeviceSelector) DeepCopy() *CELDeviceSelector {
- if in == nil {
- return nil
- }
- out := new(CELDeviceSelector)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *CapacityRequestPolicy) DeepCopyInto(out *CapacityRequestPolicy) {
- *out = *in
- if in.Default != nil {
- in, out := &in.Default, &out.Default
- x := (*in).DeepCopy()
- *out = &x
- }
- if in.ValidValues != nil {
- in, out := &in.ValidValues, &out.ValidValues
- *out = make([]resource.Quantity, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.ValidRange != nil {
- in, out := &in.ValidRange, &out.ValidRange
- *out = new(CapacityRequestPolicyRange)
- (*in).DeepCopyInto(*out)
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequestPolicy.
- func (in *CapacityRequestPolicy) DeepCopy() *CapacityRequestPolicy {
- if in == nil {
- return nil
- }
- out := new(CapacityRequestPolicy)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *CapacityRequestPolicyRange) DeepCopyInto(out *CapacityRequestPolicyRange) {
- *out = *in
- if in.Min != nil {
- in, out := &in.Min, &out.Min
- x := (*in).DeepCopy()
- *out = &x
- }
- if in.Max != nil {
- in, out := &in.Max, &out.Max
- x := (*in).DeepCopy()
- *out = &x
- }
- if in.Step != nil {
- in, out := &in.Step, &out.Step
- x := (*in).DeepCopy()
- *out = &x
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequestPolicyRange.
- func (in *CapacityRequestPolicyRange) DeepCopy() *CapacityRequestPolicyRange {
- if in == nil {
- return nil
- }
- out := new(CapacityRequestPolicyRange)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *CapacityRequirements) DeepCopyInto(out *CapacityRequirements) {
- *out = *in
- if in.Requests != nil {
- in, out := &in.Requests, &out.Requests
- *out = make(map[QualifiedName]resource.Quantity, len(*in))
- for key, val := range *in {
- (*out)[key] = val.DeepCopy()
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CapacityRequirements.
- func (in *CapacityRequirements) DeepCopy() *CapacityRequirements {
- if in == nil {
- return nil
- }
- out := new(CapacityRequirements)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *Counter) DeepCopyInto(out *Counter) {
- *out = *in
- out.Value = in.Value.DeepCopy()
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Counter.
- func (in *Counter) DeepCopy() *Counter {
- if in == nil {
- return nil
- }
- out := new(Counter)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *CounterSet) DeepCopyInto(out *CounterSet) {
- *out = *in
- if in.Counters != nil {
- in, out := &in.Counters, &out.Counters
- *out = make(map[string]Counter, len(*in))
- for key, val := range *in {
- (*out)[key] = *val.DeepCopy()
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CounterSet.
- func (in *CounterSet) DeepCopy() *CounterSet {
- if in == nil {
- return nil
- }
- out := new(CounterSet)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *Device) DeepCopyInto(out *Device) {
- *out = *in
- if in.Basic != nil {
- in, out := &in.Basic, &out.Basic
- *out = new(BasicDevice)
- (*in).DeepCopyInto(*out)
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Device.
- func (in *Device) DeepCopy() *Device {
- if in == nil {
- return nil
- }
- out := new(Device)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceAllocationConfiguration) DeepCopyInto(out *DeviceAllocationConfiguration) {
- *out = *in
- if in.Requests != nil {
- in, out := &in.Requests, &out.Requests
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAllocationConfiguration.
- func (in *DeviceAllocationConfiguration) DeepCopy() *DeviceAllocationConfiguration {
- if in == nil {
- return nil
- }
- out := new(DeviceAllocationConfiguration)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceAllocationResult) DeepCopyInto(out *DeviceAllocationResult) {
- *out = *in
- if in.Results != nil {
- in, out := &in.Results, &out.Results
- *out = make([]DeviceRequestAllocationResult, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Config != nil {
- in, out := &in.Config, &out.Config
- *out = make([]DeviceAllocationConfiguration, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAllocationResult.
- func (in *DeviceAllocationResult) DeepCopy() *DeviceAllocationResult {
- if in == nil {
- return nil
- }
- out := new(DeviceAllocationResult)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceAttribute) DeepCopyInto(out *DeviceAttribute) {
- *out = *in
- if in.IntValue != nil {
- in, out := &in.IntValue, &out.IntValue
- *out = new(int64)
- **out = **in
- }
- if in.BoolValue != nil {
- in, out := &in.BoolValue, &out.BoolValue
- *out = new(bool)
- **out = **in
- }
- if in.StringValue != nil {
- in, out := &in.StringValue, &out.StringValue
- *out = new(string)
- **out = **in
- }
- if in.VersionValue != nil {
- in, out := &in.VersionValue, &out.VersionValue
- *out = new(string)
- **out = **in
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceAttribute.
- func (in *DeviceAttribute) DeepCopy() *DeviceAttribute {
- if in == nil {
- return nil
- }
- out := new(DeviceAttribute)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceCapacity) DeepCopyInto(out *DeviceCapacity) {
- *out = *in
- out.Value = in.Value.DeepCopy()
- if in.RequestPolicy != nil {
- in, out := &in.RequestPolicy, &out.RequestPolicy
- *out = new(CapacityRequestPolicy)
- (*in).DeepCopyInto(*out)
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceCapacity.
- func (in *DeviceCapacity) DeepCopy() *DeviceCapacity {
- if in == nil {
- return nil
- }
- out := new(DeviceCapacity)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceClaim) DeepCopyInto(out *DeviceClaim) {
- *out = *in
- if in.Requests != nil {
- in, out := &in.Requests, &out.Requests
- *out = make([]DeviceRequest, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Constraints != nil {
- in, out := &in.Constraints, &out.Constraints
- *out = make([]DeviceConstraint, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Config != nil {
- in, out := &in.Config, &out.Config
- *out = make([]DeviceClaimConfiguration, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClaim.
- func (in *DeviceClaim) DeepCopy() *DeviceClaim {
- if in == nil {
- return nil
- }
- out := new(DeviceClaim)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceClaimConfiguration) DeepCopyInto(out *DeviceClaimConfiguration) {
- *out = *in
- if in.Requests != nil {
- in, out := &in.Requests, &out.Requests
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClaimConfiguration.
- func (in *DeviceClaimConfiguration) DeepCopy() *DeviceClaimConfiguration {
- if in == nil {
- return nil
- }
- out := new(DeviceClaimConfiguration)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceClass) DeepCopyInto(out *DeviceClass) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClass.
- func (in *DeviceClass) DeepCopy() *DeviceClass {
- if in == nil {
- return nil
- }
- out := new(DeviceClass)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
- func (in *DeviceClass) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceClassConfiguration) DeepCopyInto(out *DeviceClassConfiguration) {
- *out = *in
- in.DeviceConfiguration.DeepCopyInto(&out.DeviceConfiguration)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassConfiguration.
- func (in *DeviceClassConfiguration) DeepCopy() *DeviceClassConfiguration {
- if in == nil {
- return nil
- }
- out := new(DeviceClassConfiguration)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceClassList) DeepCopyInto(out *DeviceClassList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]DeviceClass, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassList.
- func (in *DeviceClassList) DeepCopy() *DeviceClassList {
- if in == nil {
- return nil
- }
- out := new(DeviceClassList)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
- func (in *DeviceClassList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceClassSpec) DeepCopyInto(out *DeviceClassSpec) {
- *out = *in
- if in.Selectors != nil {
- in, out := &in.Selectors, &out.Selectors
- *out = make([]DeviceSelector, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Config != nil {
- in, out := &in.Config, &out.Config
- *out = make([]DeviceClassConfiguration, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.ExtendedResourceName != nil {
- in, out := &in.ExtendedResourceName, &out.ExtendedResourceName
- *out = new(string)
- **out = **in
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceClassSpec.
- func (in *DeviceClassSpec) DeepCopy() *DeviceClassSpec {
- if in == nil {
- return nil
- }
- out := new(DeviceClassSpec)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceConfiguration) DeepCopyInto(out *DeviceConfiguration) {
- *out = *in
- if in.Opaque != nil {
- in, out := &in.Opaque, &out.Opaque
- *out = new(OpaqueDeviceConfiguration)
- (*in).DeepCopyInto(*out)
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceConfiguration.
- func (in *DeviceConfiguration) DeepCopy() *DeviceConfiguration {
- if in == nil {
- return nil
- }
- out := new(DeviceConfiguration)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceConstraint) DeepCopyInto(out *DeviceConstraint) {
- *out = *in
- if in.Requests != nil {
- in, out := &in.Requests, &out.Requests
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.MatchAttribute != nil {
- in, out := &in.MatchAttribute, &out.MatchAttribute
- *out = new(FullyQualifiedName)
- **out = **in
- }
- if in.DistinctAttribute != nil {
- in, out := &in.DistinctAttribute, &out.DistinctAttribute
- *out = new(FullyQualifiedName)
- **out = **in
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceConstraint.
- func (in *DeviceConstraint) DeepCopy() *DeviceConstraint {
- if in == nil {
- return nil
- }
- out := new(DeviceConstraint)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceCounterConsumption) DeepCopyInto(out *DeviceCounterConsumption) {
- *out = *in
- if in.Counters != nil {
- in, out := &in.Counters, &out.Counters
- *out = make(map[string]Counter, len(*in))
- for key, val := range *in {
- (*out)[key] = *val.DeepCopy()
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceCounterConsumption.
- func (in *DeviceCounterConsumption) DeepCopy() *DeviceCounterConsumption {
- if in == nil {
- return nil
- }
- out := new(DeviceCounterConsumption)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceRequest) DeepCopyInto(out *DeviceRequest) {
- *out = *in
- if in.Selectors != nil {
- in, out := &in.Selectors, &out.Selectors
- *out = make([]DeviceSelector, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.AdminAccess != nil {
- in, out := &in.AdminAccess, &out.AdminAccess
- *out = new(bool)
- **out = **in
- }
- if in.FirstAvailable != nil {
- in, out := &in.FirstAvailable, &out.FirstAvailable
- *out = make([]DeviceSubRequest, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Tolerations != nil {
- in, out := &in.Tolerations, &out.Tolerations
- *out = make([]DeviceToleration, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Capacity != nil {
- in, out := &in.Capacity, &out.Capacity
- *out = new(CapacityRequirements)
- (*in).DeepCopyInto(*out)
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceRequest.
- func (in *DeviceRequest) DeepCopy() *DeviceRequest {
- if in == nil {
- return nil
- }
- out := new(DeviceRequest)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceRequestAllocationResult) DeepCopyInto(out *DeviceRequestAllocationResult) {
- *out = *in
- if in.AdminAccess != nil {
- in, out := &in.AdminAccess, &out.AdminAccess
- *out = new(bool)
- **out = **in
- }
- if in.Tolerations != nil {
- in, out := &in.Tolerations, &out.Tolerations
- *out = make([]DeviceToleration, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.BindingConditions != nil {
- in, out := &in.BindingConditions, &out.BindingConditions
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.BindingFailureConditions != nil {
- in, out := &in.BindingFailureConditions, &out.BindingFailureConditions
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- if in.ShareID != nil {
- in, out := &in.ShareID, &out.ShareID
- *out = new(types.UID)
- **out = **in
- }
- if in.ConsumedCapacity != nil {
- in, out := &in.ConsumedCapacity, &out.ConsumedCapacity
- *out = make(map[QualifiedName]resource.Quantity, len(*in))
- for key, val := range *in {
- (*out)[key] = val.DeepCopy()
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceRequestAllocationResult.
- func (in *DeviceRequestAllocationResult) DeepCopy() *DeviceRequestAllocationResult {
- if in == nil {
- return nil
- }
- out := new(DeviceRequestAllocationResult)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceSelector) DeepCopyInto(out *DeviceSelector) {
- *out = *in
- if in.CEL != nil {
- in, out := &in.CEL, &out.CEL
- *out = new(CELDeviceSelector)
- **out = **in
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSelector.
- func (in *DeviceSelector) DeepCopy() *DeviceSelector {
- if in == nil {
- return nil
- }
- out := new(DeviceSelector)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceSubRequest) DeepCopyInto(out *DeviceSubRequest) {
- *out = *in
- if in.Selectors != nil {
- in, out := &in.Selectors, &out.Selectors
- *out = make([]DeviceSelector, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Tolerations != nil {
- in, out := &in.Tolerations, &out.Tolerations
- *out = make([]DeviceToleration, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.Capacity != nil {
- in, out := &in.Capacity, &out.Capacity
- *out = new(CapacityRequirements)
- (*in).DeepCopyInto(*out)
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceSubRequest.
- func (in *DeviceSubRequest) DeepCopy() *DeviceSubRequest {
- if in == nil {
- return nil
- }
- out := new(DeviceSubRequest)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceTaint) DeepCopyInto(out *DeviceTaint) {
- *out = *in
- if in.TimeAdded != nil {
- in, out := &in.TimeAdded, &out.TimeAdded
- *out = (*in).DeepCopy()
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceTaint.
- func (in *DeviceTaint) DeepCopy() *DeviceTaint {
- if in == nil {
- return nil
- }
- out := new(DeviceTaint)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *DeviceToleration) DeepCopyInto(out *DeviceToleration) {
- *out = *in
- if in.TolerationSeconds != nil {
- in, out := &in.TolerationSeconds, &out.TolerationSeconds
- *out = new(int64)
- **out = **in
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeviceToleration.
- func (in *DeviceToleration) DeepCopy() *DeviceToleration {
- if in == nil {
- return nil
- }
- out := new(DeviceToleration)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *NetworkDeviceData) DeepCopyInto(out *NetworkDeviceData) {
- *out = *in
- if in.IPs != nil {
- in, out := &in.IPs, &out.IPs
- *out = make([]string, len(*in))
- copy(*out, *in)
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkDeviceData.
- func (in *NetworkDeviceData) DeepCopy() *NetworkDeviceData {
- if in == nil {
- return nil
- }
- out := new(NetworkDeviceData)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *OpaqueDeviceConfiguration) DeepCopyInto(out *OpaqueDeviceConfiguration) {
- *out = *in
- in.Parameters.DeepCopyInto(&out.Parameters)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpaqueDeviceConfiguration.
- func (in *OpaqueDeviceConfiguration) DeepCopy() *OpaqueDeviceConfiguration {
- if in == nil {
- return nil
- }
- out := new(OpaqueDeviceConfiguration)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceClaim) DeepCopyInto(out *ResourceClaim) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- in.Status.DeepCopyInto(&out.Status)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaim.
- func (in *ResourceClaim) DeepCopy() *ResourceClaim {
- if in == nil {
- return nil
- }
- out := new(ResourceClaim)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
- func (in *ResourceClaim) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceClaimConsumerReference) DeepCopyInto(out *ResourceClaimConsumerReference) {
- *out = *in
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimConsumerReference.
- func (in *ResourceClaimConsumerReference) DeepCopy() *ResourceClaimConsumerReference {
- if in == nil {
- return nil
- }
- out := new(ResourceClaimConsumerReference)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceClaimList) DeepCopyInto(out *ResourceClaimList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]ResourceClaim, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimList.
- func (in *ResourceClaimList) DeepCopy() *ResourceClaimList {
- if in == nil {
- return nil
- }
- out := new(ResourceClaimList)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
- func (in *ResourceClaimList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceClaimSpec) DeepCopyInto(out *ResourceClaimSpec) {
- *out = *in
- in.Devices.DeepCopyInto(&out.Devices)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimSpec.
- func (in *ResourceClaimSpec) DeepCopy() *ResourceClaimSpec {
- if in == nil {
- return nil
- }
- out := new(ResourceClaimSpec)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceClaimStatus) DeepCopyInto(out *ResourceClaimStatus) {
- *out = *in
- if in.Allocation != nil {
- in, out := &in.Allocation, &out.Allocation
- *out = new(AllocationResult)
- (*in).DeepCopyInto(*out)
- }
- if in.ReservedFor != nil {
- in, out := &in.ReservedFor, &out.ReservedFor
- *out = make([]ResourceClaimConsumerReference, len(*in))
- copy(*out, *in)
- }
- if in.Devices != nil {
- in, out := &in.Devices, &out.Devices
- *out = make([]AllocatedDeviceStatus, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimStatus.
- func (in *ResourceClaimStatus) DeepCopy() *ResourceClaimStatus {
- if in == nil {
- return nil
- }
- out := new(ResourceClaimStatus)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceClaimTemplate) DeepCopyInto(out *ResourceClaimTemplate) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplate.
- func (in *ResourceClaimTemplate) DeepCopy() *ResourceClaimTemplate {
- if in == nil {
- return nil
- }
- out := new(ResourceClaimTemplate)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
- func (in *ResourceClaimTemplate) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceClaimTemplateList) DeepCopyInto(out *ResourceClaimTemplateList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]ResourceClaimTemplate, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateList.
- func (in *ResourceClaimTemplateList) DeepCopy() *ResourceClaimTemplateList {
- if in == nil {
- return nil
- }
- out := new(ResourceClaimTemplateList)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
- func (in *ResourceClaimTemplateList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceClaimTemplateSpec) DeepCopyInto(out *ResourceClaimTemplateSpec) {
- *out = *in
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceClaimTemplateSpec.
- func (in *ResourceClaimTemplateSpec) DeepCopy() *ResourceClaimTemplateSpec {
- if in == nil {
- return nil
- }
- out := new(ResourceClaimTemplateSpec)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourcePool) DeepCopyInto(out *ResourcePool) {
- *out = *in
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePool.
- func (in *ResourcePool) DeepCopy() *ResourcePool {
- if in == nil {
- return nil
- }
- out := new(ResourcePool)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceSlice) DeepCopyInto(out *ResourceSlice) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
- in.Spec.DeepCopyInto(&out.Spec)
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSlice.
- func (in *ResourceSlice) DeepCopy() *ResourceSlice {
- if in == nil {
- return nil
- }
- out := new(ResourceSlice)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
- func (in *ResourceSlice) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceSliceList) DeepCopyInto(out *ResourceSliceList) {
- *out = *in
- out.TypeMeta = in.TypeMeta
- in.ListMeta.DeepCopyInto(&out.ListMeta)
- if in.Items != nil {
- in, out := &in.Items, &out.Items
- *out = make([]ResourceSlice, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceList.
- func (in *ResourceSliceList) DeepCopy() *ResourceSliceList {
- if in == nil {
- return nil
- }
- out := new(ResourceSliceList)
- in.DeepCopyInto(out)
- return out
- }
- // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
- func (in *ResourceSliceList) DeepCopyObject() runtime.Object {
- if c := in.DeepCopy(); c != nil {
- return c
- }
- return nil
- }
- // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
- func (in *ResourceSliceSpec) DeepCopyInto(out *ResourceSliceSpec) {
- *out = *in
- out.Pool = in.Pool
- if in.NodeSelector != nil {
- in, out := &in.NodeSelector, &out.NodeSelector
- *out = new(corev1.NodeSelector)
- (*in).DeepCopyInto(*out)
- }
- if in.Devices != nil {
- in, out := &in.Devices, &out.Devices
- *out = make([]Device, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- if in.PerDeviceNodeSelection != nil {
- in, out := &in.PerDeviceNodeSelection, &out.PerDeviceNodeSelection
- *out = new(bool)
- **out = **in
- }
- if in.SharedCounters != nil {
- in, out := &in.SharedCounters, &out.SharedCounters
- *out = make([]CounterSet, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- return
- }
- // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSliceSpec.
- func (in *ResourceSliceSpec) DeepCopy() *ResourceSliceSpec {
- if in == nil {
- return nil
- }
- out := new(ResourceSliceSpec)
- in.DeepCopyInto(out)
- return out
- }
|