class Name::Tag
- Name::Tag
- Name::Repository
- Name::Registry
- Reference
- Object
Overview
Stores a docker repository tag in a structured form.
Defined in:
name/tag.crConstant Summary
-
DEFAULT_TAG =
"latest"
-
TAG_CHARS =
"abcdefghijklmnopqrstuvwxyz0123456789_-.ABCDEFGHIJKLMNOPQRSTUVWXYZ"
Constructors
Instance Method Summary
- #==(other : self)
-
#as_repository : Name::Repository
Construct a new Repository object from the string representation our parent class (Repository) produces.
- #hash(hasher)
- #identifier
- #name
-
#scope(action : String)
scope returns teh scope required to perform the given action on the tag.
- #tag
- #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.
def scope(action : String)
#
scope returns teh scope required to perform the given action on the tag.