common

package
v0.0.0-...-e994816 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package common contains code shared between packages

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownArg = errors.New("unknown non-flag argument(s) present after command")

ErrUnknownArg is returned when non-flag arguments are present after the command

View Source
var ErrUnknownDNSBackend = errors.New("unknown DNS backend specified for command")

ErrUnknownDNSBackend is returned when an unknown DNS backend is specified on the cli

View Source
var ErrUnknownIPBackend = errors.New("unknown IP backend specified for command")

ErrUnknownIPBackend is returned when an unknown IP backend is specified on the cli

Functions

func GetDNSBackend

func GetDNSBackend(backend string) (dns.Backend, error)

GetDNSBackend returns an initialized IP lookup backend of the requested type

func GetIPBackend

func GetIPBackend(backend string) (ip.Backend, error)

GetIPBackend returns an initialized IP lookup backend of the requested type

Types

This section is empty.

Directories

Path Synopsis
dns
Package dns defines the DNS service backend interface
Package dns defines the DNS service backend interface
godaddy
Package godaddy provides a DNS backend via the GoDaddy service
Package godaddy provides a DNS backend via the GoDaddy service
ip
Package ip defines the IP lookup backend interface
Package ip defines the IP lookup backend interface
ipify
Package ipify provides an IP lookup backend via the ipify.org service
Package ipify provides an IP lookup backend via the ipify.org service
local
Package local provides a machine local IP lookup backend
Package local provides a machine local IP lookup backend

Jump to

Keyboard shortcuts

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