1
0
mirror of https://github.com/rancher/types.git synced 2025-07-31 04:49:37 +00:00

Update generated code

This commit is contained in:
Darren Shepherd 2018-04-14 23:43:30 -07:00
parent 61e909a9f9
commit d02dc9d758
4 changed files with 80 additions and 0 deletions

View File

@ -252,6 +252,10 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error {
in.(*CustomConfig).DeepCopyInto(out.(*CustomConfig))
return nil
}, InType: reflect.TypeOf(&CustomConfig{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*DockerInfo).DeepCopyInto(out.(*DockerInfo))
return nil
}, InType: reflect.TypeOf(&DockerInfo{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*DynamicSchema).DeepCopyInto(out.(*DynamicSchema))
return nil
@ -2433,6 +2437,27 @@ func (in *CustomConfig) DeepCopy() *CustomConfig {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DockerInfo) DeepCopyInto(out *DockerInfo) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerInfo.
func (in *DockerInfo) DeepCopy() *DockerInfo {
if in == nil {
return nil
}
out := new(DockerInfo)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *DynamicSchema) DeepCopyInto(out *DynamicSchema) {
*out = *in
@ -4099,6 +4124,15 @@ func (in *NodeStatus) DeepCopyInto(out *NodeStatus) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.DockerInfo != nil {
in, out := &in.DockerInfo, &out.DockerInfo
if *in == nil {
*out = nil
} else {
*out = new(DockerInfo)
(*in).DeepCopyInto(*out)
}
}
return
}

View File

@ -0,0 +1,42 @@
package client
const (
DockerInfoType = "dockerInfo"
DockerInfoFieldArchitecture = "architecture"
DockerInfoFieldCgroupDriver = "cgroupDriver"
DockerInfoFieldDebug = "debug"
DockerInfoFieldDockerRootDir = "dockerRootDir"
DockerInfoFieldDriver = "driver"
DockerInfoFieldExperimentalBuild = "experimentalBuild"
DockerInfoFieldHTTPProxy = "httpProxy"
DockerInfoFieldHTTPSProxy = "httpsProxy"
DockerInfoFieldIndexServerAddress = "indexServerAddress"
DockerInfoFieldKernelVersion = "kernelVersion"
DockerInfoFieldLabels = "labels"
DockerInfoFieldLoggingDriver = "loggingDriver"
DockerInfoFieldName = "name"
DockerInfoFieldNoProxy = "noProxy"
DockerInfoFieldOSType = "osType"
DockerInfoFieldOperatingSystem = "operatingSystem"
DockerInfoFieldServerVersion = "serverVersion"
)
type DockerInfo struct {
Architecture string `json:"architecture,omitempty" yaml:"architecture,omitempty"`
CgroupDriver string `json:"cgroupDriver,omitempty" yaml:"cgroupDriver,omitempty"`
Debug bool `json:"debug,omitempty" yaml:"debug,omitempty"`
DockerRootDir string `json:"dockerRootDir,omitempty" yaml:"dockerRootDir,omitempty"`
Driver string `json:"driver,omitempty" yaml:"driver,omitempty"`
ExperimentalBuild bool `json:"experimentalBuild,omitempty" yaml:"experimentalBuild,omitempty"`
HTTPProxy string `json:"httpProxy,omitempty" yaml:"httpProxy,omitempty"`
HTTPSProxy string `json:"httpsProxy,omitempty" yaml:"httpsProxy,omitempty"`
IndexServerAddress string `json:"indexServerAddress,omitempty" yaml:"indexServerAddress,omitempty"`
KernelVersion string `json:"kernelVersion,omitempty" yaml:"kernelVersion,omitempty"`
Labels []string `json:"labels,omitempty" yaml:"labels,omitempty"`
LoggingDriver string `json:"loggingDriver,omitempty" yaml:"loggingDriver,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
NoProxy string `json:"noProxy,omitempty" yaml:"noProxy,omitempty"`
OSType string `json:"osType,omitempty" yaml:"osType,omitempty"`
OperatingSystem string `json:"operatingSystem,omitempty" yaml:"operatingSystem,omitempty"`
ServerVersion string `json:"serverVersion,omitempty" yaml:"serverVersion,omitempty"`
}

View File

@ -16,6 +16,7 @@ const (
NodeFieldCreatorID = "creatorId"
NodeFieldCustomConfig = "customConfig"
NodeFieldDescription = "description"
NodeFieldDockerInfo = "dockerInfo"
NodeFieldEtcd = "etcd"
NodeFieldExternalIPAddress = "externalIpAddress"
NodeFieldHostname = "hostname"
@ -61,6 +62,7 @@ type Node struct {
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
CustomConfig *CustomConfig `json:"customConfig,omitempty" yaml:"customConfig,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"`
Etcd bool `json:"etcd,omitempty" yaml:"etcd,omitempty"`
ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"`
Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"`

View File

@ -5,6 +5,7 @@ const (
NodeStatusFieldAllocatable = "allocatable"
NodeStatusFieldCapacity = "capacity"
NodeStatusFieldConditions = "conditions"
NodeStatusFieldDockerInfo = "dockerInfo"
NodeStatusFieldExternalIPAddress = "externalIpAddress"
NodeStatusFieldHostname = "hostname"
NodeStatusFieldIPAddress = "ipAddress"
@ -24,6 +25,7 @@ type NodeStatus struct {
Allocatable map[string]string `json:"allocatable,omitempty" yaml:"allocatable,omitempty"`
Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"`
Conditions []NodeCondition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
DockerInfo *DockerInfo `json:"dockerInfo,omitempty" yaml:"dockerInfo,omitempty"`
ExternalIPAddress string `json:"externalIpAddress,omitempty" yaml:"externalIpAddress,omitempty"`
Hostname string `json:"hostname,omitempty" yaml:"hostname,omitempty"`
IPAddress string `json:"ipAddress,omitempty" yaml:"ipAddress,omitempty"`