nfsn

package module
v0.0.0-...-380d84d Latest Latest
Warning

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

Go to latest
Published: May 18, 2019 License: MIT Imports: 13 Imported by: 0

README

This is a Go package for interacting with the NearlyFreeSpeech.NET API.

GoDoc

This is at a very early stage.

Configuration

You need to put auth information in $HOME/.nfsn-api that looks like

{"login": "xxx", "api-key": "yyy"}

The API key needs to be obtained from NFSN via a secure support request.

Documentation

Overview

Package nfsn contains abstractions for interacting with the NearlyFreeSpeech.NET API.

https://members.nearlyfreespeech.net/wiki/API/Reference

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() (*Client, error)

func NewClientFromFile

func NewClientFromFile(configFile string) (*Client, error)

func (*Client) DNS

func (c *Client) DNS(domain string) DNS

type DNS

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

func (DNS) AddRR

func (d DNS) AddRR(rr DNSRR) error

func (DNS) DeleteRR

func (d DNS) DeleteRR(rr DNSRR) error

func (DNS) RRs

func (d DNS) RRs() ([]DNSRR, error)

type DNSRR

type DNSRR struct {
	Name string // e.g. name of subdomain
	Type string // e.g. "A", "CNAME", "NS"
	Data string // IP for A, FQDN for CNAME, NS
	TTL  int    // seconds

}

Directories

Path Synopsis
cmd
dyndns
dyndns updates DNS records on NFSN to match your public IP.
dyndns updates DNS records on NFSN to match your public IP.

Jump to

Keyboard shortcuts

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