noip

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package noip implements the No-IP dynamic DNS provider.

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrClientBlocked is returned if the client is blocked by No-IP.
	ErrClientBlocked = errors.New("client blocked")
	// ErrInvalidAuth is returned if the provided email and password are incorrect.
	ErrInvalidAuth = errors.New("incorrect email or password")
	// ErrServerError is returned if No-IP is having issues.
	ErrServerError = errors.New("server error")
	// ErrUnknownHost is returned if the hostname is not found.
	ErrUnknownHost = errors.New("host does not exist")
	// ErrUserBlocked is returned if the user is blocked by No-IP.
	ErrUserBlocked = errors.New("user is blocked")
	// ErrUnknown is returned if an unknown error occurs.
	ErrUnknown = errors.New("unknown error")
)

Functions

func New

func New(opts Options) ddns.Provider

New creates a new No-IP provider.

func ValidateOptions

func ValidateOptions(opts Options) error

ValidateOptions validates the options for the No-IP provider.

Types

type Options

type Options struct {
	Email    string `json:"email"`
	Password string `json:"password"`
	Hostname string `json:"hostname"`
}

Options is the set of options for the No-IP provider.

type Provider

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

Provider implements the DNS provider interface for No-IP.

func (*Provider) Update

func (p *Provider) Update(ipv4, ipv6 net.IP) error

Update implements the ddns.Provider interface for No-IP.

Jump to

Keyboard shortcuts

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