module
Docr::Utils
Defined in:
docr/utils.crConstant Summary
-
Log =
::Log.for(self)
Class Method Summary
-
.decode_stream(input : IO, output : IO)
Decode a Docker multiplexed stream into the given output IO.
-
.parse_repository_tag(image : String) : Tuple(String, String)
Parse a Docker image reference into repository and tag.
Class Method Detail
def self.decode_stream(input : IO, output : IO)
#
Decode a Docker multiplexed stream into the given output IO. Each frame: [stream_type(1), padding(3), size(4 big-endian)] followed by payload.
def self.parse_repository_tag(image : String) : Tuple(String, String)
#
Parse a Docker image reference into repository and tag. Examples: "alpine" => {"alpine", "latest"} "alpine:3.18" => {"alpine", "3.18"} "my/repo:v1.0" => {"my/repo", "v1.0"}