class V1::Tarball::Layer

Included Modules

Defined in:

v1/tarball/layer.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module V1::Layer

compressed : IO compressed, diff_id : V1::Hash diff_id, digest : V1::Hash digest, media_type : Types::MediaType media_type, size : Int64 size, uncompressed : IO uncompressed

Constructor Detail

def self.new(digest, diff_id, size, opener, compressed) #

[View source]

Class Method Detail

def self.compute_diff_id(opener : Opener, compressed : Bool) #

[View source]
def self.compute_digest(opener : Opener, compressed : Bool) #

[View source]
def self.from_file(path : String) #

from_file returns a V1::Layer given a tarball


[View source]
def self.from_opener(opener : Opener) #

from_opener returns a V1::Layer given an opener function


[View source]
def self.from_reader(io : IO) #

from_reader returns a V1::Layer given an IO


[View source]

Instance Method Detail

def compressed #

[View source]
def diff_id : V1::Hash #

[View source]
def digest : V1::Hash #

[View source]
def media_type #

[View source]
def opener : Opener #

[View source]
def size : Int64 #

[View source]
def uncompressed #

[View source]