providers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFlareProvider

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

func NewCloudFlareProvider

func NewCloudFlareProvider(ctx context.Context, apiToken string) (*CloudFlareProvider, error)

func (*CloudFlareProvider) Get

func (p *CloudFlareProvider) Get(domain, record string) (string, error)

Get fetches the IP of the given record, returning empty string if it doesn't exist

func (*CloudFlareProvider) Update

func (p *CloudFlareProvider) Update(domain, record, ip string) error

Update updates the CloudFlare DNS record

Jump to

Keyboard shortcuts

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