class Swm::Cluster
- Swm::Cluster
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
docker/cluster.crConstructors
- .load_or_initialize(id : String, client : DockerClient) : Cluster
- .new(name : String, client : DockerClient, use_local_ips : Bool = false)
- .new(pull : JSON::PullParser)
Class Method Summary
- .all
- .filename(id : String) : String
- .find(id_or_name : String) : Cluster | Nil
- .load(id : String) : Cluster | Nil
Instance Method Summary
- #fetch_id(client)
- #fetch_nodes(client : DockerClient)
- #find_node(name : String) : Node | Nil
- #id : String
- #load_nodes : Array(Node)
- #name : String | Nil
- #nodes : Array(Node)
- #random_manager_node
- #rm!
- #to_h
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
- #use_local_ips : Bool
Constructor Detail
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
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
.