tencent

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tencent

type Tencent struct {
	Client *dnspod.Client
}

Tencent aliyun 实例

func NewClient

func NewClient(region, secretID, secretKey string) (*Tencent, error)

NewClient Tencent default client

func (*Tencent) AddDomain

func (sdk *Tencent) AddDomain(name, isMark string, gid uint64) ([]byte, error)

AddDomain 添加域名

func (*Tencent) AddGroup

func (aliyun *Tencent) AddGroup(name string) ([]byte, error)

AddGroup 添加域名分组

func (*Tencent) AddRecord

func (sdk *Tencent) AddRecord(
	domain, rr, _type, value, status, line, lid string,
	ttl, mx, did, weight uint64) ([]byte, error)

AddRecord 修改解析记录

func (*Tencent) DeleteDomain

func (sdk *Tencent) DeleteDomain(name string, id uint64) ([]byte, error)

DeleteDomain 删除域名

func (*Tencent) DeleteRecord

func (sdk *Tencent) DeleteRecord(domain string, id, did uint64) ([]byte, error)

DeleteRecord 删除解析记录

func (*Tencent) GetDomain

func (sdk *Tencent) GetDomain(name string, id uint64) ([]byte, error)

GetDomain 获取域名信息

func (*Tencent) GetDomainList

func (sdk *Tencent) GetDomainList(
	keyword, _type string, gid, offset, limit int64) ([]byte, error)

GetDomainList 获取域名列表

func (*Tencent) GetDomainLogs

func (sdk *Tencent) GetDomainLogs(
	name string, id, offset, limit uint64) ([]byte, error)

GetDomainLogs 获取域名操作日志

func (*Tencent) GetRecord

func (sdk *Tencent) GetRecord(domain string, did, id uint64) ([]byte, error)

GetRecord 获取解析记录信息

func (*Tencent) GetRecordList

func (sdk *Tencent) GetRecordList(
	domain, rr, keyword, _type, sort, sortField string,
	did, gid, offset, limit uint64) ([]byte, error)

GetRecordList 获取解析记录列表

func (*Tencent) LockDomain

func (sdk *Tencent) LockDomain(name string, id, day uint64) ([]byte, error)

LockDomain 锁定域名

func (*Tencent) UnlockDomain

func (sdk *Tencent) UnlockDomain(name, code string, id uint64) ([]byte, error)

UnlockDomain 域名锁定解锁

func (*Tencent) UpdateDomainRemark

func (sdk *Tencent) UpdateDomainRemark(name, remark string, id uint64) ([]byte, error)

UpdateDomainRemark 修改域名的备注

func (*Tencent) UpdateDomainStatus

func (sdk *Tencent) UpdateDomainStatus(name, status string, id uint64) ([]byte, error)

UpdateDomainStatus 修改域名状态

func (*Tencent) UpdateRecord

func (sdk *Tencent) UpdateRecord(
	domain, rr, _type, value, status, line, lid string,
	id, ttl, mx, did, weight uint64) ([]byte, error)

UpdateRecord 修改解析记录

func (*Tencent) UpdateRecordRemark

func (sdk *Tencent) UpdateRecordRemark(domain, remark string,
	id, did uint64) ([]byte, error)

UpdateRecordRemark 修改解析记录的备注

func (*Tencent) UpdateRecordStatus

func (sdk *Tencent) UpdateRecordStatus(domain, status string,
	id, did uint64) ([]byte, error)

UpdateRecordStatus 修改解析记录的备注

Jump to

Keyboard shortcuts

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