Represents generic information about swarm. SwarmInfo

interface SwarmInfo {
    Cluster?: null | ClusterInfo;
    ControlAvailable?: boolean;
    Error?: string;
    LocalNodeState?: LocalNodeState;
    Managers?: null | number;
    NodeAddr?: string;
    NodeID?: string;
    Nodes?: null | number;
    RemoteManagers?: null | PeerNode[];
}

Properties

Cluster?: null | ClusterInfo
ControlAvailable?: boolean
Error?: string
LocalNodeState?: LocalNodeState
Managers?: null | number

Total number of managers in the swarm.

NodeAddr?: string

IP address at which this node can be reached by other nodes in the swarm.

NodeID?: string

Unique identifier of for this node in the swarm.

Nodes?: null | number

Total number of nodes in the swarm.

RemoteManagers?: null | PeerNode[]

List of ID's and addresses of other managers in the swarm.