17 lines
329 B
Python
17 lines
329 B
Python
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class CertificateIdentity:
|
|
"""
|
|
Cluster identity for a certificate.
|
|
|
|
NPM numeric IDs are intentionally excluded because they are node-local.
|
|
"""
|
|
|
|
domains: tuple[str, ...]
|
|
|
|
@property
|
|
def key(self) -> str:
|
|
return ",".join(self.domains)
|