dnsimpleprovider

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package dnsimpleprovider provides a driver implementation that advertises DNS-SD service instances on domain names hosted by dnsimple.com.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Client *dnsimple.Client
	Logger logr.Logger
}

Provider is an implementation of provider.Provider that advertises DNS-SD services on domains hosted by dnsimple.com.

func (*Provider) AdvertiserByDomain

func (p *Provider) AdvertiserByDomain(
	ctx context.Context,
	domain string,
) (provider.Advertiser, bool, error)

AdvertiserByDomain returns the Advertiser used to advertise services on the given domain.

ok is false if this provider does not manage the given domain.

func (*Provider) AdvertiserByID

func (p *Provider) AdvertiserByID(
	ctx context.Context,
	id map[string]any,
) (provider.Advertiser, error)

AdvertiserByID returns the Advertiser with the given ID.

func (*Provider) Describe

func (p *Provider) Describe() string

Describe returns a human-readable description of the provider.

func (*Provider) ID

func (p *Provider) ID() string

ID returns a short unique identifier for the provider.

Directories

Path Synopsis
internal
dnsimplex
Package dnsimplex contains utility functions for working with the DNSimple API.
Package dnsimplex contains utility functions for working with the DNSimple API.

Jump to

Keyboard shortcuts

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