tencentcloud

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 9 Imported by: 13

README

TencentCloud DNSPod for libdns

This package implements the libdns interfaces for the TencentCloud DNSPod API

Code example

import "github.com/libdns/tencentcloud"
provider := &tencentcloud.Provider{
    SecretId:  "YOUR_Secret_ID",
    SecretKey: "YOUR_Secret_Key",
}

Security Credentials

To authenticate you need to supply a TencentCloud API Key.

Other instructions

libdns/tencentcloud is based on the new version of Tencentcloud api, uses secret Id and key as authentication methods, supports permission settings, and supports DNSPod international version.

libdns/dnspod is based on the old version of dnspod.cn api, uses token as the authentication method, does not support permission settings, and does not support DNSPod international version.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// SecretId is the secret ID for Tencent Cloud DNS
	SecretId string
	// SecretKey is the secret key for Tencent Cloud DNS
	SecretKey string
}

Provider is a libdns provider for Tencent Cloud DNS

func (*Provider) AppendRecords

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

AppendRecords appends records to a zone

func (*Provider) DeleteRecords

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

DeleteRecords deletes the records for a zone

func (*Provider) GetRecords

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

GetRecords gets the records for a zone

func (*Provider) SetRecords

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

SetRecords sets the records for a zone

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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