pkg/providers/snow/api/v1beta1/zz_generated.deepcopy.go (715 lines of code) (raw):
//go:build !ignore_autogenerated
// +build !ignore_autogenerated
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// 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 controller-gen. DO NOT EDIT.
package snow
import (
"k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/cluster-api/api/v1beta1"
"sigs.k8s.io/cluster-api/errors"
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSResourceReference) DeepCopyInto(out *AWSResourceReference) {
*out = *in
if in.ID != nil {
in, out := &in.ID, &out.ID
*out = new(string)
**out = **in
}
if in.ARN != nil {
in, out := &in.ARN, &out.ARN
*out = new(string)
**out = **in
}
if in.Filters != nil {
in, out := &in.Filters, &out.Filters
*out = make([]Filter, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSResourceReference.
func (in *AWSResourceReference) DeepCopy() *AWSResourceReference {
if in == nil {
return nil
}
out := new(AWSResourceReference)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowCluster) DeepCopyInto(out *AWSSnowCluster) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowCluster.
func (in *AWSSnowCluster) DeepCopy() *AWSSnowCluster {
if in == nil {
return nil
}
out := new(AWSSnowCluster)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AWSSnowCluster) 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 *AWSSnowClusterList) DeepCopyInto(out *AWSSnowClusterList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]AWSSnowCluster, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowClusterList.
func (in *AWSSnowClusterList) DeepCopy() *AWSSnowClusterList {
if in == nil {
return nil
}
out := new(AWSSnowClusterList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AWSSnowClusterList) 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 *AWSSnowClusterSpec) DeepCopyInto(out *AWSSnowClusterSpec) {
*out = *in
if in.SSHKeyName != nil {
in, out := &in.SSHKeyName, &out.SSHKeyName
*out = new(string)
**out = **in
}
out.ControlPlaneEndpoint = in.ControlPlaneEndpoint
if in.PhysicalNetworkConnectorType != nil {
in, out := &in.PhysicalNetworkConnectorType, &out.PhysicalNetworkConnectorType
*out = new(string)
**out = **in
}
if in.IdentityRef != nil {
in, out := &in.IdentityRef, &out.IdentityRef
*out = new(AWSSnowIdentityReference)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowClusterSpec.
func (in *AWSSnowClusterSpec) DeepCopy() *AWSSnowClusterSpec {
if in == nil {
return nil
}
out := new(AWSSnowClusterSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowClusterStatus) DeepCopyInto(out *AWSSnowClusterStatus) {
*out = *in
if in.FailureDomains != nil {
in, out := &in.FailureDomains, &out.FailureDomains
*out = make(v1beta1.FailureDomains, len(*in))
for key, val := range *in {
(*out)[key] = *val.DeepCopy()
}
}
if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions
*out = make(v1beta1.Conditions, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowClusterStatus.
func (in *AWSSnowClusterStatus) DeepCopy() *AWSSnowClusterStatus {
if in == nil {
return nil
}
out := new(AWSSnowClusterStatus)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowDirectNetworkInterface) DeepCopyInto(out *AWSSnowDirectNetworkInterface) {
*out = *in
if in.VlanID != nil {
in, out := &in.VlanID, &out.VlanID
*out = new(int32)
**out = **in
}
if in.IPPool != nil {
in, out := &in.IPPool, &out.IPPool
*out = new(v1.ObjectReference)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowDirectNetworkInterface.
func (in *AWSSnowDirectNetworkInterface) DeepCopy() *AWSSnowDirectNetworkInterface {
if in == nil {
return nil
}
out := new(AWSSnowDirectNetworkInterface)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowIPPool) DeepCopyInto(out *AWSSnowIPPool) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowIPPool.
func (in *AWSSnowIPPool) DeepCopy() *AWSSnowIPPool {
if in == nil {
return nil
}
out := new(AWSSnowIPPool)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AWSSnowIPPool) 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 *AWSSnowIPPoolList) DeepCopyInto(out *AWSSnowIPPoolList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]AWSSnowIPPool, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowIPPoolList.
func (in *AWSSnowIPPoolList) DeepCopy() *AWSSnowIPPoolList {
if in == nil {
return nil
}
out := new(AWSSnowIPPoolList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AWSSnowIPPoolList) 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 *AWSSnowIPPoolSpec) DeepCopyInto(out *AWSSnowIPPoolSpec) {
*out = *in
if in.IPPools != nil {
in, out := &in.IPPools, &out.IPPools
*out = make([]IPPool, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowIPPoolSpec.
func (in *AWSSnowIPPoolSpec) DeepCopy() *AWSSnowIPPoolSpec {
if in == nil {
return nil
}
out := new(AWSSnowIPPoolSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowIPPoolStatus) DeepCopyInto(out *AWSSnowIPPoolStatus) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowIPPoolStatus.
func (in *AWSSnowIPPoolStatus) DeepCopy() *AWSSnowIPPoolStatus {
if in == nil {
return nil
}
out := new(AWSSnowIPPoolStatus)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowIdentityReference) DeepCopyInto(out *AWSSnowIdentityReference) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowIdentityReference.
func (in *AWSSnowIdentityReference) DeepCopy() *AWSSnowIdentityReference {
if in == nil {
return nil
}
out := new(AWSSnowIdentityReference)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowMachine) DeepCopyInto(out *AWSSnowMachine) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowMachine.
func (in *AWSSnowMachine) DeepCopy() *AWSSnowMachine {
if in == nil {
return nil
}
out := new(AWSSnowMachine)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AWSSnowMachine) 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 *AWSSnowMachineList) DeepCopyInto(out *AWSSnowMachineList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]AWSSnowMachine, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowMachineList.
func (in *AWSSnowMachineList) DeepCopy() *AWSSnowMachineList {
if in == nil {
return nil
}
out := new(AWSSnowMachineList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AWSSnowMachineList) 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 *AWSSnowMachineSpec) DeepCopyInto(out *AWSSnowMachineSpec) {
*out = *in
if in.ProviderID != nil {
in, out := &in.ProviderID, &out.ProviderID
*out = new(string)
**out = **in
}
if in.InstanceID != nil {
in, out := &in.InstanceID, &out.InstanceID
*out = new(string)
**out = **in
}
in.AMI.DeepCopyInto(&out.AMI)
if in.PublicIP != nil {
in, out := &in.PublicIP, &out.PublicIP
*out = new(bool)
**out = **in
}
if in.AdditionalSecurityGroups != nil {
in, out := &in.AdditionalSecurityGroups, &out.AdditionalSecurityGroups
*out = make([]AWSResourceReference, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.FailureDomain != nil {
in, out := &in.FailureDomain, &out.FailureDomain
*out = new(string)
**out = **in
}
if in.Subnet != nil {
in, out := &in.Subnet, &out.Subnet
*out = new(AWSResourceReference)
(*in).DeepCopyInto(*out)
}
if in.SSHKeyName != nil {
in, out := &in.SSHKeyName, &out.SSHKeyName
*out = new(string)
**out = **in
}
if in.RootVolume != nil {
in, out := &in.RootVolume, &out.RootVolume
*out = new(Volume)
**out = **in
}
if in.NonRootVolumes != nil {
in, out := &in.NonRootVolumes, &out.NonRootVolumes
*out = make([]*Volume, len(*in))
for i := range *in {
if (*in)[i] != nil {
in, out := &(*in)[i], &(*out)[i]
*out = new(Volume)
**out = **in
}
}
}
if in.ContainersVolume != nil {
in, out := &in.ContainersVolume, &out.ContainersVolume
*out = new(Volume)
**out = **in
}
if in.NetworkInterfaces != nil {
in, out := &in.NetworkInterfaces, &out.NetworkInterfaces
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.UncompressedUserData != nil {
in, out := &in.UncompressedUserData, &out.UncompressedUserData
*out = new(bool)
**out = **in
}
out.CloudInit = in.CloudInit
if in.PhysicalNetworkConnectorType != nil {
in, out := &in.PhysicalNetworkConnectorType, &out.PhysicalNetworkConnectorType
*out = new(string)
**out = **in
}
if in.Devices != nil {
in, out := &in.Devices, &out.Devices
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.OSFamily != nil {
in, out := &in.OSFamily, &out.OSFamily
*out = new(OSFamily)
**out = **in
}
in.Network.DeepCopyInto(&out.Network)
if in.PrimaryPublicIP != nil {
in, out := &in.PrimaryPublicIP, &out.PrimaryPublicIP
*out = new(string)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowMachineSpec.
func (in *AWSSnowMachineSpec) DeepCopy() *AWSSnowMachineSpec {
if in == nil {
return nil
}
out := new(AWSSnowMachineSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowMachineStatus) DeepCopyInto(out *AWSSnowMachineStatus) {
*out = *in
if in.Addresses != nil {
in, out := &in.Addresses, &out.Addresses
*out = make([]v1beta1.MachineAddress, len(*in))
copy(*out, *in)
}
if in.InstanceState != nil {
in, out := &in.InstanceState, &out.InstanceState
*out = new(InstanceState)
**out = **in
}
if in.FailureReason != nil {
in, out := &in.FailureReason, &out.FailureReason
*out = new(errors.MachineStatusError)
**out = **in
}
if in.FailureMessage != nil {
in, out := &in.FailureMessage, &out.FailureMessage
*out = new(string)
**out = **in
}
if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions
*out = make(v1beta1.Conditions, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowMachineStatus.
func (in *AWSSnowMachineStatus) DeepCopy() *AWSSnowMachineStatus {
if in == nil {
return nil
}
out := new(AWSSnowMachineStatus)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowMachineTemplate) DeepCopyInto(out *AWSSnowMachineTemplate) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowMachineTemplate.
func (in *AWSSnowMachineTemplate) DeepCopy() *AWSSnowMachineTemplate {
if in == nil {
return nil
}
out := new(AWSSnowMachineTemplate)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AWSSnowMachineTemplate) 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 *AWSSnowMachineTemplateList) DeepCopyInto(out *AWSSnowMachineTemplateList) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ListMeta.DeepCopyInto(&out.ListMeta)
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]AWSSnowMachineTemplate, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowMachineTemplateList.
func (in *AWSSnowMachineTemplateList) DeepCopy() *AWSSnowMachineTemplateList {
if in == nil {
return nil
}
out := new(AWSSnowMachineTemplateList)
in.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (in *AWSSnowMachineTemplateList) 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 *AWSSnowMachineTemplateResource) DeepCopyInto(out *AWSSnowMachineTemplateResource) {
*out = *in
in.Spec.DeepCopyInto(&out.Spec)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowMachineTemplateResource.
func (in *AWSSnowMachineTemplateResource) DeepCopy() *AWSSnowMachineTemplateResource {
if in == nil {
return nil
}
out := new(AWSSnowMachineTemplateResource)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowMachineTemplateSpec) DeepCopyInto(out *AWSSnowMachineTemplateSpec) {
*out = *in
in.Template.DeepCopyInto(&out.Template)
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowMachineTemplateSpec.
func (in *AWSSnowMachineTemplateSpec) DeepCopy() *AWSSnowMachineTemplateSpec {
if in == nil {
return nil
}
out := new(AWSSnowMachineTemplateSpec)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AWSSnowNetwork) DeepCopyInto(out *AWSSnowNetwork) {
*out = *in
if in.DirectNetworkInterfaces != nil {
in, out := &in.DirectNetworkInterfaces, &out.DirectNetworkInterfaces
*out = make([]AWSSnowDirectNetworkInterface, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSSnowNetwork.
func (in *AWSSnowNetwork) DeepCopy() *AWSSnowNetwork {
if in == nil {
return nil
}
out := new(AWSSnowNetwork)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *BuildParams) DeepCopyInto(out *BuildParams) {
*out = *in
if in.Name != nil {
in, out := &in.Name, &out.Name
*out = new(string)
**out = **in
}
if in.Role != nil {
in, out := &in.Role, &out.Role
*out = new(string)
**out = **in
}
if in.Additional != nil {
in, out := &in.Additional, &out.Additional
*out = make(Tags, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BuildParams.
func (in *BuildParams) DeepCopy() *BuildParams {
if in == nil {
return nil
}
out := new(BuildParams)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CloudInit) DeepCopyInto(out *CloudInit) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudInit.
func (in *CloudInit) DeepCopy() *CloudInit {
if in == nil {
return nil
}
out := new(CloudInit)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Filter) DeepCopyInto(out *Filter) {
*out = *in
if in.Values != nil {
in, out := &in.Values, &out.Values
*out = make([]string, len(*in))
copy(*out, *in)
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.
func (in *Filter) DeepCopy() *Filter {
if in == nil {
return nil
}
out := new(Filter)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *IPPool) DeepCopyInto(out *IPPool) {
*out = *in
if in.IPStart != nil {
in, out := &in.IPStart, &out.IPStart
*out = new(string)
**out = **in
}
if in.IPEnd != nil {
in, out := &in.IPEnd, &out.IPEnd
*out = new(string)
**out = **in
}
if in.Subnet != nil {
in, out := &in.Subnet, &out.Subnet
*out = new(string)
**out = **in
}
if in.Gateway != nil {
in, out := &in.Gateway, &out.Gateway
*out = new(string)
**out = **in
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPool.
func (in *IPPool) DeepCopy() *IPPool {
if in == nil {
return nil
}
out := new(IPPool)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Instance) DeepCopyInto(out *Instance) {
*out = *in
if in.SSHKeyName != nil {
in, out := &in.SSHKeyName, &out.SSHKeyName
*out = new(string)
**out = **in
}
if in.SecurityGroupIDs != nil {
in, out := &in.SecurityGroupIDs, &out.SecurityGroupIDs
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.UserData != nil {
in, out := &in.UserData, &out.UserData
*out = new(string)
**out = **in
}
if in.Addresses != nil {
in, out := &in.Addresses, &out.Addresses
*out = make([]v1beta1.MachineAddress, len(*in))
copy(*out, *in)
}
if in.PrivateIP != nil {
in, out := &in.PrivateIP, &out.PrivateIP
*out = new(string)
**out = **in
}
if in.PublicIP != nil {
in, out := &in.PublicIP, &out.PublicIP
*out = new(string)
**out = **in
}
if in.ENASupport != nil {
in, out := &in.ENASupport, &out.ENASupport
*out = new(bool)
**out = **in
}
if in.EBSOptimized != nil {
in, out := &in.EBSOptimized, &out.EBSOptimized
*out = new(bool)
**out = **in
}
if in.RootVolume != nil {
in, out := &in.RootVolume, &out.RootVolume
*out = new(Volume)
**out = **in
}
if in.NonRootVolumes != nil {
in, out := &in.NonRootVolumes, &out.NonRootVolumes
*out = make([]*Volume, len(*in))
for i := range *in {
if (*in)[i] != nil {
in, out := &(*in)[i], &(*out)[i]
*out = new(Volume)
**out = **in
}
}
}
if in.ContainersVolume != nil {
in, out := &in.ContainersVolume, &out.ContainersVolume
*out = new(Volume)
**out = **in
}
if in.NetworkInterfaces != nil {
in, out := &in.NetworkInterfaces, &out.NetworkInterfaces
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.Tags != nil {
in, out := &in.Tags, &out.Tags
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Instance.
func (in *Instance) DeepCopy() *Instance {
if in == nil {
return nil
}
out := new(Instance)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in Tags) DeepCopyInto(out *Tags) {
{
in := &in
*out = make(Tags, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tags.
func (in Tags) DeepCopy() Tags {
if in == nil {
return nil
}
out := new(Tags)
in.DeepCopyInto(out)
return *out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Volume) DeepCopyInto(out *Volume) {
*out = *in
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Volume.
func (in *Volume) DeepCopy() *Volume {
if in == nil {
return nil
}
out := new(Volume)
in.DeepCopyInto(out)
return out
}