tencentcloud

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 9 Imported by: 15

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 CreateRecordResponse

type CreateRecordResponse struct {
	Response struct {
		RecordId int
	}
}

type DescribeRecordListResponse

type DescribeRecordListResponse struct {
	Response struct {
		RecordList []struct {
			RecordId int
			Value    string
			Name     string
			Type     string
			TTL      int
			MX       int
		}
	}
}

type Provider

type Provider struct {
	SecretId  string
	SecretKey string
}

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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