class Swm::Cluster

Included Modules

Defined in:

docker/cluster.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.load_or_initialize(id : String, client : DockerClient) : Cluster #

[View source]
def self.new(name : String, client : DockerClient, use_local_ips : Bool = false) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.all #

[View source]
def self.filename(id : String) : String #

[View source]
def self.find(id_or_name : String) : Cluster | Nil #

[View source]
def self.load(id : String) : Cluster | Nil #

[View source]

Instance Method Detail

def fetch_id(client) #

[View source]
def fetch_nodes(client : DockerClient) #

[View source]
def find_node(name : String) : Node | Nil #

[View source]
def id : String #

[View source]
def load_nodes : Array(Node) #

[View source]
def name : String | Nil #

[View source]
def nodes : Array(Node) #

[View source]
def random_manager_node #

[View source]
def rm! #

[View source]
def to_h #

[View source]
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.


[View source]
def use_local_ips : Bool #

[View source]