pkb_client.client package

Submodules

pkb_client.client.bind_file module

class pkb_client.client.bind_file.BindFile(origin: str, ttl: int | None = None, records: List[BindRecord] | None = None)[source]

Bases: object

static from_file(file_path: str) BindFile[source]
origin: str
records: List[BindRecord]
to_file(file_path: str) None[source]
ttl: int | None = None
class pkb_client.client.bind_file.BindRecord(name: str, ttl: int, record_class: pkb_client.client.bind_file.RecordClass, record_type: pkb_client.client.dns.DNSRecordType, data: str, prio: int | None = None, comment: str | None = None)[source]

Bases: object

comment: str | None = None
data: str
name: str
prio: int | None = None
record_class: RecordClass
record_type: DNSRecordType
ttl: int
class pkb_client.client.bind_file.RecordClass(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, Enum

IN = 'IN'

pkb_client.client.client module

pkb_client.client.dns module

class pkb_client.client.dns.DNSRecord(id: str, name: str, type: pkb_client.client.dns.DNSRecordType, content: str, ttl: int, prio: int | None, notes: str)[source]

Bases: object

content: str
static from_dict(d)[source]
id: str
name: str
notes: str
prio: int | None
ttl: int
type: DNSRecordType
class pkb_client.client.dns.DNSRecordType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, Enum

A = 'A'
AAAA = 'AAAA'
ALIAS = 'ALIAS'
CAA = 'CAA'
CNAME = 'CNAME'
MX = 'MX'
NS = 'NS'
SRV = 'SRV'
TLSA = 'TLSA'
TXT = 'TXT'
class pkb_client.client.dns.DNSRestoreMode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: Enum

clear = 0
static from_string(a)[source]
keep = 2
replace = 1

pkb_client.client.domain module

pkb_client.client.forwarding module

pkb_client.client.ssl_cert module

Module contents