struct Swarmy::Service

Defined in:

swarmy/models.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.from_docker_json(raw : String) : Service #

def self.new(id : String, name : String, mode : String, image : String, ports : String, running : Int32, desired : Int32) #

Class Method Detail

def self.parse_replicas(text : String) : Tuple(Int32, Int32) #

Instance Method Detail

def desired : Int32 #

def health : Health #

def id : String #

def image : String #

def mode : String #

def name : String #

def ports : String #

def replicas : String #

def running : Int32 #