class Name::Digest
- Name::Digest
- Name::Repository
- Name::Registry
- Reference
- Object
Overview
Stores a docker repository digest in a structured form
Defined in:
name/digest.crConstant Summary
-
DIGEST_CHARS =
"sh:0123456789abcdef"
-
These have the form: sha256:<hex string>
Constructors
Instance Method Summary
- #==(other : self)
-
#as_repository : Name::Repository
Construct a new Repository object from the string representation our parent class (Repository) produces.
-
#digest : String
returns the digest component of the Digest
- #hash(hasher)
- #identifier : String
- #name
- #to_s
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
Instance Method Detail
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.