1
0
mirror of https://github.com/rancher/types.git synced 2025-08-11 09:21:33 +00:00

generated changes

This commit is contained in:
Daishan Peng 2017-11-13 18:13:37 -07:00
parent c4c28a9789
commit 0edd94e971
8 changed files with 86 additions and 103 deletions

View File

@ -6,17 +6,17 @@ import (
)
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AKSConfig) DeepCopyInto(out *AKSConfig) {
func (in *AzureKubernetesServiceConfig) DeepCopyInto(out *AzureKubernetesServiceConfig) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSConfig.
func (in *AKSConfig) DeepCopy() *AKSConfig {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureKubernetesServiceConfig.
func (in *AzureKubernetesServiceConfig) DeepCopy() *AzureKubernetesServiceConfig {
if in == nil {
return nil
}
out := new(AKSConfig)
out := new(AzureKubernetesServiceConfig)
in.DeepCopyInto(out)
return out
}
@ -213,21 +213,21 @@ func (in *ClusterNodeList) DeepCopyObject() runtime.Object {
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) {
*out = *in
if in.GKEConfig != nil {
in, out := &in.GKEConfig, &out.GKEConfig
if in.GoogleKubernetesEngineConfig != nil {
in, out := &in.GoogleKubernetesEngineConfig, &out.GoogleKubernetesEngineConfig
if *in == nil {
*out = nil
} else {
*out = new(GKEConfig)
*out = new(GoogleKubernetesEngineConfig)
(*in).DeepCopyInto(*out)
}
}
if in.AKSConfig != nil {
in, out := &in.AKSConfig, &out.AKSConfig
if in.AzureKubernetesServiceConfig != nil {
in, out := &in.AzureKubernetesServiceConfig, &out.AzureKubernetesServiceConfig
if *in == nil {
*out = nil
} else {
*out = new(AKSConfig)
*out = new(AzureKubernetesServiceConfig)
**out = **in
}
}
@ -313,7 +313,7 @@ func (in *ETCDService) DeepCopy() *ETCDService {
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *GKEConfig) DeepCopyInto(out *GKEConfig) {
func (in *GoogleKubernetesEngineConfig) DeepCopyInto(out *GoogleKubernetesEngineConfig) {
*out = *in
if in.Labels != nil {
in, out := &in.Labels, &out.Labels
@ -322,16 +322,15 @@ func (in *GKEConfig) DeepCopyInto(out *GKEConfig) {
(*out)[key] = val
}
}
out.UpdateConfig = in.UpdateConfig
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEConfig.
func (in *GKEConfig) DeepCopy() *GKEConfig {
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleKubernetesEngineConfig.
func (in *GoogleKubernetesEngineConfig) DeepCopy() *GoogleKubernetesEngineConfig {
if in == nil {
return nil
}
out := new(GKEConfig)
out := new(GoogleKubernetesEngineConfig)
in.DeepCopyInto(out)
return out
}

View File

@ -1,8 +0,0 @@
package client
const (
AKSConfigType = "aksConfig"
)
type AKSConfig struct {
}

View File

@ -0,0 +1,8 @@
package client
const (
AzureKubernetesServiceConfigType = "azureKubernetesServiceConfig"
)
type AzureKubernetesServiceConfig struct {
}

View File

@ -5,35 +5,35 @@ import (
)
const (
ClusterType = "cluster"
ClusterFieldAKSConfig = "aksConfig"
ClusterFieldAPIVersion = "apiVersion"
ClusterFieldAnnotations = "annotations"
ClusterFieldCreated = "created"
ClusterFieldGKEConfig = "gkeConfig"
ClusterFieldKind = "kind"
ClusterFieldLabels = "labels"
ClusterFieldName = "name"
ClusterFieldNamespace = "namespace"
ClusterFieldRKEConfig = "rkeConfig"
ClusterFieldRemoved = "removed"
ClusterFieldUuid = "uuid"
ClusterType = "cluster"
ClusterFieldAPIVersion = "apiVersion"
ClusterFieldAnnotations = "annotations"
ClusterFieldAzureKubernetesServiceConfig = "azureKubernetesServiceConfig"
ClusterFieldCreated = "created"
ClusterFieldGoogleKubernetesEngineConfig = "googleKubernetesEngineConfig"
ClusterFieldKind = "kind"
ClusterFieldLabels = "labels"
ClusterFieldName = "name"
ClusterFieldNamespace = "namespace"
ClusterFieldRKEConfig = "rkeConfig"
ClusterFieldRemoved = "removed"
ClusterFieldUuid = "uuid"
)
type Cluster struct {
types.Resource
AKSConfig *AKSConfig `json:"aksConfig,omitempty"`
APIVersion string `json:"apiVersion,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
Created string `json:"created,omitempty"`
GKEConfig *GKEConfig `json:"gkeConfig,omitempty"`
Kind string `json:"kind,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
RKEConfig *RKEConfig `json:"rkeConfig,omitempty"`
Removed string `json:"removed,omitempty"`
Uuid string `json:"uuid,omitempty"`
APIVersion string `json:"apiVersion,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
AzureKubernetesServiceConfig *AzureKubernetesServiceConfig `json:"azureKubernetesServiceConfig,omitempty"`
Created string `json:"created,omitempty"`
GoogleKubernetesEngineConfig *GoogleKubernetesEngineConfig `json:"googleKubernetesEngineConfig,omitempty"`
Kind string `json:"kind,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
RKEConfig *RKEConfig `json:"rkeConfig,omitempty"`
Removed string `json:"removed,omitempty"`
Uuid string `json:"uuid,omitempty"`
}
type ClusterCollection struct {
types.Collection

View File

@ -1,14 +1,14 @@
package client
const (
ClusterSpecType = "clusterSpec"
ClusterSpecFieldAKSConfig = "aksConfig"
ClusterSpecFieldGKEConfig = "gkeConfig"
ClusterSpecFieldRKEConfig = "rkeConfig"
ClusterSpecType = "clusterSpec"
ClusterSpecFieldAzureKubernetesServiceConfig = "azureKubernetesServiceConfig"
ClusterSpecFieldGoogleKubernetesEngineConfig = "googleKubernetesEngineConfig"
ClusterSpecFieldRKEConfig = "rkeConfig"
)
type ClusterSpec struct {
AKSConfig *AKSConfig `json:"aksConfig,omitempty"`
GKEConfig *GKEConfig `json:"gkeConfig,omitempty"`
RKEConfig *RKEConfig `json:"rkeConfig,omitempty"`
AzureKubernetesServiceConfig *AzureKubernetesServiceConfig `json:"azureKubernetesServiceConfig,omitempty"`
GoogleKubernetesEngineConfig *GoogleKubernetesEngineConfig `json:"googleKubernetesEngineConfig,omitempty"`
RKEConfig *RKEConfig `json:"rkeConfig,omitempty"`
}

View File

@ -1,34 +0,0 @@
package client
const (
GKEConfigType = "gkeConfig"
GKEConfigFieldClusterIpv4Cidr = "clusterIpv4Cidr"
GKEConfigFieldCredentialPath = "credentialPath"
GKEConfigFieldDescription = "description"
GKEConfigFieldDiskSizeGb = "diskSizeGb"
GKEConfigFieldEnableAlphaFeature = "enableAlphaFeature"
GKEConfigFieldInitialClusterVersion = "initialClusterVersion"
GKEConfigFieldInitialNodeCount = "initialNodeCount"
GKEConfigFieldLabels = "labels"
GKEConfigFieldMachineType = "machineType"
GKEConfigFieldNodePoolID = "nodePoolID"
GKEConfigFieldProjectID = "projectID"
GKEConfigFieldUpdateConfig = "updateConfig"
GKEConfigFieldZone = "zone"
)
type GKEConfig struct {
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
CredentialPath string `json:"credentialPath,omitempty"`
Description string `json:"description,omitempty"`
DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
EnableAlphaFeature bool `json:"enableAlphaFeature,omitempty"`
InitialClusterVersion string `json:"initialClusterVersion,omitempty"`
InitialNodeCount int64 `json:"initialNodeCount,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
MachineType string `json:"machineType,omitempty"`
NodePoolID string `json:"nodePoolID,omitempty"`
ProjectID string `json:"projectID,omitempty"`
UpdateConfig gkeUpdateConfig `json:"updateConfig,omitempty"`
Zone string `json:"zone,omitempty"`
}

View File

@ -1,14 +0,0 @@
package client
const (
gkeUpdateConfigType = "gkeUpdateConfig"
gkeUpdateConfigFieldMasterVersion = "masterVersion"
gkeUpdateConfigFieldNodeCount = "nodeCount"
gkeUpdateConfigFieldNodeVersion = "nodeVersion"
)
type gkeUpdateConfig struct {
MasterVersion string `json:"masterVersion,omitempty"`
NodeCount int64 `json:"nodeCount,omitempty"`
NodeVersion string `json:"nodeVersion,omitempty"`
}

View File

@ -0,0 +1,32 @@
package client
const (
GoogleKubernetesEngineConfigType = "googleKubernetesEngineConfig"
GoogleKubernetesEngineConfigFieldClusterIpv4Cidr = "clusterIpv4Cidr"
GoogleKubernetesEngineConfigFieldCredentialPath = "credentialPath"
GoogleKubernetesEngineConfigFieldDescription = "description"
GoogleKubernetesEngineConfigFieldDiskSizeGb = "diskSizeGb"
GoogleKubernetesEngineConfigFieldEnableAlphaFeature = "enableAlphaFeature"
GoogleKubernetesEngineConfigFieldLabels = "labels"
GoogleKubernetesEngineConfigFieldMachineType = "machineType"
GoogleKubernetesEngineConfigFieldMasterVersion = "masterVersion"
GoogleKubernetesEngineConfigFieldNodeCount = "nodeCount"
GoogleKubernetesEngineConfigFieldNodeVersion = "nodeVersion"
GoogleKubernetesEngineConfigFieldProjectID = "projectID"
GoogleKubernetesEngineConfigFieldZone = "zone"
)
type GoogleKubernetesEngineConfig struct {
ClusterIpv4Cidr string `json:"clusterIpv4Cidr,omitempty"`
CredentialPath string `json:"credentialPath,omitempty"`
Description string `json:"description,omitempty"`
DiskSizeGb int64 `json:"diskSizeGb,omitempty"`
EnableAlphaFeature bool `json:"enableAlphaFeature,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
MachineType string `json:"machineType,omitempty"`
MasterVersion string `json:"masterVersion,omitempty"`
NodeCount int64 `json:"nodeCount,omitempty"`
NodeVersion string `json:"nodeVersion,omitempty"`
ProjectID string `json:"projectID,omitempty"`
Zone string `json:"zone,omitempty"`
}