1
0
mirror of https://github.com/rancher/types.git synced 2025-07-18 23:36:24 +00:00

go generate

This commit is contained in:
galal-hussein 2017-11-14 00:44:29 +02:00
parent 7b1e24f000
commit fc8ee2b140
7 changed files with 67 additions and 22 deletions

View File

@ -21,6 +21,27 @@ func (in *AKSConfig) DeepCopy() *AKSConfig {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *BaseService) DeepCopyInto(out *BaseService) {
*out = *in
if in.ExtraArgs != nil {
in, out := &in.ExtraArgs, &out.ExtraArgs
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseService.
func (in *BaseService) DeepCopy() *BaseService {
if in == nil {
return nil
}
out := new(BaseService)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Cluster) DeepCopyInto(out *Cluster) {
*out = *in
@ -277,7 +298,7 @@ func (in *ClusterStatus) DeepCopy() *ClusterStatus {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ETCDService) DeepCopyInto(out *ETCDService) {
*out = *in
out.baseService = in.baseService
in.BaseService.DeepCopyInto(&out.BaseService)
return
}
@ -318,7 +339,7 @@ func (in *GKEConfig) DeepCopy() *GKEConfig {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeAPIService) DeepCopyInto(out *KubeAPIService) {
*out = *in
out.baseService = in.baseService
in.BaseService.DeepCopyInto(&out.BaseService)
return
}
@ -335,7 +356,7 @@ func (in *KubeAPIService) DeepCopy() *KubeAPIService {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeControllerService) DeepCopyInto(out *KubeControllerService) {
*out = *in
out.baseService = in.baseService
in.BaseService.DeepCopyInto(&out.BaseService)
return
}
@ -352,7 +373,7 @@ func (in *KubeControllerService) DeepCopy() *KubeControllerService {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeletService) DeepCopyInto(out *KubeletService) {
*out = *in
out.baseService = in.baseService
in.BaseService.DeepCopyInto(&out.BaseService)
return
}
@ -369,7 +390,7 @@ func (in *KubeletService) DeepCopy() *KubeletService {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeproxyService) DeepCopyInto(out *KubeproxyService) {
*out = *in
out.baseService = in.baseService
in.BaseService.DeepCopyInto(&out.BaseService)
return
}
@ -393,7 +414,7 @@ func (in *RKEConfig) DeepCopyInto(out *RKEConfig) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
out.Services = in.Services
in.Services.DeepCopyInto(&out.Services)
return
}
@ -431,12 +452,12 @@ func (in *RKEConfigHost) DeepCopy() *RKEConfigHost {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RKEConfigServices) DeepCopyInto(out *RKEConfigServices) {
*out = *in
out.Etcd = in.Etcd
out.KubeAPI = in.KubeAPI
out.KubeController = in.KubeController
out.Scheduler = in.Scheduler
out.Kubelet = in.Kubelet
out.Kubeproxy = in.Kubeproxy
in.Etcd.DeepCopyInto(&out.Etcd)
in.KubeAPI.DeepCopyInto(&out.KubeAPI)
in.KubeController.DeepCopyInto(&out.KubeController)
in.Scheduler.DeepCopyInto(&out.Scheduler)
in.Kubelet.DeepCopyInto(&out.Kubelet)
in.Kubeproxy.DeepCopyInto(&out.Kubeproxy)
return
}
@ -453,7 +474,7 @@ func (in *RKEConfigServices) DeepCopy() *RKEConfigServices {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SchedulerService) DeepCopyInto(out *SchedulerService) {
*out = *in
out.baseService = in.baseService
in.BaseService.DeepCopyInto(&out.BaseService)
return
}

View File

@ -1,8 +1,12 @@
package client
const (
ETCDServiceType = "etcdService"
ETCDServiceType = "etcdService"
ETCDServiceFieldExtraArgs = "extraArgs"
ETCDServiceFieldImage = "image"
)
type ETCDService struct {
ExtraArgs []string `json:"extraArgs,omitempty"`
Image string `json:"image,omitempty"`
}

View File

@ -2,9 +2,13 @@ package client
const (
KubeAPIServiceType = "kubeAPIService"
KubeAPIServiceFieldExtraArgs = "extraArgs"
KubeAPIServiceFieldImage = "image"
KubeAPIServiceFieldServiceClusterIPRange = "serviceClusterIPRange"
)
type KubeAPIService struct {
ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty"`
ExtraArgs []string `json:"extraArgs,omitempty"`
Image string `json:"image,omitempty"`
ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty"`
}

View File

@ -3,10 +3,14 @@ package client
const (
KubeControllerServiceType = "kubeControllerService"
KubeControllerServiceFieldClusterCIDR = "clusterCIDR"
KubeControllerServiceFieldExtraArgs = "extraArgs"
KubeControllerServiceFieldImage = "image"
KubeControllerServiceFieldServiceClusterIPRange = "serviceClusterIPRange"
)
type KubeControllerService struct {
ClusterCIDR string `json:"clusterCIDR,omitempty"`
ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty"`
ClusterCIDR string `json:"clusterCIDR,omitempty"`
ExtraArgs []string `json:"extraArgs,omitempty"`
Image string `json:"image,omitempty"`
ServiceClusterIPRange string `json:"serviceClusterIPRange,omitempty"`
}

View File

@ -4,11 +4,15 @@ const (
KubeletServiceType = "kubeletService"
KubeletServiceFieldClusterDNSServer = "clusterDNSServer"
KubeletServiceFieldClusterDomain = "clusterDomain"
KubeletServiceFieldExtraArgs = "extraArgs"
KubeletServiceFieldImage = "image"
KubeletServiceFieldInfraContainerImage = "infraContainerImage"
)
type KubeletService struct {
ClusterDNSServer string `json:"clusterDNSServer,omitempty"`
ClusterDomain string `json:"clusterDomain,omitempty"`
InfraContainerImage string `json:"infraContainerImage,omitempty"`
ClusterDNSServer string `json:"clusterDNSServer,omitempty"`
ClusterDomain string `json:"clusterDomain,omitempty"`
ExtraArgs []string `json:"extraArgs,omitempty"`
Image string `json:"image,omitempty"`
InfraContainerImage string `json:"infraContainerImage,omitempty"`
}

View File

@ -1,8 +1,12 @@
package client
const (
KubeproxyServiceType = "kubeproxyService"
KubeproxyServiceType = "kubeproxyService"
KubeproxyServiceFieldExtraArgs = "extraArgs"
KubeproxyServiceFieldImage = "image"
)
type KubeproxyService struct {
ExtraArgs []string `json:"extraArgs,omitempty"`
Image string `json:"image,omitempty"`
}

View File

@ -1,8 +1,12 @@
package client
const (
SchedulerServiceType = "schedulerService"
SchedulerServiceType = "schedulerService"
SchedulerServiceFieldExtraArgs = "extraArgs"
SchedulerServiceFieldImage = "image"
)
type SchedulerService struct {
ExtraArgs []string `json:"extraArgs,omitempty"`
Image string `json:"image,omitempty"`
}