class V1::Remote::Descriptor

Defined in:

v1/remote/descriptor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(fetcher, v1, manifest, platform) #

[View source]

Instance Method Detail

def digest(*args, **options) #

[View source]
def digest(*args, **options, &block) #

[View source]
def image #

Image converts the Descriptor into a v1.Image.

If the fetched artifact is already an image, it will just return it.

If the fetched artifact is an index, it will attempt to resolve the index to a child image with the appropriate platform.

See WithPlatform to set the desired platform.


[View source]
def image_index #

ImageIndex converts the Descriptor into a v1.ImageIndex.


[View source]
def manifest : Slice(UInt8) #

[View source]
def media_type(*args, **options) #

[View source]
def media_type(*args, **options, &block) #

[View source]
def platform : V1::Platform #

[View source]
def remote_image #

[View source]
def remote_index #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &block) #

[View source]