impl

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HmacSign

func HmacSign(signMethod string, httpMethod string, appKeySecret string, vals url.Values) (signature []byte)

func HmacSignToB64

func HmacSignToB64(signMethod string, httpMethod string, appKeySecret string, vals url.Values) (signature string)

Types

type Alidns

type Alidns struct {
	AK      string
	SK      string
	Domains []string
	NewAddr string
}

https://help.aliyun.com/document_detail/29776.html?spm=a2c4g.11186623.6.672.715a45caji9dMA Alidns Alidns

func (*Alidns) UpsertDomainRecords

func (ali *Alidns) UpsertDomainRecords()

type AlidnsRecord

type AlidnsRecord struct {
	DomainName string
	RecordID   string
	Value      string
}

AlidnsRecord record

type AlidnsResp

type AlidnsResp struct {
	RecordID  string
	RequestID string
}

AlidnsResp 修改/添加返回结果

type AlidnsSubDomainRecords

type AlidnsSubDomainRecords struct {
	TotalCount    int
	DomainRecords struct {
		Record []AlidnsRecord
	}
}

AlidnsSubDomainRecords 记录

type Cloudflare

type Cloudflare struct {
	Secret  string
	Domains []string
	ZoneId  string
	NewAddr string
}

Cloudflare Cloudflare实现

func (*Cloudflare) UpsertDomainRecords

func (cf *Cloudflare) UpsertDomainRecords()

type CloudflareRecord

type CloudflareRecord struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Type    string `json:"type"`
	Content string `json:"content"`
	Proxied bool   `json:"proxied"`
	TTL     int    `json:"ttl"`
}

CloudflareRecord 记录实体

type CloudflareRecordsResp

type CloudflareRecordsResp struct {
	CloudflareStatus
	Result []CloudflareRecord `json:"result"`
}

CloudflareRecordsResp records

type CloudflareStatus

type CloudflareStatus struct {
	Success  bool
	Messages []string
}

CloudflareStatus 公共状态

type CloudflareZonesResp

type CloudflareZonesResp struct {
	CloudflareStatus
	Result []struct {
		ID     string
		Name   string
		Status string
		Paused bool
	}
}

CloudflareZonesResp cloudflare zones返回结果

Jump to

Keyboard shortcuts

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