1
0
mirror of https://github.com/rancher/types.git synced 2025-09-15 22:39:05 +00:00

generated code

This commit is contained in:
moelsayed
2018-01-29 20:48:28 +02:00
parent 04cf104cb2
commit ceeb450b28
3 changed files with 41 additions and 0 deletions

View File

@@ -371,6 +371,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
in.(*PrincipalList).DeepCopyInto(out.(*PrincipalList))
return nil
}, InType: reflect.TypeOf(&PrincipalList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PrivateRegistry).DeepCopyInto(out.(*PrivateRegistry))
return nil
}, InType: reflect.TypeOf(&PrivateRegistry{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Project).DeepCopyInto(out.(*Project))
return nil
@@ -2954,6 +2958,22 @@ func (in *PrincipalList) DeepCopyObject() runtime.Object {
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PrivateRegistry) DeepCopyInto(out *PrivateRegistry) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateRegistry.
func (in *PrivateRegistry) DeepCopy() *PrivateRegistry {
if in == nil {
return nil
}
out := new(PrivateRegistry)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Project) DeepCopyInto(out *Project) {
*out = *in
@@ -3299,6 +3319,11 @@ func (in *RancherKubernetesEngineConfig) DeepCopyInto(out *RancherKubernetesEngi
}
}
in.Authorization.DeepCopyInto(&out.Authorization)
if in.PrivateRegistries != nil {
in, out := &in.PrivateRegistries, &out.PrivateRegistries
*out = make([]PrivateRegistry, len(*in))
copy(*out, *in)
}
return
}

View File

@@ -0,0 +1,14 @@
package client
const (
PrivateRegistryType = "privateRegistry"
PrivateRegistryFieldPassword = "password"
PrivateRegistryFieldURL = "url"
PrivateRegistryFieldUser = "user"
)
type PrivateRegistry struct {
Password string `json:"password,omitempty"`
URL string `json:"url,omitempty"`
User string `json:"user,omitempty"`
}

View File

@@ -8,6 +8,7 @@ const (
RancherKubernetesEngineConfigFieldIgnoreDockerVersion = "ignoreDockerVersion"
RancherKubernetesEngineConfigFieldNetwork = "network"
RancherKubernetesEngineConfigFieldNodes = "nodes"
RancherKubernetesEngineConfigFieldPrivateRegistries = "privateRegistries"
RancherKubernetesEngineConfigFieldSSHKeyPath = "sshKeyPath"
RancherKubernetesEngineConfigFieldServices = "services"
RancherKubernetesEngineConfigFieldSystemImages = "systemImages"
@@ -21,6 +22,7 @@ type RancherKubernetesEngineConfig struct {
IgnoreDockerVersion *bool `json:"ignoreDockerVersion,omitempty"`
Network *NetworkConfig `json:"network,omitempty"`
Nodes []RKEConfigNode `json:"nodes,omitempty"`
PrivateRegistries []PrivateRegistry `json:"privateRegistries,omitempty"`
SSHKeyPath string `json:"sshKeyPath,omitempty"`
Services *RKEConfigServices `json:"services,omitempty"`
SystemImages map[string]string `json:"systemImages,omitempty"`