1. 25 Sep, 2014 1 commit
    • Stavros Sachtouris's avatar
      Add ignore-ssl and ca-certs options to CLI · 96a0b656
      Stavros Sachtouris authored
      Refs #54
      
      Both options are set either in the config file or as runtime
      arguments.
      
      ignore-ssl option allows connections without checking SSL certificates.
      
      The ca-certs option provides a CA file for SSL authentication.
      
      Normally, if no cert files are provided or they are invalid, kamaki
      attempts to connect anyway, and an SSL Error ensues.
      
      If ignore-ssl is set to "on", kamaki connects to servers regardless of
      the existence or validity of a cert file and all SSL errors are ignored.
      
      To help package maintainers to provide the correct CA file for their platform,
      the default path is set in "kamaki/defaults.py" as CACERTS_DEFAULT_PATH
      96a0b656
  2. 21 May, 2014 5 commits
    • Stavros Sachtouris's avatar
      Rename base_url,auth_base to endpoint_url,astakos · 998d7e25
      Stavros Sachtouris authored
      Refs #9
      
      This change affects both the kamaki.cli and kamaki.clients hierarchies
      It is of semantic significance only
      Backwards compatibility is preserved in kamaki.clients, so that
      old code using base_url instead of endpoint_url will still work.
      998d7e25
    • Stavros Sachtouris's avatar
      Modify module methods in kamaki.cli classes · 97659673
      Stavros Sachtouris authored
      Refs #9
      
      Renamed to comply with pep8:
      kamaki.cli.config.Config: _cloud_name --> cloud_name
      kamaki.cli.shell: _init_shell --> init_shell
      
      Merged with caller methods because they where used only once:
      kamaki.cli: _construct_command_syntax, _num_of_matching_terms
      kamaki.cli.utils: _parse_with_regex
      kamaki.cli.one_cmd: _get_cmd_tree_from_spec, _get_best_match_from_cmd_tree
      
      Remove now unused method _num_of_matching_terms
      97659673
    • Stavros Sachtouris's avatar
      Move default argument initilization to kamaki.cli · 596997be
      Stavros Sachtouris authored
      Default arguments where set in kamaki.cli.arguments using the
      global variable "_arguments". This was a semantic mistake, a
      pep8 violation and arguably bad style.  The "_config_arg"
      variable was also global and auxiliary to "_arguments"
      initialization.
      
      The "_argument" and "_config_arg" global vars are removed from
      kamaki.cli.arguments. The initialization is now an internal
      proccess in the "main" function of kamaki.cli, which is the
      method responsible for setting up all kamaki interfaces.
      596997be
    • Stavros Sachtouris's avatar
      18d00eed
    • Stavros Sachtouris's avatar
      1040a59e
  3. 01 Apr, 2014 1 commit
    • Stavros Sachtouris's avatar
      Restrict header encoding to specific headers · 85015403
      Stavros Sachtouris authored
      In ResponseManager, do not encode all headers to unicode.
      Encode ONLY the headers mentioned by the caller method.
      
      A caller method can use the headers_to_decode and header_prefices
      property-getter/setter methods to set a list of header keys and
      a list of header key prefices for encoding. All keys are case
      insensitive.
      85015403
  4. 05 Mar, 2014 1 commit
  5. 24 Feb, 2014 1 commit
  6. 29 Nov, 2013 2 commits
  7. 18 Nov, 2013 1 commit
  8. 15 Nov, 2013 1 commit
  9. 02 Oct, 2013 1 commit
  10. 24 Sep, 2013 1 commit
  11. 23 Aug, 2013 1 commit
  12. 16 Jul, 2013 1 commit
  13. 15 Jul, 2013 1 commit
  14. 12 Jul, 2013 1 commit
  15. 08 Jul, 2013 1 commit
    • Stavros Sachtouris's avatar
      Exclude unset optional cmd groups · 320aac17
      Stavros Sachtouris authored
      Refs: #4114
      
      E.g. the cyclades spec package contains the non-optional group "server" and
      the optional group "floatingip". Now kamaki can load only the "server"
      group, except if the user requests the loading of "floatingip" group too.
      320aac17
  16. 28 Jun, 2013 1 commit
  17. 26 Jun, 2013 1 commit
  18. 25 Jun, 2013 3 commits
  19. 06 Jun, 2013 2 commits
  20. 05 Jun, 2013 1 commit
  21. 03 Jun, 2013 2 commits
    • Stavros Sachtouris's avatar
      Use explicitely set services urls if no auth_url · 54b6be76
      Stavros Sachtouris authored
      Refs: #3874
      
      In current configuration, kamaki checks for auth_url. If that fails,
      it raises an error. If it is not set, it prints a warning and attempts
      to read the <service>.url option from the configuration file.
      
      Service urls: astakos.url, pithos.url, cyclades.url, plankton.url
      54b6be76
    • Stavros Sachtouris's avatar
      Use explicitely set services urls if no auth_url · 8cec3671
      Stavros Sachtouris authored
      Refs: #3874
      
      In current configuration, kamaki checks for auth_url. If that fails,
      it raises an error. If it is not set, it prints a warning and attempts
      to read the <service>.url option from the configuration file.
      
      Service urls: astakos.url, pithos.url, cyclades.url, plankton.url
      8cec3671
  22. 31 May, 2013 1 commit
    • Stavros Sachtouris's avatar
      Get endpoint urls for all CLI operations · f724cd35
      Stavros Sachtouris authored
      Refs: #3874
      
      Use kamaki.clients.astakos.AstakosClient as a cached astakos client to get
      user information and, most importantly, endpoints. Allow users to authenticate
      multiple tokens on the same session. In every session there must be at most
      one authentication per user/token.
      
      Major change: top kamaki.cli.commands class now contains a base_auth field
      with the cached authenticating client. All urls are drained from this field.
      f724cd35
  23. 15 May, 2013 1 commit
  24. 13 May, 2013 1 commit
    • Stavros Sachtouris's avatar
      Allow runtime args when invoking interactive shell · e3c2c890
      Stavros Sachtouris authored
      Refs: #3716
      
      Behavior After This:
      kamaki -XXX -YY ... parses -XXX -YY
      If not recognized: syntax error
      If recognized, group them into shell args (e.g. -h) and command args (e.g. -d)
      Whenever a command is run in this shell instance, apply the command args
      
      Practically, users may pass the -d or -v args to the shell and enjoy streaming
      debug or verbosity logs, without having to pass -d or -v args on each command
      e3c2c890
  25. 10 May, 2013 1 commit
  26. 02 Apr, 2013 1 commit
    • Stavros Sachtouris's avatar
      Create an image compute cmd group, make it work · 8741c407
      Stavros Sachtouris authored
      - image compute group contains all Compute Image API commands, as oposed to
      Plankton API commands.
      
      - definition of a kamaki cli command slightly changed: a command with
      subcommands can have a class without being a command itself, as long as it has
      subcommands! Thus a subcommand group can be defined with docs and everything.
      
      - image public is not image list (docs not updated yet)
      8741c407
  27. 21 Mar, 2013 1 commit
  28. 08 Feb, 2013 1 commit
  29. 03 Jan, 2013 2 commits
  30. 19 Dec, 2012 1 commit