dns

package
v3.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package dns is responsible for the cluster dns zone management.

This zone contains the records needed to address a svc with cni ip addresses, which are randomly changing on restart.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expose

type Expose struct {
	FrontendPort int
	BackendPort  int
	Network      string
}

func ParseExpose

func ParseExpose(s string) (Expose, error)

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(d time.Duration, subQS pubsub.QueueSizer) *Manager

func (*Manager) Start

func (t *Manager) Start(parent context.Context) error

Start launches the dns worker goroutine

func (*Manager) Stop

func (t *Manager) Stop() error

type Record

type Record struct {
	Name     string `json:"qname"`
	Type     string `json:"qtype"`
	TTL      int    `json:"ttl"`
	Content  string `json:"content"`
	DomainID int    `json:"domain_id"`
}

type Zone

type Zone []Record

func GetZone

func GetZone() Zone

func (Zone) Render

func (t Zone) Render() string

Jump to

Keyboard shortcuts

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