1
0
mirror of https://github.com/rancher/types.git synced 2025-09-23 10:57:13 +00:00

generate changes

This commit is contained in:
Daishan Peng
2018-01-19 13:37:59 -07:00
committed by Darren Shepherd
parent 1fdc0c32b9
commit 2c2b758d35
3 changed files with 44 additions and 38 deletions

View File

@@ -38,6 +38,7 @@ const (
MachineFieldTransitioning = "transitioning"
MachineFieldTransitioningMessage = "transitioningMessage"
MachineFieldUnschedulable = "unschedulable"
MachineFieldUseInternalIPAddress = "useInternalIpAddress"
MachineFieldUuid = "uuid"
MachineFieldVolumesAttached = "volumesAttached"
MachineFieldVolumesInUse = "volumesInUse"
@@ -77,6 +78,7 @@ type Machine struct {
Transitioning string `json:"transitioning,omitempty"`
TransitioningMessage string `json:"transitioningMessage,omitempty"`
Unschedulable *bool `json:"unschedulable,omitempty"`
UseInternalIPAddress *bool `json:"useInternalIpAddress,omitempty"`
Uuid string `json:"uuid,omitempty"`
VolumesAttached map[string]AttachedVolume `json:"volumesAttached,omitempty"`
VolumesInUse []string `json:"volumesInUse,omitempty"`

View File

@@ -1,24 +1,26 @@
package client
const (
MachineConfigType = "machineConfig"
MachineConfigFieldAnnotations = "annotations"
MachineConfigFieldDescription = "description"
MachineConfigFieldDisplayName = "displayName"
MachineConfigFieldLabels = "labels"
MachineConfigFieldMachineTemplateId = "machineTemplateId"
MachineConfigFieldNodeSpec = "nodeSpec"
MachineConfigFieldRequestedHostname = "requestedHostname"
MachineConfigFieldRole = "role"
MachineConfigType = "machineConfig"
MachineConfigFieldAnnotations = "annotations"
MachineConfigFieldDescription = "description"
MachineConfigFieldDisplayName = "displayName"
MachineConfigFieldLabels = "labels"
MachineConfigFieldMachineTemplateId = "machineTemplateId"
MachineConfigFieldNodeSpec = "nodeSpec"
MachineConfigFieldRequestedHostname = "requestedHostname"
MachineConfigFieldRole = "role"
MachineConfigFieldUseInternalIPAddress = "useInternalIpAddress"
)
type MachineConfig struct {
Annotations map[string]string `json:"annotations,omitempty"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
MachineTemplateId string `json:"machineTemplateId,omitempty"`
NodeSpec *NodeSpec `json:"nodeSpec,omitempty"`
RequestedHostname string `json:"requestedHostname,omitempty"`
Role []string `json:"role,omitempty"`
Annotations map[string]string `json:"annotations,omitempty"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName,omitempty"`
Labels map[string]string `json:"labels,omitempty"`
MachineTemplateId string `json:"machineTemplateId,omitempty"`
NodeSpec *NodeSpec `json:"nodeSpec,omitempty"`
RequestedHostname string `json:"requestedHostname,omitempty"`
Role []string `json:"role,omitempty"`
UseInternalIPAddress *bool `json:"useInternalIpAddress,omitempty"`
}

View File

@@ -1,28 +1,30 @@
package client
const (
MachineSpecType = "machineSpec"
MachineSpecFieldClusterId = "clusterId"
MachineSpecFieldDescription = "description"
MachineSpecFieldDisplayName = "displayName"
MachineSpecFieldMachineTemplateId = "machineTemplateId"
MachineSpecFieldPodCidr = "podCidr"
MachineSpecFieldProviderId = "providerId"
MachineSpecFieldRequestedHostname = "requestedHostname"
MachineSpecFieldRole = "role"
MachineSpecFieldTaints = "taints"
MachineSpecFieldUnschedulable = "unschedulable"
MachineSpecType = "machineSpec"
MachineSpecFieldClusterId = "clusterId"
MachineSpecFieldDescription = "description"
MachineSpecFieldDisplayName = "displayName"
MachineSpecFieldMachineTemplateId = "machineTemplateId"
MachineSpecFieldPodCidr = "podCidr"
MachineSpecFieldProviderId = "providerId"
MachineSpecFieldRequestedHostname = "requestedHostname"
MachineSpecFieldRole = "role"
MachineSpecFieldTaints = "taints"
MachineSpecFieldUnschedulable = "unschedulable"
MachineSpecFieldUseInternalIPAddress = "useInternalIpAddress"
)
type MachineSpec struct {
ClusterId string `json:"clusterId,omitempty"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName,omitempty"`
MachineTemplateId string `json:"machineTemplateId,omitempty"`
PodCidr string `json:"podCidr,omitempty"`
ProviderId string `json:"providerId,omitempty"`
RequestedHostname string `json:"requestedHostname,omitempty"`
Role []string `json:"role,omitempty"`
Taints []Taint `json:"taints,omitempty"`
Unschedulable *bool `json:"unschedulable,omitempty"`
ClusterId string `json:"clusterId,omitempty"`
Description string `json:"description,omitempty"`
DisplayName string `json:"displayName,omitempty"`
MachineTemplateId string `json:"machineTemplateId,omitempty"`
PodCidr string `json:"podCidr,omitempty"`
ProviderId string `json:"providerId,omitempty"`
RequestedHostname string `json:"requestedHostname,omitempty"`
Role []string `json:"role,omitempty"`
Taints []Taint `json:"taints,omitempty"`
Unschedulable *bool `json:"unschedulable,omitempty"`
UseInternalIPAddress *bool `json:"useInternalIpAddress,omitempty"`
}