hetzner

package
v0.0.0-...-e4c939b Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// URL the API address for Hetzner.
	BaseURL = "https://dns.hetzner.com/api/v1/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSProvider

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

DNSProvider struct.

func (*DNSProvider) Init

func (provider *DNSProvider) Init(conf *settings.Settings)

Init passes DNS settings and store it to the provider instance.

func (*DNSProvider) UpdateIP

func (provider *DNSProvider) UpdateIP(domainName, subdomainName, ip string) error

type Record

type Record struct {
	Type   string `json:"type"`
	ID     string `json:"id"`
	Name   string `json:"name"`
	Value  string `json:"value"`
	TTL    int64  `json:"ttl"`
	ZoneID string `json:"zone_id"`
}

Jump to

Keyboard shortcuts

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