ddns

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

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 11 Imported by: 0

README

overview

A ddns tool that can monitor the local export IP changes and change the dns resolution, supports aws(route53) and alidns.

dependency

go

install

usage

docker-compose

version: "3"
services:
  ddns:
    entrypoint: ./ddns -t aws -d cloud.mkxxq.top
    image: xiaoqiang321/ddns
    restart: always
    environment:
      AWS_ACCESS_KEY_ID: {your aws key}
      AWS_SECRET_ACCESS_KEY:  {your aws secret}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliCredential

type AliCredential struct {
	AccessKeyID     string
	AccessKeySecret string
	Region          string
	// contains filtered or unexported fields
}

func NewAliCredential

func NewAliCredential(accessKeyID string, accessKeySecret string, region string) *AliCredential

func NewAliCredentialWithEnv

func NewAliCredentialWithEnv() *AliCredential

func (*AliCredential) UpsertRecord

func (cli *AliCredential) UpsertRecord(subDomain string, ip string) error

type AwsCredential

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

func NewAwsCredential

func NewAwsCredential() *AwsCredential

func NewAwsCredentialEnv

func NewAwsCredentialEnv() *AwsCredential

func (*AwsCredential) UpsertRecord

func (cre *AwsCredential) UpsertRecord(subDomain string, ip string) error

type DDns

type DDns interface {
	UpsertRecord(value string, ip string) error
}

type Watcher

type Watcher struct {
	Domain string
	// contains filtered or unexported fields
}

func (*Watcher) Run

func (w *Watcher) Run(cre DDns)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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