Documentation ¶
Index ¶
- Variables
- func APIErrorRecord(apiAction Action, request string, response string, err error)
- func APIRecord(apiAction Action, request string, response string)
- func JsonWrapper(obj interface{}) string
- func NewMockService(privateZones []*privatedns.PrivateZone, ...) *mockAPIService
- func NewReadOnlyAPIService(region string, rate int, secretId string, secretKey string, ...) *readonlyAPIService
- func NewTencentAPIService(region string, rate int, secretId string, secretKey string, ...) *defaultTencentAPIService
- func NewTencentClientSetService(region string, rate int, secretId string, secretKey string, ...) *defaultTencentClientSetService
- func RandStringRunes(n int) string
- func RandUint64() uint64
- type Action
- type TencentAPIService
- type TencentClientSetService
Constants ¶
This section is empty.
Variables ¶
View Source
var ( /* PrivateDNS */ CreatePrivateZoneRecord = Action{Service: "PrivateDns", Name: "CreatePrivateZoneRecord", ReadOnly: false} DeletePrivateZoneRecord = Action{Service: "PrivateDns", Name: "DeletePrivateZoneRecord", ReadOnly: false} ModifyPrivateZoneRecord = Action{Service: "PrivateDns", Name: "ModifyPrivateZoneRecord", ReadOnly: false} DescribePrivateZoneList = Action{Service: "PrivateDns", Name: "DescribePrivateZoneList", ReadOnly: true} DescribePrivateZoneRecordList = Action{Service: "PrivateDns", Name: "DescribePrivateZoneRecordList", ReadOnly: true} /* DNSPod */ DescribeDomainList = Action{Service: "DnsPod", Name: "DescribeDomainList", ReadOnly: true} DescribeRecordList = Action{Service: "DnsPod", Name: "DescribeRecordList", ReadOnly: true} CreateRecord = Action{Service: "DnsPod", Name: "CreateRecord", ReadOnly: false} DeleteRecord = Action{Service: "DnsPod", Name: "DeleteRecord", ReadOnly: false} ModifyRecord = Action{Service: "DnsPod", Name: "ModifyRecord", ReadOnly: false} )
Functions ¶
func APIErrorRecord ¶
func JsonWrapper ¶
func JsonWrapper(obj interface{}) string
func NewMockService ¶
func NewMockService(privateZones []*privatedns.PrivateZone, privateZoneRecords map[string][]*privatedns.PrivateZoneRecord, dnspodDomains []*dnspod.DomainListItem, dnspodRecords map[string][]*dnspod.RecordListItem) *mockAPIService
func NewReadOnlyAPIService ¶
func NewTencentAPIService ¶
func RandStringRunes ¶
func RandUint64 ¶
func RandUint64() uint64
Types ¶
type TencentAPIService ¶
type TencentAPIService interface { // PrivateDNS CreatePrivateZoneRecord(request *privatedns.CreatePrivateZoneRecordRequest) (response *privatedns.CreatePrivateZoneRecordResponse, err error) DeletePrivateZoneRecord(request *privatedns.DeletePrivateZoneRecordRequest) (response *privatedns.DeletePrivateZoneRecordResponse, err error) ModifyPrivateZoneRecord(request *privatedns.ModifyPrivateZoneRecordRequest) (response *privatedns.ModifyPrivateZoneRecordResponse, err error) DescribePrivateZoneList(request *privatedns.DescribePrivateZoneListRequest) (response *privatedns.DescribePrivateZoneListResponse, err error) DescribePrivateZoneRecordList(request *privatedns.DescribePrivateZoneRecordListRequest) (response *privatedns.DescribePrivateZoneRecordListResponse, err error) // DNSPod DescribeDomainList(request *dnspod.DescribeDomainListRequest) (response *dnspod.DescribeDomainListResponse, err error) DescribeRecordList(request *dnspod.DescribeRecordListRequest) (response *dnspod.DescribeRecordListResponse, err error) CreateRecord(request *dnspod.CreateRecordRequest) (response *dnspod.CreateRecordResponse, err error) DeleteRecord(request *dnspod.DeleteRecordRequest) (response *dnspod.DeleteRecordResponse, err error) ModifyRecord(request *dnspod.ModifyRecordRequest) (response *dnspod.ModifyRecordResponse, err error) }
type TencentClientSetService ¶
Click to show internal directories.
Click to hide internal directories.