Exemplo n.º 1
0
    def __init__(self, email, token, ttl):
        super(_LuaDNSLexiconClient, self).__init__()

        self.provider = luadns.Provider({
            'auth_username': email,
            'auth_token': token,
            'ttl': ttl,
        })
Exemplo n.º 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)
Exemplo n.º 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)