mdns

package module
v0.1.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Logo

Go Report Card Build Status Coverage Status GitHub license

About

A Kubernetes mDNS responder, using service annotations to configure the mDNS services.

Usage

The service annotations are as follows:

Annotation Description
k8s-mdns.tech/name The name of the service.
k8s-mdns.tech/host The optional host to advertise.
k8s-mdns.tech/domain The optional domain to advertise on. Defaults to local.
k8s-mdns.tech/[service-key].type The type of the service.
k8s-mdns.tech/[service-key].port The optional service port. Defaults to the first port of the service.
k8s-mdns.tech/[service-key].txt The optional service text records in the format key=value[,key2="value that contains a ,"]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller is a mDNS controller.

func New

func New(responder dnssd.Responder, log *logger.Logger) *Controller

New returns a controller.

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, eventCh <-chan *provider.Event)

Run runs the controller.

Directories

Path Synopsis
cmd
k8s-mdns command
k8s

Jump to

Keyboard shortcuts

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