module Docr::Utils

Defined in:

docr/utils.cr

Constant Summary

Log = ::Log.for(self)

Class Method Summary

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.


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


[View source]