providers

package
v0.0.0-...-8bf7425 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AliyunName                  = "aliyun"
	AliyunAuthFieldRegion       = "region"
	AliyunAuthFieldAccessKey    = "accessKey"
	AliyunAuthFieldAccessSecret = "accessSecret"
	AliyunPrefixFieldLine       = "line"
	AliyunPrefixFieldIpType     = "ipType"
	AliyunPrefixFieldRecord     = "record"
	AliyunPrefixFieldRecordType = "recordType"
	AliyunAPIMaxPageSize        = 250
)

Variables

View Source
var (
	EMInvalidDomainProvider      = errors.New("9caba9e400040001", "无效的域名提供商")
	EMFailedToInitSession        = errors.New("9caba9e400040002", "未能成功创建会话")
	EMDomainUnavailable          = errors.New("9caba9e400040003", "域名不可用")
	ErrFailedToListDomainRecords = errors.New("9caba9e400040004", "FailedToListDomainRecords")
)
View Source
var (
	ErrFailedToCreateRecord = errors.New("9caba9e400040005", "failed to create record")
	ErrFailedToDeleteRecord = errors.New("9caba9e400040006", "failed to delete record")
	ErrFailedToUpdateRecord = errors.New("9caba9e400040007", "failed to update record")
)

Functions

This section is empty.

Types

type Aliyun

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

func (*Aliyun) InitSession

func (p *Aliyun) InitSession(domain string, config common.STDomain) error

func (*Aliyun) Update

func (p *Aliyun) Update(ipType, address string) error

type AliyunRecord

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

type Provider

type Provider interface {
	InitSession(domain string, config common.STDomain) error
	Update(ipType, address string) error
}

func NewProvider

func NewProvider(name string) (Provider, error)

Jump to

Keyboard shortcuts

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