dns

package
Version: v0.0.0-...-112a489 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DNSDefaultEndpoint is the default API endpoint of DNS services
	DNSDefaultEndpoint = "http://dns.aliyuncs.com"
	DNSAPIVersion      = "2015-01-09"
)
View Source
const (
	ARecord           = "A"
	NSRecord          = "NS"
	MXRecord          = "MX"
	TXTRecord         = "TXT"
	CNAMERecord       = "CNAME"
	SRVRecord         = "SRV"
	AAAARecord        = "AAAA"
	RedirectURLRecord = "REDIRECT_URL"
	ForwordURLRecord  = "FORWORD_URL"
)

you can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/enum-type&record-format

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDomainRecordArgs

type AddDomainRecordArgs struct {
	DomainName string
	RR         string
	Type       string
	Value      string

	//optional
	TTL      int32
	Priority int
	Line     string
}

type AddDomainRecordResponse

type AddDomainRecordResponse struct {
	common.Response
	InstanceId string
	RecordId   string
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of DNS client

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint string, accessKeyId, accessKeySecret string) *Client

func NewCustomClient

func NewCustomClient(accessKeyId, accessKeySecret string, endpoint string) *Client

NewCustomClient creates a new instance of ECS client with customized API endpoint

func (*Client) AddDomainRecord

func (client *Client) AddDomainRecord(args *AddDomainRecordArgs) (response *AddDomainRecordResponse, err error)

AddDomainRecord

You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&AddDomainRecord

func (*Client) DeleteDomainRecord

func (client *Client) DeleteDomainRecord(args *DeleteDomainRecordArgs) (response *DeleteDomainRecordResponse, err error)

DeleteDomainRecord

You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&DeleteDomainRecord

func (*Client) DeleteSubDomainRecords

func (client *Client) DeleteSubDomainRecords(args *DeleteSubDomainRecordsArgs) (response *DeleteSubDomainRecordsResponse, err error)

DeleteSubDomainRecords

You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&DeleteSubDomainRecords

func (*Client) DescribeDomainRecordInfo

func (client *Client) DescribeDomainRecordInfo(args *DescribeDomainRecordInfoArgs) (response *DescribeDomainRecordInfoResponse, err error)

DescribeDomainRecordInfo

You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&DescribeDomainRecordInfo

func (*Client) DescribeDomainRecords

func (client *Client) DescribeDomainRecords(args *DescribeDomainRecordsArgs) (response *DescribeDomainRecordsResponse, err error)

DescribeDomainRecords

You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&DescribeDomainRecords

func (*Client) DescribeSubDomainRecords

func (client *Client) DescribeSubDomainRecords(args *DescribeSubDomainRecordsArgs) (response *DescribeSubDomainRecordsResponse, err error)

DescribeSubDomainRecords

You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&DescribeSubDomainRecords

func (*Client) GetMainDomainName

func (client *Client) GetMainDomainName(args *GetMainDomainNameArgs) (response *GetMainDomainNameResponse, err error)

GetMainDomainName

You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/domain-related&GetMainDomainName

func (*Client) UpdateDomainRecord

func (client *Client) UpdateDomainRecord(args *UpdateDomainRecordArgs) (response *UpdateDomainRecordResponse, err error)

UpdateDomainRecord

You can read doc at https://docs.aliyun.com/#/pub/dns/api-reference/record-related&UpdateDomainRecord

type DeleteDomainRecordArgs

type DeleteDomainRecordArgs struct {
	RecordId string
}

type DeleteDomainRecordResponse

type DeleteDomainRecordResponse struct {
	common.Response
	InstanceId string
	RecordId   string
}

type DeleteSubDomainRecordsArgs

type DeleteSubDomainRecordsArgs struct {
	DomainName string
	RR         string

	//optional
	Type string
}

type DeleteSubDomainRecordsResponse

type DeleteSubDomainRecordsResponse struct {
	common.Response
	InstanceId string
	RR         string
}

type DescribeDomainRecordInfoArgs

type DescribeDomainRecordInfoArgs struct {
	RecordId string
}

type DescribeDomainRecordInfoResponse

type DescribeDomainRecordInfoResponse struct {
	common.Response
	RecordType
}

type DescribeDomainRecordsArgs

type DescribeDomainRecordsArgs struct {
	DomainName string

	//optional
	common.Pagination
	RRKeyWord    string
	TypeKeyWord  string
	ValueKeyWord string
}

type DescribeDomainRecordsResponse

type DescribeDomainRecordsResponse struct {
	common.Response
	common.PaginationResult
	InstanceId    string
	DomainRecords struct {
		Record []RecordType
	}
}

type DescribeSubDomainRecordsArgs

type DescribeSubDomainRecordsArgs struct {
	SubDomain string

	//optional
	PageNumber int32
	PageSize   int32
	Type       string
}

type DescribeSubDomainRecordsResponse

type DescribeSubDomainRecordsResponse struct {
	common.Response
	InstanceId    string
	TotalCount    int32
	PageNumber    int32
	PageSize      int32
	DomainRecords struct {
		Record []RecordType
	}
}

type GetMainDomainNameArgs

type GetMainDomainNameArgs struct {
	InputString string
}

type GetMainDomainNameResponse

type GetMainDomainNameResponse struct {
	common.Response
	InstanceId  string
	DomainName  string
	RR          string
	DomainLevel int32
}

type RecordType

type RecordType struct {
	DomainName string
	RecordId   string
	RR         string
	Type       string
	Value      string
	TTL        int32
	Priority   int32
	Line       string
	Status     string
	Locked     bool
}

type UpdateDomainRecordArgs

type UpdateDomainRecordArgs struct {
	RecordId string
	RR       string
	Type     string
	Value    string

	//optional
	TTL      int32
	Priority int32
	Line     string
}

type UpdateDomainRecordResponse

type UpdateDomainRecordResponse struct {
	common.Response
	InstanceId string
	RecordId   string
}

Jump to

Keyboard shortcuts

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