Struct HostedNodeInfo
used for validating that cluster node definitions are valid for a hosting environment.
Namespace: Neon.Kube.Hosting
Assembly: Neon.Kube.dll
Syntax
public struct HostedNodeInfo
Constructors
HostedNodeInfo(string, string, int, long)
Constructor.
Declaration
public HostedNodeInfo(string name, string role, int vCpus, long memory)
Parameters
Type | Name | Description |
---|---|---|
string | name | Specifies the node name. |
string | role | Specifies the node role, one of the NodeRole values. |
int | vCpus | Specifies the number of virtual CPUs assigned to the node. |
long | memory | Specifies the bytes of memory assigned to the node. |
Properties
Memory
Returns the bytes of memory assigned to the node.
Declaration
public long Memory { readonly get; set; }
Property Value
Type | Description |
---|---|
long |
Name
Returns the node name.
Declaration
public readonly string Name { get; }
Property Value
Type | Description |
---|---|
string |
Role
Returns the node role, one of the NodeRole values.
Declaration
public readonly string Role { get; }
Property Value
Type | Description |
---|---|
string |
VCpus
Returns the number of virtual CPUs assigned to the node.
Declaration
public readonly int VCpus { get; }
Property Value
Type | Description |
---|---|
int |