コード例 #1
0
ファイル: __init__.py プロジェクト: jesusaurus/reclass
def get_inventory(storage_type, inventory_base_uri, nodes_uri, classes_uri,
                  class_mappings):
    nodes_uri, classes_uri = path_mangler(inventory_base_uri, nodes_uri,
                                          classes_uri)
    storage = get_storage(storage_type, nodes_uri, classes_uri,
                          class_mappings)
    return storage.inventory()
コード例 #2
0
ファイル: __init__.py プロジェクト: jesusaurus/reclass
def get_nodeinfo(storage_type, inventory_base_uri, nodes_uri, classes_uri,
                 nodename, class_mappings):
    nodes_uri, classes_uri = path_mangler(inventory_base_uri, nodes_uri,
                                          classes_uri)
    storage = get_storage(storage_type, nodes_uri, classes_uri,
                          class_mappings)
    # TODO: template interpolation
    return storage.nodeinfo(nodename)
コード例 #3
0
def get_inventory(storage_type, inventory_base_uri, nodes_uri, classes_uri):
    nodes_uri, classes_uri = path_mangler(inventory_base_uri, nodes_uri,
                                          classes_uri)
    storage = get_storage(storage_type, nodes_uri, classes_uri)
    return storage.inventory()
コード例 #4
0
def get_nodeinfo(storage_type, inventory_base_uri, nodes_uri, classes_uri, nodename):
    nodes_uri, classes_uri = path_mangler(inventory_base_uri, nodes_uri,
                                          classes_uri)
    storage = get_storage(storage_type, nodes_uri, classes_uri)
    # TODO: template interpolation
    return storage.nodeinfo(nodename)