Skip to content
  • Stavros Sachtouris's avatar
    Enrich/rename astakos client calls with endpoints · 528550d9
    Stavros Sachtouris authored
    Refs: #3874
    
    Kamaki.clients.astakos.AstakosClient is now a high-level client lib that
    offers access to token-authenticated astakos-aquired cached information.
    Users who need an astakos client should use the snf-astakosclient instead.
    
    Usage:
    
     astakos_cache = AstakosClient(<astakos/base/url/with/identity/api>)
     astakos_cache.authenticate(<token>)
     user_info = astakos_cache.user_info()
     compute_endpoints = astakos_cache.get_service_endpoints('compute', 'v2')
    
    Major changes:
    
    Modify ReST call from /im/authenticate to /tokens
    
    New methods as AstakosClient instance cache accessors:
     get_services
     get_service_details
     get_service_endpoints
    
    Method renaiming for existing AstakosClient instance cache accessors:
     info --> user_info
     user --> list_users
    528550d9
To find the state of this project's repository at the time of any of these versions, check out the tags.