dns

package
v2.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package dns provides the DNS record lifecycle handler for the reconciler.

Index

Constants

View Source
const HandlerName = "dns-record"

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(dnsService DNSRouter) *recordHandler

Types

type DNSRouter

type DNSRouter interface {
	RouteRecord(ctx context.Context, tunnelUUID string, zoneName string, subdomain string) error
	DeleteRecord(ctx context.Context, tunnelUUID string, zoneName string, subdomain string) error
	RecordExists(ctx context.Context, tunnelUUID string, zoneName string, subdomain string) (bool, error)
}

type RecordInput

type RecordInput struct {
	Zone       string `json:"zone"`
	Subdomain  string `json:"subdomain"`
	TunnelName string `json:"tunnel_name"`
	TunnelUUID string `json:"tunnel_uuid"` // included for hash-based change detection
	Persistent bool   `json:"persistent"`
}

type RecordOutput

type RecordOutput struct {
	Zone       string `json:"zone"`
	Subdomain  string `json:"subdomain"`
	Persistent bool   `json:"persistent"`
	TunnelName string `json:"tunnel_name"`
	TunnelUUID string `json:"tunnel_uuid"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL