mirror of
https://github.com/rancher/types.git
synced 2025-07-02 08:21:48 +00:00
commit
d76110dec7
@ -68,6 +68,7 @@ type MachineStatus struct {
|
||||
SSHUser string `json:"sshUser,omitempty"`
|
||||
SSHPrivateKey string `json:"sshPrivateKey,omitempty"`
|
||||
ExtractedConfig string `json:"extractedConfig,omitempty"`
|
||||
Address string `json:"address,omitempty"`
|
||||
}
|
||||
|
||||
type MachineCondition struct {
|
||||
|
@ -6,6 +6,7 @@ import (
|
||||
|
||||
const (
|
||||
MachineType = "machine"
|
||||
MachineFieldAddress = "address"
|
||||
MachineFieldAllocatable = "allocatable"
|
||||
MachineFieldAmazonEC2Config = "amazonEc2Config"
|
||||
MachineFieldAnnotations = "annotations"
|
||||
@ -61,6 +62,7 @@ const (
|
||||
|
||||
type Machine struct {
|
||||
types.Resource
|
||||
Address string `json:"address,omitempty"`
|
||||
Allocatable map[string]string `json:"allocatable,omitempty"`
|
||||
AmazonEC2Config *AmazonEC2Config `json:"amazonEc2Config,omitempty"`
|
||||
Annotations map[string]string `json:"annotations,omitempty"`
|
||||
|
@ -2,6 +2,7 @@ package client
|
||||
|
||||
const (
|
||||
MachineStatusType = "machineStatus"
|
||||
MachineStatusFieldAddress = "address"
|
||||
MachineStatusFieldAllocatable = "allocatable"
|
||||
MachineStatusFieldCapacity = "capacity"
|
||||
MachineStatusFieldConditions = "conditions"
|
||||
@ -21,6 +22,7 @@ const (
|
||||
)
|
||||
|
||||
type MachineStatus struct {
|
||||
Address string `json:"address,omitempty"`
|
||||
Allocatable map[string]string `json:"allocatable,omitempty"`
|
||||
Capacity map[string]string `json:"capacity,omitempty"`
|
||||
Conditions []NodeCondition `json:"conditions,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user