"""
Copyright (c) 2015 Red Hat, Inc
All rights reserved.

This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""

TASK_STATES = {
    'FREE': 0,
    'OPEN': 1,
    'CLOSED': 2,
    'CANCELED': 3,
    'ASSIGNED': 4,
    'FAILED': 5,
}

BUILD_STATES = {
    'BUILDING': 0,
    'COMPLETE': 1,
    'DELETED': 2,
    'FAILED': 3,
    'CANCELED': 4,
}

CHECKSUM_TYPES = {
    0: 'md5',
    1: 'sha1',
    2: 'sha256',

    'md5': 0,
    'sha1': 1,
    'sha256': 2,
}

TASK_STATES.update({value: name for name, value in TASK_STATES.items()})


class ClientSession(object):
    def __init__(self, hub, opts=None):
        raise ImportError("No module named koji")


class PathInfo(object):
    def __init__(self, topdir=None):
        raise ImportError("No module named koji")


class GenericError(Exception):
    pass
