Documentation
¶
Index ¶
- Constants
- func OpError(op string, err error) error
- func OpErrors(op string) *opErrors
- type CredentialInfo
- type DomainRecord
- type Provider
- func (p *Provider) AppendRecords(ctx context.Context, zone string, recs []libdns.Record) ([]libdns.Record, error)
- func (p *Provider) DeleteRecords(ctx context.Context, zone string, recs []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, recs []libdns.Record) ([]libdns.Record, error)
Constants ¶
View Source
const ( VersionPrefix = "version_" EditionEnterpriseAdvanced = instanceEdition(VersionPrefix + "enterprise_advanced") EditionEnterpriseBasic = instanceEdition(VersionPrefix + "enterprise_basic") EditionPersonal = instanceEdition(VersionPrefix + "personal") EditionFree = instanceEdition("mianfei") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredentialInfo ¶ added in v1.0.6
type CredentialInfo struct {
// The API Key ID Required by Aliyun's for accessing the Aliyun's API
AccessKeyID string `json:"access_key_id"`
// The API Key Secret Required by Aliyun's for accessing the Aliyun's API
AccessKeySecret string `json:"access_key_secret"`
// Optional for identifing the region of the Aliyun's Service,The default is zh-hangzhou
RegionID string `json:"region_id,omitempty"`
// The Security Token Required If you enabled the Aliyun's STS(SecurityToken) for accessing the Aliyun's API
SecurityToken string `json:"security_token,omitempty"`
}
CredentialInfo implements param of the crediential
type DomainRecord ¶ added in v1.0.6
type DomainRecord struct {
Type string
Name string
Value string
TTL ttl_t
Priority ttl_t
ID string
}
func (DomainRecord) RR ¶ added in v1.0.6
func (r DomainRecord) RR() libdns.RR
type Provider ¶
type Provider struct {
CredentialInfo
// contains filtered or unexported fields
}
Provider implements the libdns interfaces for Alicloud.
func (*Provider) AppendRecords ¶
func (p *Provider) AppendRecords(ctx context.Context, zone string, recs []libdns.Record) ([]libdns.Record, error)
AppendRecords adds records to the zone. It returns the records that were added.
func (*Provider) DeleteRecords ¶
func (p *Provider) DeleteRecords(ctx context.Context, zone string, recs []libdns.Record) ([]libdns.Record, error)
DeleteRecords deletes the records from the zone. If a record does not have an ID, it will be looked up. It returns the records that were deleted.
func (*Provider) GetRecords ¶
GetRecords lists all the records in the zone.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.