示例#1
0
    def __init__(self, email, token, ttl):
        super(_LuaDNSLexiconClient, self).__init__()

        self.provider = luadns.Provider({
            'auth_username': email,
            'auth_token': token,
            'ttl': ttl,
        })
示例#2
0
    def __init__(self, email: str, token: str, ttl: int) -> None:
        super().__init__()

        config = dns_common_lexicon.build_lexicon_config('luadns', {
            'ttl': ttl,
        }, {
            'auth_username': email,
            'auth_token': token,
        })

        self.provider = luadns.Provider(config)
示例#3
0
    def __init__(self, email, token, ttl):
        super(_LuaDNSLexiconClient, self).__init__()

        config = dns_common_lexicon.build_lexicon_config(
            'luadns', {
                'ttl': ttl,
            }, {
                'auth_username': email,
                'auth_token': token,
            })

        self.provider = luadns.Provider(config)