cloudflare

package module
v0.0.0-...-c618ef6 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: MIT Imports: 6 Imported by: 0

README

cloudflare-ddns

This small application will keep a Cloudflare DNS record up to date with the Docker public IP address.

Usage

Basic
CF_HOST=xx.yy.com CF_API_KEY=xxxxx -e CF_API_EMAIL=your@email.com go run cmd/cloudflare-ddns/main.go

Docker

docker run -e CF_HOST=xx.yy.com -e CF_API_KEY=xxxxx -e CF_API_EMAIL=your@email.com arkan/cloudflare-ddns:latest

unRAID

You can use my unraid-templates.

#Copyright

Copyright © 2016 Florian Bertholin

See the LICENSE (MIT) file for more details.

Documentation

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
}

Client holds a cloudflare.API to interact with cloudflare

func New

func New(key, email string) (*Client, error)

New returns a Client configured with a key and email

func (*Client) KeepUpdated

func (c *Client) KeepUpdated(host string) error

KeepUpdated checks cloudflare every 30 seconds, and update the DNS record if necessary.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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