Node provides the internal node state as seen by the cluster.
| 74 | |
| 75 | // Node provides the internal node state as seen by the cluster. |
| 76 | type Node struct { |
| 77 | // ID specifies the identity of the node. |
| 78 | ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` |
| 79 | Meta Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta"` |
| 80 | // Spec defines the desired state of the node as specified by the user. |
| 81 | // The system will honor this and will *never* modify it. |
| 82 | Spec NodeSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"` |
| 83 | // Description encapsulated the properties of the Node as reported by the |
| 84 | // agent. |
| 85 | Description *NodeDescription `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` |
| 86 | // Status provides the current status of the node, as seen by the manager. |
| 87 | Status NodeStatus `protobuf:"bytes,5,opt,name=status,proto3" json:"status"` |
| 88 | // ManagerStatus provides the current status of the node's manager |
| 89 | // component, if the node is a manager. |
| 90 | ManagerStatus *ManagerStatus `protobuf:"bytes,6,opt,name=manager_status,json=managerStatus,proto3" json:"manager_status,omitempty"` |
| 91 | // DEPRECATED: Use Attachments to find the ingress network |
| 92 | // The node attachment to the ingress network. |
| 93 | Attachment *NetworkAttachment `protobuf:"bytes,7,opt,name=attachment,proto3" json:"attachment,omitempty"` // Deprecated: Do not use. |
| 94 | // Certificate is the TLS certificate issued for the node, if any. |
| 95 | Certificate Certificate `protobuf:"bytes,8,opt,name=certificate,proto3" json:"certificate"` |
| 96 | // Role is the *observed* role for this node. It differs from the |
| 97 | // desired role set in Node.Spec.Role because the role here is only |
| 98 | // updated after the Raft member list has been reconciled with the |
| 99 | // desired role from the spec. |
| 100 | // |
| 101 | // This field represents the current reconciled state. If an action is |
| 102 | // to be performed, first verify the role in the cert. This field only |
| 103 | // shows the privilege level that the CA would currently grant when |
| 104 | // issuing or renewing the node's certificate. |
| 105 | Role NodeRole `protobuf:"varint,9,opt,name=role,proto3,enum=docker.swarmkit.v1.NodeRole" json:"role,omitempty"` |
| 106 | // Attachments enumerates the network attachments for the node to set up an |
| 107 | // endpoint on the node to be used for load balancing. Each overlay |
| 108 | // network, including ingress network, will have an NetworkAttachment. |
| 109 | Attachments []*NetworkAttachment `protobuf:"bytes,10,rep,name=attachments,proto3" json:"attachments,omitempty"` |
| 110 | // VXLANUDPPort specifies the UDP port for VXLAN traffic. |
| 111 | // This information is passed from cluster object to individual nodes. |
| 112 | VXLANUDPPort uint32 `protobuf:"varint,11,opt,name=VXLANUDPPort,proto3" json:"VXLANUDPPort,omitempty"` |
| 113 | } |
| 114 | |
| 115 | func (m *Node) Reset() { *m = Node{} } |
| 116 | func (*Node) ProtoMessage() {} |
nothing calls this directly
no outgoing calls
no test coverage detected