示例#1
0
def lookup_canarytoken_alert_count(canarytoken):
    key = KEY_CANARYTOKEN_ALERT_COUNT + canarytoken.value()
    return db.get(key)
示例#2
0
def get_canary_google_api_key():
    return db.get(KEY_CANARY_GOOGLE_API_KEY)
示例#3
0
def get_geoinfo_from_cache(ip):
    key = KEY_CANARY_IP_CACHE + ip
    return simplejson.loads(db.get(key))
示例#4
0
def lookup_canarytoken_alert_count(canarytoken):
    key = KEY_CANARYTOKEN_ALERT_COUNT+canarytoken.value()
    return db.get(key)
示例#5
0
def get_kc_endpoint():
    return db.get(KEY_KUBECONFIG_SERVEREP)
示例#6
0
def get_canary_google_api_key():
    return db.get(KEY_CANARY_GOOGLE_API_KEY)
示例#7
0
def get_geoinfo_from_cache(ip):
    key = KEY_CANARY_IP_CACHE + ip
    return simplejson.loads(db.get(key))