add machine
Component: cr-action:add machine (v1.0.0)
Added by: gfursin (2019-10-16 07:57:14)
Authors: Grigori Fursin
License: BSD 3-clause (code) and CC BY-SA 4.0 (data)
Source: GitHub
Creation date: 2016-09-26 11:28:05
CID: 081173242a88bc94:864934eb18ee486ecr-action:add machine  )

Sign up here to be notified when new results are reproduced or new CodeReef components are shared!

How to get and run stable version (under development):
  pip install codereef
  cr download module:machine --version=1.0.0 --all
  ck add machine --help

How to get and run development version:
  pip install ck
  ck pull repo:ck-env
  ck add machine --help

How to run from Python:
   import ck.kernel as ck

   r=ck.access({'action':'add',
                'module_uoa':'machine',
                ... See JSON API below ...
               })
   if r['return']>0: return r
   ...
Info about the CK module with this action: machine
Workflow framework: CK
Development repository: ck-env
Module description: description of a given machine for crowd-benchmarking and crowd-tuning
Workflow:
API Python code: Link
JSON API:
        "    Input:  {
              (data_uoa) or (alias)        - force name of CK entry to store description of this machine
                                             (if empty, suggest automatically)

              (host_os)                    - host OS (detect, if omitted)
              (target_os)                  - OS module to check (if omitted, analyze host)
              (device_id)                  - device id if remote (such as adb)

              (use_host)                   - if 'yes', configure host as target

              (type) 
                or
              (access_type)                - access type to the machine: 
                                                 \"android\"
                                                 \"mingw\"
                                                 \"wa_android\"
                                                 \"wa_linux\"
                                                 \"ck_node\"
                                                 \"ssh\"
                                                 \"rpc\"
                                                 \"avro\"
                                                 \"cluster\"
                                                 \"quantum\"

                 Extra options per access type:

                   * avro:
                       avro_config         - full path to JSON configuration file

                   * cluster:
                       cluster_config      - full path to JSON configuration file
                           or
                       config_file

                   * quantum:
                       access_key          - full path to access key file if needed - will be available via env CK_QCK_ACCESS_KEY_FILE
                       user_login          - user login if needed - will be available via env CK_QCK_ACCESS_LOGIN
                       user_password       - user password if needed - will be available via env CK_QCK_ACCESS_PASSWORD

              (share)                      - if 'yes', share public info about platform with the community via cknowledge.org/repo
            }

    Output: {
              return       - return code =  0, if successful
                                         >  0, if error
              (error)      - error text if return > 0
            }

"
       


All versions:


Public comments

    Please log in to add your comment!


If you notice inapropriate content that should not be here, please report us as soon as possible and we will try to remove it within 48 hours!