module V1::Remote::Transport

Extended Modules

Defined in:

v1/remote/transport/basic.cr
v1/remote/transport/bearer.cr
v1/remote/transport/error.cr
v1/remote/transport/ping.cr
v1/remote/transport/scope.cr
v1/remote/transport/transport.cr

Constant Summary

ANONYMOUS = Challenge["anonymous"]
BASIC = Challenge["basic"]
BEARER = Challenge["bearer"]
CATALOG_SCOPE = "catalog"
DELETE_SCOPE = PUSH_SCOPE

For now DELETE is PUSH, which is the read/write ACL.

PULL_SCOPE = "pull"

Scopes suitable to qualify each Repository

PUSH_SCOPE = "push,pull"
TRANSPORT_NAME = "crystal-containerregistry"

Class Method Summary

Instance Method Summary

Class Method Detail

def self.check_error(resp, *codes) : RegistryError? #

check_error returns a structured error if the response status is not in codes.


[View source]
def self.verbose_http #

[View source]
def self.verbose_http=(verbose_http) #

[View source]

Instance Method Detail

def new_transport(reg : Name::Registry, auth : Authn::Authenticator, client : Cossack::Client, scopes : Array(String)) #

[View source]