cfddns

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

README

CFDDNS Bee

Updates a Cloudflare domain name record with the given IP.

See https://api.cloudflare.com/#getting-started-endpoints

Configuration

  • email: Cloudflare user email
  • key: Cloudflare API key
  • domain: Domain name record to update

Ideas

  • Use it in combination with the ipify bee to update a Cloudflare domain every time your public IP changes.

Credits

Cloudflare logo: https://www.cloudflare.com/logo/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFDDNSBee

type CFDDNSBee struct {
	bees.Bee
	// contains filtered or unexported fields
}

CFDDNSBee updates a Cloudflare domain name

func (*CFDDNSBee) Action

func (mod *CFDDNSBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*CFDDNSBee) ReloadOptions

func (mod *CFDDNSBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*CFDDNSBee) Run

func (mod *CFDDNSBee) Run(eventChan chan bees.Event)

Run executes the Bee's event loop.

type CFDDNSBeeFactory

type CFDDNSBeeFactory struct {
	bees.BeeFactory
}

CFDDNSBeeFactory takes care of initializing CFDDNSBee

func (*CFDDNSBeeFactory) Actions

func (factory *CFDDNSBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*CFDDNSBeeFactory) Description

func (factory *CFDDNSBeeFactory) Description() string

Description returns the description of this Bee.

func (*CFDDNSBeeFactory) Events

func (factory *CFDDNSBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*CFDDNSBeeFactory) ID

func (factory *CFDDNSBeeFactory) ID() string

ID returns the ID of this Bee.

func (*CFDDNSBeeFactory) Image

func (factory *CFDDNSBeeFactory) Image() string

Image returns the asset name of this Bee (in the assets/bees folder)

func (*CFDDNSBeeFactory) Name

func (factory *CFDDNSBeeFactory) Name() string

Name returns the name of this Bee.

func (*CFDDNSBeeFactory) New

func (factory *CFDDNSBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*CFDDNSBeeFactory) Options

func (factory *CFDDNSBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Jump to

Keyboard shortcuts

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