| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257 |
- //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 v1beta2
- 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 *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.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 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.Exactly != nil {
- in, out := &in.Exactly, &out.Exactly
- *out = new(ExactDeviceRequest)
- (*in).DeepCopyInto(*out)
- }
- if in.FirstAvailable != nil {
- in, out := &in.FirstAvailable, &out.FirstAvailable
- *out = make([]DeviceSubRequest, len(*in))
- for i := range *in {
- (*in)[i].DeepCopyInto(&(*out)[i])
- }
- }
- 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 *ExactDeviceRequest) DeepCopyInto(out *ExactDeviceRequest) {
- *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.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 ExactDeviceRequest.
- func (in *ExactDeviceRequest) DeepCopy() *ExactDeviceRequest {
- if in == nil {
- return nil
- }
- out := new(ExactDeviceRequest)
- 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.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.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
- }
|