dnsdk

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

README

dnssdk

The DNS API Go package for Cloudflare, Alidns, DNSPod and PQDNS.

Services

Domain

  • DomainList 域名列表
  • DomainAdd 域名添加
  • DomainDelete 域名删除

Record

  • RecordList 记录列表
  • RecordAdd 记录新增
  • RecordUpdate 记录修改
  • RecordDelete 记录删除
  • RecordEnable 记录启用
  • RecordDisable 记录暂停
  • RecordStatusSupported 记录支持状态?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlidnsSupporter

func AlidnsSupporter[T any](supportFunc SupportFunc[T, *AlidnsSupportOpts]) supporter[T, *AlidnsSupportOpts]

func CloudflareSupporter

func CloudflareSupporter[T any](supportFunc SupportFunc[T, *CloudflareSupportOpts]) supporter[T, *CloudflareSupportOpts]

func DnspodSupporter

func DnspodSupporter[T any](supportFunc SupportFunc[T, *DnspodSupportOpts]) supporter[T, *DnspodSupportOpts]

func PqdnsSupporter

func PqdnsSupporter[T any](supportFunc SupportFunc[T, *PqdnsSupportOpts]) supporter[T, *PqdnsSupportOpts]

Types

type AlidnsSupportOpts

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

func NewAlidnsSupportOpts

func NewAlidnsSupportOpts(accessKeyId string, accessKeySecret string) *AlidnsSupportOpts

type Api

type Api = internal.Api

func GetSupportApi

func GetSupportApi[T, R any](t T, supporter0 supporter[T, R]) (a Api, err error)

type ApiType

type ApiType string
const (
	ApiTypeAlidns     ApiType = "alidns"
	ApiTypeCloudflare ApiType = "cloudflare"
	ApiTypeDnspod     ApiType = "dnspod"
	ApiTypePqdns      ApiType = "pqdns"
)

type CloudflareSupportOpts

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

func NewCloudflareSupportOpts

func NewCloudflareSupportOpts(email string, apiKey string) *CloudflareSupportOpts

type DnspodSupportOpts

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

func NewDnspodSupportOpt

func NewDnspodSupportOpt(secretId string, secretKey string) *DnspodSupportOpts

type DomainAddReq

type DomainAddReq = internal.DomainAddReq

type DomainAddResp

type DomainAddResp = internal.DomainAddResp

type DomainDeleteReq

type DomainDeleteReq = internal.DomainDeleteReq

type DomainListReq

type DomainListReq = internal.DomainListReq

type DomainListResp

type DomainListResp = internal.DomainListResp

type DomainListRespDomain

type DomainListRespDomain = internal.DomainListRespDomain

type LineListResp

type LineListResp = internal.LineListResp

type LineListRespLine

type LineListRespLine = internal.LineListRespLine

type PqdnsSupportOpts

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

func NewPqdnsSupportOpts

func NewPqdnsSupportOpts(baseUrl string, username string, secretKey string) *PqdnsSupportOpts

type RecordAddReq

type RecordAddReq = internal.RecordAddReq

type RecordAddResp

type RecordAddResp = internal.RecordAddResp

type RecordDeleteReq

type RecordDeleteReq = internal.RecordDeleteReq

type RecordDisableReq

type RecordDisableReq = internal.RecordDisableReq

type RecordEnableReq

type RecordEnableReq = internal.RecordEnableReq

type RecordListReq

type RecordListReq = internal.RecordListReq

type RecordListResp

type RecordListResp = internal.RecordListResp

type RecordListRespRecord

type RecordListRespRecord = internal.RecordListRespRecord

type RecordUpdateReq

type RecordUpdateReq = internal.RecordUpdateReq

type RecordUpdateResp

type RecordUpdateResp = internal.RecordUpdateResp

type SupportFunc

type SupportFunc[T, R any] func(t T) (r R)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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