当前位置: 首页>>代码示例>>Python>>正文


Python cpelist.CPEList类代码示例

本文整理汇总了Python中lib.cpelist.CPEList的典型用法代码示例。如果您正苦于以下问题:Python CPEList类的具体用法?Python CPEList怎么用?Python CPEList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了CPEList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: updateWhitelist

def updateWhitelist(cpeOld, cpeNew, cpeType):
    oList = CPEList(collection, args)
    return oList.update(cpeOld, cpeNew, cpeType)
开发者ID:cve-search,项目名称:cve-search,代码行数:3,代码来源:db_whitelist.py

示例2: insertWhitelist

def insertWhitelist(cpe, cpeType):
    oList = CPEList(collection, args)
    return oList.insert(cpe,cpeType)
开发者ID:cve-search,项目名称:cve-search,代码行数:3,代码来源:db_whitelist.py

示例3: removeWhitelist

def removeWhitelist(cpe):
    oList = CPEList(collection, args)
    return oList.remove(cpe)
开发者ID:cve-search,项目名称:cve-search,代码行数:3,代码来源:db_whitelist.py

示例4: countWhitelist

def countWhitelist():
    oList = CPEList(collection, args)
    return oList.countItems()
开发者ID:cve-search,项目名称:cve-search,代码行数:3,代码来源:db_whitelist.py

示例5: checkWhitelist

def checkWhitelist(cpe):
    oList = CPEList(collection, args)
    amount = oList.check(cpe)
    return amount
开发者ID:cve-search,项目名称:cve-search,代码行数:4,代码来源:db_whitelist.py

示例6: exportWhitelist

def exportWhitelist(exportFile=None):
    oList = CPEList(collection, args)
    return oList.exportList(exportFile)
开发者ID:cve-search,项目名称:cve-search,代码行数:3,代码来源:db_whitelist.py

示例7: dropWhitelist

def dropWhitelist():
    oList = CPEList(collection, args)
    oList.dropCollection()
开发者ID:cve-search,项目名称:cve-search,代码行数:3,代码来源:db_whitelist.py

示例8: importWhitelist

def importWhitelist(importFile):
    oList = CPEList(collection, args)
    return oList.importList(importFile)
开发者ID:cve-search,项目名称:cve-search,代码行数:3,代码来源:db_whitelist.py

示例9: removeBlacklist

def removeBlacklist(cpe):
    oList = CPEList(collection, args)
    return oList.remove(cpe)
开发者ID:ccavxx,项目名称:cve-search,代码行数:3,代码来源:db_blacklist.py

示例10: exportWhitelist

def exportWhitelist(exportFile):
    oList = CPEList(collection, args)
    oList.exportList(exportFile)
开发者ID:ccavxx,项目名称:cve-search,代码行数:3,代码来源:db_whitelist.py

示例11: countBlacklist

def countBlacklist():
    oList = CPEList(collection, args)
    return oList.countItems()
开发者ID:ccavxx,项目名称:cve-search,代码行数:3,代码来源:db_blacklist.py

示例12: dropBlacklist

def dropBlacklist():
    oList = CPEList(collection, args)
    oList.dropCollection()
开发者ID:ccavxx,项目名称:cve-search,代码行数:3,代码来源:db_blacklist.py

示例13: exportBlacklist

def exportBlacklist(exportFile):
    oList = CPEList(collection, args)
    oList.exportList(exportFile)
开发者ID:ccavxx,项目名称:cve-search,代码行数:3,代码来源:db_blacklist.py

示例14: importBlacklist

def importBlacklist(importFile):
    oList = CPEList(collection, args)
    oList.importList(importFile)
开发者ID:ccavxx,项目名称:cve-search,代码行数:3,代码来源:db_blacklist.py

示例15: updateBlacklist

def updateBlacklist(cpeOld, cpeNew):
    oList = CPEList(collection, args)
    return oList.update(cpeOld, cpeNew)
开发者ID:Lindatsght,项目名称:cve-search,代码行数:3,代码来源:db_blacklist.py


注:本文中的lib.cpelist.CPEList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。