tencentcloud

package module
v0.0.0-...-8899572 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 13 Imported by: 2

README

Loosely based on https://github.com/libdns/tencentcloud

Differences:

  1. No record ID is required, and it will not be returned either.
  2. SetRecords works as libdns documented.

Documentation

Index

Constants

View Source
const (
	DescribeRecordList = "DescribeRecordList"
	CreateRecord       = "CreateRecord"
	ModifyRecord       = "ModifyRecord"
	DeleteRecord       = "DeleteRecord"
)

Variables

View Source
var ErrNotValid = errors.New("returned value is not valid")
View Source
var ErrRecordNotFound = errors.New("record not found")

Functions

Types

type Provider

type Provider struct {
	SecretId  string
	SecretKey string
	// contains filtered or unexported fields
}

func (*Provider) AppendRecords

func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)

func (*Provider) DeleteRecords

func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)

func (*Provider) GetRecords

func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)

func (*Provider) SetRecords

func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)

Jump to

Keyboard shortcuts

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