class Name::Tag

Overview

Stores a docker repository tag in a structured form.

Defined in:

name/tag.cr

Constant Summary

DEFAULT_TAG = "latest"
TAG_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789_-.ABCDEFGHIJKLMNOPQRSTUVWXYZ"

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 = false) #

[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 hash(hasher) #

def identifier #

[View source]
def name #

[View source]
def scope(action : String) #

scope returns teh scope required to perform the given action on the tag.


[View source]
def tag #

[View source]
def to_s #

[View source]