class Docr::Client

Defined in:

docr/client.cr

Constant Summary

Log = ::Log.for(self)
SOCKET_PATHS = [((Path.home / ".docker") / "run") / "docker.sock", Path["/var/run/docker.sock"]]

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(host : String = self.class.detect_host) #

[View source]

Class Method Detail

def self.available? : Bool #

[View source]

Instance Method Detail

def call(method : String, url : String | URI, headers : HTTP::Headers | Nil = nil, body : IO | Slice(UInt8) | String | Nil = nil, &) #

[View source]
def containers : Containers #

[View source]
def host : String #

[View source]
def images : Images #

[View source]