syncip

package
v0.0.0-...-cf16bd4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotSetAPI 未初始化 api
	ErrNotSetAPI = errors.New("api not set")
	// ErrNotSetZone 未初始化 zone
	ErrNotSetZone = errors.New("zone not set")
)

Functions

This section is empty.

Types

type SyncIP

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

SyncIP 同步更新ip结构体

func NewSyncIP

func NewSyncIP(apiKey, apiEmail string) (*SyncIP, error)

NewSyncIP 初始化

func (*SyncIP) IsSetZone

func (s *SyncIP) IsSetZone() bool

IsSetZone 是否设置了Zone

func (*SyncIP) SetARecord

func (s *SyncIP) SetARecord(ctx context.Context, name, value string) error

SetARecord 设置a记录

func (*SyncIP) SetTXTRecord

func (s *SyncIP) SetTXTRecord(ctx context.Context, fullName, value string) error

SetTXTRecord 设置TXT记录

func (*SyncIP) SetZone

func (s *SyncIP) SetZone(ctx context.Context, name string) error

SetZone 设置zone, 通过域名

Jump to

Keyboard shortcuts

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