182
182
"""Main client class for accessing Glance resources"""
186
def __init__(self, host, port=None, use_ssl=False):
186
def __init__(self, host, port=None, use_ssl=False, doc_root="/v1"):
188
188
Creates a new client to a Glance API service.
190
190
:param host: The host where Glance resides
191
191
:param port: The port where Glance resides (defaults to 9292)
192
192
:param use_ssl: Should we use HTTPS? (defaults to False)
195
196
port = port or self.DEFAULT_PORT
196
198
super(Client, self).__init__(host, port, use_ssl)
200
def do_request(self, method, action, body=None, headers=None):
202
return super(V1Client, self).do_request(method, action,
200
207
Returns a list of image id/name mappings from Registry