Documentation
¶
Index ¶
- Constants
- Variables
- func TencentCloudSigner(secretId string, secretKey string, sessionToken string, r *http.Request, ...)
- type CreateDnsRecordRequest
- type CreateDnsRecordResponse
- type DeleteDnsRecordsRequest
- type DescribeDnsRecordsRequest
- type DescribeDnsRecordsResponse
- type DescribeZonesRequest
- type DescribeZonesResponse
- type DnsRecord
- type Error
- type Filter
- type ModifyDnsRecordsRequest
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record, error)
- func (p *Provider) SetRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error)
- type TimedValue
Constants ¶
View Source
const ( DescribeZones = "DescribeZones" DescribeDnsRecords = "DescribeDnsRecords" CreateDnsRecord = "CreateDnsRecord" ModifyDnsRecords = "ModifyDnsRecords" DeleteDnsRecords = "DeleteDnsRecords" )
Variables ¶
View Source
var ErrNotValid = errors.New("returned value is not valid")
Functions ¶
func TencentCloudSigner ¶
func TencentCloudSigner(secretId string, secretKey string, sessionToken string, r *http.Request, action string, payload string)
TencentCloudSigner https://github.com/jeessy2/ddns-go/blob/master/util/tencent_cloud_signer.go
Types ¶
type CreateDnsRecordRequest ¶
type CreateDnsRecordRequest struct {
DnsRecord
}
type CreateDnsRecordResponse ¶
type DeleteDnsRecordsRequest ¶
type DescribeZonesRequest ¶
type DescribeZonesRequest struct {
Filters []Filter `json:"Filters,omitempty"`
}
type DescribeZonesResponse ¶
type DnsRecord ¶
type DnsRecord struct {
Content string `json:"Content"`
Location string `json:"Location,omitempty"`
Name string `json:"Name"`
Priority int64 `json:"Priority,omitempty"`
RecordId string `json:"RecordId,omitempty"`
Status string `json:"Status,omitempty"`
TTL int64 `json:"TTL,omitempty"`
Type string `json:"Type"`
Weight int64 `json:"Weight,omitempty"`
ZoneId string `json:"ZoneId"`
}
type ModifyDnsRecordsRequest ¶
type Provider ¶
type Provider struct {
SecretId string
SecretKey string
SessionToken string
Region string
// contains filtered or unexported fields
}
func (*Provider) AppendRecords ¶
func (*Provider) DeleteRecords ¶
func (*Provider) GetRecords ¶
Click to show internal directories.
Click to hide internal directories.