cloudflare

package
v3.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Name = `Cloudflare`

Variables

This section is empty.

Functions

func New

func New() interfaces.Updater

Types

type Cloudflare

type Cloudflare struct {
	Domains []*dnsdomain.Domain
	TTL     int
	// contains filtered or unexported fields
}

Cloudflare Cloudflare实现

func (*Cloudflare) ConfigItems

func (*Cloudflare) ConfigItems() echo.KVList

func (*Cloudflare) Description

func (*Cloudflare) Description() string

func (*Cloudflare) Init

func (cf *Cloudflare) Init(settings echo.H, domains []*dnsdomain.Domain) error

Init 初始化

func (*Cloudflare) LineTypeURL

func (*Cloudflare) LineTypeURL() string

func (*Cloudflare) Name

func (*Cloudflare) Name() string

func (*Cloudflare) SignUpURL

func (*Cloudflare) SignUpURL() string

func (*Cloudflare) Support added in v3.6.1

func (*Cloudflare) Support() dnsdomain.Support

func (*Cloudflare) Update

func (cf *Cloudflare) Update(ctx context.Context, recordType string, ipAddr string) error

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
}

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