How to use the certbot-dns-linode.certbot_dns_linode._internal.dns_linode._LinodeLexiconClient function in certbot-dns-linode

To help you get started, we’ve selected a few certbot-dns-linode examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github certbot / certbot / certbot-dns-linode / certbot_dns_linode / _internal / dns_linode.py View on Github external
def __init__(self, api_key, api_version):
        super(_LinodeLexiconClient, self).__init__()

        self.api_version = api_version

        if api_version == 3:
            config = dns_common_lexicon.build_lexicon_config('linode', {}, {
                'auth_token': api_key,
            })

            self.provider = linode.Provider(config)
        elif api_version == 4:
            config = dns_common_lexicon.build_lexicon_config('linode4', {}, {
                'auth_token': api_key,
            })

            self.provider = linode4.Provider(config)
        else:
github certbot / certbot / certbot-dns-linode / certbot_dns_linode / _internal / dns_linode.py View on Github external
api_version = self.credentials.conf('version')
        if api_version == '':
            api_version = None

        if not api_version:
            api_version = 3

            # Match for v4 api key
            regex_v4 = re.compile('^[0-9a-f]{64}$')
            regex_match = regex_v4.match(api_key)
            if regex_match:
                api_version = 4
        else:
            api_version = int(api_version)

        return _LinodeLexiconClient(api_key, api_version)

certbot-dns-linode

Linode DNS Authenticator plugin for Certbot

Apache-2.0
Latest version published 1 month ago

Package Health Score

90 / 100
Full package analysis

Similar packages