class ProxyAPI::ContainerGateway

Public Class Methods

new(args) click to toggle source
Calls superclass method
# File lib/proxy_api/container_gateway.rb, line 3
def initialize(args)
  @url = args[:url] + "/container_gateway"
  super args
end

Public Instance Methods

repository_list(args) click to toggle source
# File lib/proxy_api/container_gateway.rb, line 8
def repository_list(args)
  # put '/v2/repository_list/?'
  @url += "/repository_list"
  parse put(args)
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to update the repository list"))
end
user_repository_mapping(args) click to toggle source
# File lib/proxy_api/container_gateway.rb, line 16
def user_repository_mapping(args)
  # put '/v2/user_repository_mapping/?'
  @url += "/user_repository_mapping"
  parse put(args)
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to update the user-repository mapping"))
end
users() click to toggle source
# File lib/proxy_api/container_gateway.rb, line 24
def users
  # get '/v2/users/?'
  @url += "/users"
  @users = parse get
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to get users"))
end