Beispiel #1
0
def upload_log(package_id, firefile, when):
    return api_call(
        '/log', {
            "package": package_id,
            "when": when,
            "firehose": open(firefile, 'r').read()
        })
Beispiel #2
0
def package(package_id):
    obj = load_config()
    return api_call(
        obj, "/package/%s" % (package_id),
        {},
        do_sign=False
    )
Beispiel #3
0
def ping():
    obj = load_config()
    return api_call(obj, '/ping', {
        'node': obj['node_name']
    })
Beispiel #4
0
def echo(data):
    obj = load_config()
    return api_call(obj, '/echo', {
        'node': obj['node_name'],
        'time': dt.datetime.now()
    })
Beispiel #5
0
def aquire():
    obj = load_config()
    return api_call(obj, '/aquire', {
        'node': obj['node_name']
    })
Beispiel #6
0
def result(report):
    obj = load_config()
    return api_call(obj, '/result', {
        'node': obj['node_name'],
        'data': json.dumps(report)
    })
Beispiel #7
0
def finish(job_id):
    obj = load_config()
    return api_call(obj, '/finish', {
        'node': obj['node_name'],
        'job': job_id
    })
Beispiel #8
0
def ping():
    return api_call('/ping', {})
Beispiel #9
0
def upload_log(package_id, firefile, when):
    return api_call('/log', {
        "package": package_id,
        "when": when,
        "firehose": open(firefile, 'r').read()
    })
Beispiel #10
0
def ping():
    return api_call('/ping', {})