class Name::Repository

Overview

Stores a docker repository name in a structured form.

Direct Known Subclasses

Defined in:

name/repository.cr

Constant Summary

DEFAULT_NAMESPACE = "library"
REPOSITORY_CHARS = "abcdefghijklmnopqrstuvwxyz0123456789_-./"

Constructors

Instance Method Summary

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 #

[View source]
def hash(hasher) #

def identifier : String #

[View source]
def name #

[View source]
def registry : Name::Registry #

[View source]
def repo_str #

Returns the repository component of the Repository


[View source]
def scope(action) #

scope returns the scope required to perform the given action on the registry.


[View source]
def to_s #

Returns the name from which the Repository was dervied.


[View source]