class

Swm::Cluster

Inherits JSON::Serializable < Reference < Object

Constructors

load_or_initialize(id : String, client : DockerClient) : Cluster
Source
new(name : String, client : DockerClient, use_local_ips : Bool = false)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

filename(id : String) : String
Source
find(id_or_name : String) : Cluster | Nil
Source
load(id : String) : Cluster | Nil
Source

Instance methods

fetch_id(client)
Source
fetch_nodes(client : DockerClient)
Source
find_node(name : String) : Node | Nil
Source
load_nodes
Source
name
Source
nodes
Source
random_manager_node
Source
to_h
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
use_local_ips
Source