class Name::Digest

Overview

Stores a docker repository digest in a structured form

Defined in:

name/digest.cr

Constant Summary

DIGEST_CHARS = "sh:0123456789abcdef"

These have the form: sha256:<hex string>

Constructors

Instance Method Summary

Instance methods inherited from class Name::Repository

==(other : self) ==, as_repository as_repository, hash(hasher) hash, identifier : String identifier, name name, registry : Name::Registry registry, repo_str repo_str, scope(action) scope, to_s to_s

Constructor methods inherited from class Name::Repository

new(name : String, strict = false) new

Instance methods inherited from class Name::Registry

==(other : self) ==, hash(hasher) hash, insecure : Bool insecure, reg_name reg_name, registry : String registry, rfc1918? rfc1918?, scheme scheme, scope(action : String) scope, strict : Bool strict, to_s to_s

Constructor methods inherited from class Name::Registry

new(name, insecure = false, strict = true) new

Constructor Detail

def self.new(name : String, strict = true) #

[View source]

Instance Method Detail

def ==(other : self) #

def as_repository : Name::Repository #

Construct a new Repository object from the string representation our parent class (Repository) produces. This is a convenience method to allow consumers to stringify the repository portion of a tag or digest without their own format string. We have already validated, and we don't persist strictness.


[View source]
def digest : String #

returns the digest component of the Digest


[View source]
def hash(hasher) #

def identifier : String #

[View source]
def name #

[View source]
def to_s #

[View source]