config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSConfig

type DNSConfig struct {
	TTL        int
	Proxied    bool
	DNSName    string
	ExternalIP string
	ZoneID     string
	ZoneName   string
}

DNSConfig is used for configuring the DNS Record

func (*DNSConfig) GetExternalIP

func (c *DNSConfig) GetExternalIP() error

GetExternalIP fetches the external IP from the Internet and saves it

func (*DNSConfig) GetName

func (c *DNSConfig) GetName() string

GetName returns the name of the Record in format DNSName.ZoneName

func (*DNSConfig) ToDNSRecord

func (c *DNSConfig) ToDNSRecord() cloudflare.DNSRecord

ToDNSRecord creates a cloudflare.DNSRecord from the struct

Jump to

Keyboard shortcuts

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