dyndns

package
v0.0.0-...-f52c57c Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SessionObj *session.Session

SessionObj will automatically create an AWS session object looking for environment vars

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ZoneID string    `yaml:"zone_id"`
	Record string    `yaml:"record"`
	Notify SNSNotify `yaml:"sns_notify,omitempty"`
	IP     []byte
}

Configuration loads the config into memory

func NewConfigurationFromEnvironment

func NewConfigurationFromEnvironment(fileName string) (*Configuration, error)

NewConfigurationFromEnvironment returns a configuration to use from environment variables

func NewConfigurationFromFile

func NewConfigurationFromFile(fileName string) (*Configuration, error)

NewConfigurationFromFile returns a pointer to a new configuration loaded from a yaml file

func (Configuration) GetPublicIP

func (c Configuration) GetPublicIP() error

func (Configuration) UpdateDNS

func (c Configuration) UpdateDNS() error

type SNSNotify

type SNSNotify struct {
	SNSNotify  bool   `yaml:"sns_notify"`
	SNSTopic   string `yaml:"sns_topic"`
	SNSMessage string `yaml:"sns_message"`
}

SNSNotify is for optional sns notifcation on success or failure of dns updates.

Jump to

Keyboard shortcuts

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