Documentation ¶
Index ¶
- Variables
- func NewDefaultServiceInfo() *base.Client
- type AZ
- type BatchCreateRecordRequest
- type BatchCreateRecordResponse
- type BatchDeleteRecordRequest
- type BatchUpdateRecordRequest
- type BindVPCRequest
- type CRecord
- type Caller
- type Client
- func (c *Client) BatchCreateRecord(ctx context.Context, data *BatchCreateRecordRequest) (*BatchCreateRecordResponse, error)
- func (c *Client) BatchDeleteRecord(ctx context.Context, data *BatchDeleteRecordRequest) error
- func (c *Client) BatchUpdateRecord(ctx context.Context, data *BatchUpdateRecordRequest) error
- func (c *Client) BindVPC(ctx context.Context, data *BindVPCRequest) error
- func (c *Client) CreatePrivateZone(ctx context.Context, data *CreatePrivateZoneRequest) (*CreatePrivateZoneResponse, error)
- func (c *Client) CreateRecord(ctx context.Context, data *CreateRecordRequest) (*CreateRecordResponse, error)
- func (c *Client) DeletePrivateZone(ctx context.Context, data *DeletePrivateZoneRequest) error
- func (c *Client) DeleteRecord(ctx context.Context, data *DeleteRecordRequest) error
- func (c *Client) IncBindVPC(ctx context.Context, data *IncBindVPCRequest) error
- func (c *Client) ListAvailabilityZones(ctx context.Context, data *ListAvailabilityZonesRequest) (*ListAvailabilityZonesResponse, error)
- func (c *Client) ListBindVPC(ctx context.Context, data *ListBindVPCRequest) (*ListBindVPCResponse, error)
- func (c *Client) ListDomainStatistics(ctx context.Context, data *ListDomainStatisticsRequest) (*ListDomainStatisticsResponse, error)
- func (c *Client) ListPrivateZones(ctx context.Context, data *ListPrivateZonesRequest) (*ListPrivateZonesResponse, error)
- func (c *Client) ListRecordAttributes(ctx context.Context, data *ListRecordAttributesRequest) (*ListRecordAttributesResponse, error)
- func (c *Client) ListRecordSets(ctx context.Context, data *ListRecordSetsRequest) (*ListRecordSetsResponse, error)
- func (c *Client) ListRecords(ctx context.Context, data *ListRecordsRequest) (*ListRecordsResponse, error)
- func (c *Client) ListRegions(ctx context.Context, data *ListRegionsRequest) (*ListRegionsResponse, error)
- func (c *Client) ListZoneStatistics(ctx context.Context, data *ListZoneStatisticsRequest) (*ListZoneStatisticsResponse, error)
- func (c *Client) QueryDomainStatistics(ctx context.Context, data *QueryDomainStatisticsRequest) (QueryDomainStatisticsResponse, error)
- func (c *Client) QueryPrivateZone(ctx context.Context, data *QueryPrivateZoneRequest) (*QueryPrivateZoneResponse, error)
- func (c *Client) QueryZoneStatistics(ctx context.Context, data *QueryZoneStatisticsRequest) (QueryZoneStatisticsResponse, error)
- func (c *Client) UpdatePrivateZone(ctx context.Context, data *UpdatePrivateZoneRequest) (*UpdatePrivateZoneResponse, error)
- func (c *Client) UpdateRecord(ctx context.Context, data *UpdateRecordRequest) error
- func (c *Client) UpdateRecordSet(ctx context.Context, data *UpdateRecordSetRequest) (*UpdateRecordSetResponse, error)
- type CreatePrivateZoneRequest
- type CreatePrivateZoneResponse
- type CreateRecordRequest
- type CreateRecordResponse
- type DeletePrivateZoneRequest
- type DeleteRecordRequest
- type IncBindVPCRequest
- type ListAvailabilityZonesRequest
- type ListAvailabilityZonesResponse
- type ListBindVPCRequest
- type ListBindVPCResponse
- type ListDomainStatisticsRequest
- type ListDomainStatisticsResponse
- type ListPrivateZonesRequest
- type ListPrivateZonesResponse
- type ListRecordAttributesRequest
- type ListRecordAttributesResponse
- type ListRecordSetsRequest
- type ListRecordSetsResponse
- type ListRecordsRequest
- type ListRecordsResponse
- type ListRegionsRequest
- type ListRegionsResponse
- type ListZoneStatisticsRequest
- type ListZoneStatisticsResponse
- type QueryDomainStatisticsRequest
- type QueryDomainStatisticsResponse
- type QueryPrivateZoneRequest
- type QueryPrivateZoneResponse
- type QueryZoneStatisticsRequest
- type QueryZoneStatisticsResponse
- type Record
- type Region
- type TOPError
- type TopGroupStat
- type TopPrivateZoneResponse
- type TopRecordSetResp
- type TopRespError
- type TopRespMeta
- type TopResponse
- type TopStat
- type URecord
- type UpdatePrivateZoneRequest
- type UpdatePrivateZoneResponse
- type UpdateRecordRequest
- type UpdateRecordSetRequest
- type UpdateRecordSetResponse
- type VPC
- type VolcCaller
- func (c *VolcCaller) Do(r *http.Request) (*http.Response, error)
- func (p *VolcCaller) GetServiceInfo() *base.ServiceInfo
- func (p *VolcCaller) SetHost(host string)
- func (p *VolcCaller) SetRegion(region string)
- func (p *VolcCaller) SetSchema(schema string)
- func (p *VolcCaller) SetService(service string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultRegion string ServiceVersion string ServiceName string ServiceHost string Timeout int ServiceInfo *base.ServiceInfo )
Functions ¶
func NewDefaultServiceInfo ¶
Types ¶
type BatchCreateRecordResponse ¶
type BatchCreateRecordResponse struct {
RecordIDs []string `form:"RecordIDs" json:"RecordIDs,omitempty"`
}
type BindVPCRequest ¶
type CRecord ¶
type CRecord struct { Host *string `form:"Host" json:"Host,omitempty"` Line *string `form:"Line" json:"Line,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` TTL *int64 `form:"TTL" json:"TTL,omitempty"` Type *string `form:"Type" json:"Type,omitempty"` Value *string `form:"Value" json:"Value,omitempty"` Weight *int64 `form:"Weight" json:"Weight,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func InitDNSVolcClient ¶
func InitDNSVolcClient() *Client
func (*Client) BatchCreateRecord ¶
func (c *Client) BatchCreateRecord(ctx context.Context, data *BatchCreateRecordRequest) (*BatchCreateRecordResponse, error)
func (*Client) BatchDeleteRecord ¶
func (c *Client) BatchDeleteRecord(ctx context.Context, data *BatchDeleteRecordRequest) error
func (*Client) BatchUpdateRecord ¶
func (c *Client) BatchUpdateRecord(ctx context.Context, data *BatchUpdateRecordRequest) error
func (*Client) CreatePrivateZone ¶
func (c *Client) CreatePrivateZone(ctx context.Context, data *CreatePrivateZoneRequest) (*CreatePrivateZoneResponse, error)
func (*Client) CreateRecord ¶
func (c *Client) CreateRecord(ctx context.Context, data *CreateRecordRequest) (*CreateRecordResponse, error)
func (*Client) DeletePrivateZone ¶
func (c *Client) DeletePrivateZone(ctx context.Context, data *DeletePrivateZoneRequest) error
func (*Client) DeleteRecord ¶
func (c *Client) DeleteRecord(ctx context.Context, data *DeleteRecordRequest) error
func (*Client) IncBindVPC ¶
func (c *Client) IncBindVPC(ctx context.Context, data *IncBindVPCRequest) error
func (*Client) ListAvailabilityZones ¶
func (c *Client) ListAvailabilityZones(ctx context.Context, data *ListAvailabilityZonesRequest) (*ListAvailabilityZonesResponse, error)
func (*Client) ListBindVPC ¶
func (c *Client) ListBindVPC(ctx context.Context, data *ListBindVPCRequest) (*ListBindVPCResponse, error)
func (*Client) ListDomainStatistics ¶
func (c *Client) ListDomainStatistics(ctx context.Context, data *ListDomainStatisticsRequest) (*ListDomainStatisticsResponse, error)
func (*Client) ListPrivateZones ¶
func (c *Client) ListPrivateZones(ctx context.Context, data *ListPrivateZonesRequest) (*ListPrivateZonesResponse, error)
func (*Client) ListRecordAttributes ¶
func (c *Client) ListRecordAttributes(ctx context.Context, data *ListRecordAttributesRequest) (*ListRecordAttributesResponse, error)
func (*Client) ListRecordSets ¶
func (c *Client) ListRecordSets(ctx context.Context, data *ListRecordSetsRequest) (*ListRecordSetsResponse, error)
func (*Client) ListRecords ¶
func (c *Client) ListRecords(ctx context.Context, data *ListRecordsRequest) (*ListRecordsResponse, error)
func (*Client) ListRegions ¶
func (c *Client) ListRegions(ctx context.Context, data *ListRegionsRequest) (*ListRegionsResponse, error)
func (*Client) ListZoneStatistics ¶
func (c *Client) ListZoneStatistics(ctx context.Context, data *ListZoneStatisticsRequest) (*ListZoneStatisticsResponse, error)
func (*Client) QueryDomainStatistics ¶
func (c *Client) QueryDomainStatistics(ctx context.Context, data *QueryDomainStatisticsRequest) (QueryDomainStatisticsResponse, error)
func (*Client) QueryPrivateZone ¶
func (c *Client) QueryPrivateZone(ctx context.Context, data *QueryPrivateZoneRequest) (*QueryPrivateZoneResponse, error)
func (*Client) QueryZoneStatistics ¶
func (c *Client) QueryZoneStatistics(ctx context.Context, data *QueryZoneStatisticsRequest) (QueryZoneStatisticsResponse, error)
func (*Client) UpdatePrivateZone ¶
func (c *Client) UpdatePrivateZone(ctx context.Context, data *UpdatePrivateZoneRequest) (*UpdatePrivateZoneResponse, error)
func (*Client) UpdateRecord ¶
func (c *Client) UpdateRecord(ctx context.Context, data *UpdateRecordRequest) error
func (*Client) UpdateRecordSet ¶
func (c *Client) UpdateRecordSet(ctx context.Context, data *UpdateRecordSetRequest) (*UpdateRecordSetResponse, error)
type CreatePrivateZoneRequest ¶
type CreatePrivateZoneRequest struct { LineMode *int64 `form:"LineMode" json:"LineMode,omitempty"` RecursionMode *bool `form:"RecursionMode" json:"RecursionMode,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` VPCs map[string][]string `form:"VPCs" json:"VPCs,omitempty"` ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"` }
type CreatePrivateZoneResponse ¶
type CreatePrivateZoneResponse struct {
ZID *int64 `form:"ZID" json:"ZID,omitempty"`
}
type CreateRecordRequest ¶
type CreateRecordRequest struct { Host *string `form:"Host" json:"Host,omitempty"` Line *string `form:"Line" json:"Line,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` TTL *int64 `form:"TTL" json:"TTL,omitempty"` Type *string `form:"Type" json:"Type,omitempty"` Value *string `form:"Value" json:"Value,omitempty"` Weight *int64 `form:"Weight" json:"Weight,omitempty"` ZID *int64 `form:"ZID" json:"ZID,omitempty"` }
type CreateRecordResponse ¶
type CreateRecordResponse struct {
RecordID *string `form:"RecordID" json:"RecordID,omitempty"`
}
type DeleteRecordRequest ¶
type DeleteRecordRequest struct {
RecordID *string `form:"RecordID" json:"RecordID,omitempty"`
}
type IncBindVPCRequest ¶
type ListAvailabilityZonesRequest ¶
type ListAvailabilityZonesRequest struct {
Region *string `form:"Region" json:"Region,omitempty"`
}
type ListAvailabilityZonesResponse ¶
type ListAvailabilityZonesResponse struct {
AZs []AZ `form:"AZs" json:"AZs,omitempty"`
}
type ListBindVPCRequest ¶
type ListBindVPCResponse ¶
type ListDomainStatisticsRequest ¶
type ListDomainStatisticsRequest struct { End *int64 `form:"End" json:"End,omitempty"` Name *string `form:"Name" json:"Name,omitempty"` Page *int64 `form:"Page" json:"Page,omitempty"` SearchMode *string `form:"SearchMode" json:"SearchMode,omitempty"` Size *int64 `form:"Size" json:"Size,omitempty"` Start *int64 `form:"Start" json:"Start,omitempty"` ZID *int64 `form:"ZID" json:"ZID,omitempty"` }
type ListDomainStatisticsResponse ¶
type ListDomainStatisticsResponse struct { Data []TopGroupStat `form:"Data" json:"Data,omitempty"` Page *int64 `form:"Page" json:"Page,omitempty"` Size *int64 `form:"Size" json:"Size,omitempty"` Total *int64 `form:"Total" json:"Total,omitempty"` }
type ListPrivateZonesRequest ¶
type ListPrivateZonesRequest struct { KeyWord *string `form:"-" json:"-"` LineMode *string `form:"-" json:"-"` PageNumber *string `form:"-" json:"-"` PageSize *string `form:"-" json:"-"` RecursionMode *string `form:"-" json:"-"` Region *string `form:"-" json:"-"` SearchMode *string `form:"-" json:"-"` VpcID *string `form:"-" json:"-"` }
type ListPrivateZonesResponse ¶
type ListPrivateZonesResponse struct { Total *int64 `form:"Total" json:"Total,omitempty"` Zones []TopPrivateZoneResponse `form:"Zones" json:"Zones,omitempty"` }
type ListRecordAttributesRequest ¶
type ListRecordAttributesRequest struct {
ZID *string `form:"-" json:"-"`
}
type ListRecordSetsRequest ¶
type ListRecordSetsResponse ¶
type ListRecordSetsResponse struct { PageNumber *int64 `form:"PageNumber" json:"PageNumber,omitempty"` PageSize *int64 `form:"PageSize" json:"PageSize,omitempty"` RecordSets []TopRecordSetResp `form:"RecordSets" json:"RecordSets,omitempty"` TotalCount *int64 `form:"TotalCount" json:"TotalCount,omitempty"` }
type ListRecordsRequest ¶
type ListRecordsRequest struct { Host *string `form:"-" json:"-"` LastOperator *string `form:"-" json:"-"` Line *string `form:"-" json:"-"` Name *string `form:"-" json:"-"` PageNumber *string `form:"-" json:"-"` PageSize *string `form:"-" json:"-"` SearchMode *string `form:"-" json:"-"` SearchOrder *string `form:"-" json:"-"` Type *string `form:"-" json:"-"` Value *string `form:"-" json:"-"` ZID *string `form:"-" json:"-"` }
type ListRecordsResponse ¶
type ListRegionsRequest ¶
type ListRegionsResponse ¶
type ListRegionsResponse struct {
Regions []Region `form:"Regions" json:"Regions,omitempty"`
}
type ListZoneStatisticsRequest ¶
type ListZoneStatisticsRequest struct { End *int64 `form:"End" json:"End,omitempty"` Name *string `form:"Name" json:"Name,omitempty"` Page *int64 `form:"Page" json:"Page,omitempty"` SearchMode *string `form:"SearchMode" json:"SearchMode,omitempty"` Size *int64 `form:"Size" json:"Size,omitempty"` Start *int64 `form:"Start" json:"Start,omitempty"` }
type ListZoneStatisticsResponse ¶
type ListZoneStatisticsResponse struct { Data []TopGroupStat `form:"Data" json:"Data,omitempty"` PageNumber *int64 `form:"PageNumber" json:"PageNumber,omitempty"` PageSize *int64 `form:"PageSize" json:"PageSize,omitempty"` Total *int64 `form:"Total" json:"Total,omitempty"` }
type QueryDomainStatisticsResponse ¶
type QueryDomainStatisticsResponse []TopStat
type QueryPrivateZoneRequest ¶
type QueryPrivateZoneRequest struct {
ZID *string `form:"-" json:"-"`
}
type QueryPrivateZoneResponse ¶
type QueryPrivateZoneResponse struct { BindVPCs []VPC `form:"BindVPCs" json:"BindVPCs,omitempty"` CreatedAt *string `form:"CreatedAt" json:"CreatedAt,omitempty"` LastOperator *string `form:"LastOperator" json:"LastOperator,omitempty"` LineMode *int64 `form:"LineMode" json:"LineMode,omitempty"` RecordCount *int64 `form:"RecordCount" json:"RecordCount,omitempty"` RecursionMode *bool `form:"RecursionMode" json:"RecursionMode,omitempty"` Region []string `form:"Region" json:"Region,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` UpdatedAt *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"` ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"` }
type QueryZoneStatisticsResponse ¶
type QueryZoneStatisticsResponse []TopStat
type Record ¶
type Record struct { CreatedAt *string `form:"CreatedAt" json:"CreatedAt,omitempty"` Host *string `form:"Host" json:"Host,omitempty"` LastOperator *string `form:"LastOperator" json:"LastOperator,omitempty"` Line *string `form:"Line" json:"Line,omitempty"` RecordID *string `form:"RecordID" json:"RecordID,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` TTL *int64 `form:"TTL" json:"TTL,omitempty"` Type *string `form:"Type" json:"Type,omitempty"` UpdatedAt *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"` Value *string `form:"Value" json:"Value,omitempty"` Weight *int64 `form:"Weight" json:"Weight,omitempty"` ZID *int64 `form:"ZID" json:"ZID,omitempty"` }
type TOPError ¶
type TOPError struct { Code string `form:"Code" json:"Code"` CodeN int64 `form:"CodeN" json:"CodeN"` Message string `form:"Message" json:"Message"` RequestID string `form:"RequestId" json:"RequestId"` }
func NewTOPError ¶
func NewTOPError(respMeta *TopRespMeta) *TOPError
type TopGroupStat ¶
type TopPrivateZoneResponse ¶
type TopPrivateZoneResponse struct { CreatedAt *string `form:"CreatedAt" json:"CreatedAt,omitempty"` LastOperator *string `form:"LastOperator" json:"LastOperator,omitempty"` LineMode *int64 `form:"LineMode" json:"LineMode,omitempty"` RecordCount *int64 `form:"RecordCount" json:"RecordCount,omitempty"` RecursionMode *bool `form:"RecursionMode" json:"RecursionMode,omitempty"` Region []string `form:"Region" json:"Region,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` UpdatedAt *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"` ZID *int64 `form:"ZID" json:"ZID,omitempty"` ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"` }
type TopRecordSetResp ¶
type TopRecordSetResp struct { FQDN *string `form:"FQDN" json:"FQDN,omitempty"` Host *string `form:"Host" json:"Host,omitempty"` ID *string `form:"ID" json:"ID,omitempty"` Line *string `form:"Line" json:"Line,omitempty"` Type *string `form:"Type" json:"Type,omitempty"` WeightEnabled *bool `form:"WeightEnabled" json:"WeightEnabled,omitempty"` }
type TopRespError ¶
type TopRespMeta ¶
type TopRespMeta struct { Action string `form:"Action" json:"Action"` Error TopRespError `form:"Error" json:"Error"` Region string `form:"Region" json:"Region"` RequestID string `form:"RequestId" json:"RequestId"` Service string `form:"Service" json:"Service"` Version string `form:"Version" json:"Version"` }
type TopResponse ¶
type TopResponse struct { ResponseMetadata TopRespMeta `form:"ResponseMetadata" json:"ResponseMetadata"` Result json.RawMessage `form:"Result" json:"Result"` }
type URecord ¶
type URecord struct { Enable *bool `form:"Enable" json:"Enable,omitempty"` Host *string `form:"Host" json:"Host,omitempty"` Line *string `form:"Line" json:"Line,omitempty"` RecordID *string `form:"RecordID" json:"RecordID,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` TTL *int64 `form:"TTL" json:"TTL,omitempty"` Type *string `form:"Type" json:"Type,omitempty"` Value *string `form:"Value" json:"Value,omitempty"` Weight *int64 `form:"Weight" json:"Weight,omitempty"` }
type UpdatePrivateZoneResponse ¶
type UpdatePrivateZoneResponse struct { CreatedAt *string `form:"CreatedAt" json:"CreatedAt,omitempty"` LastOperator *string `form:"LastOperator" json:"LastOperator,omitempty"` LineMode *int64 `form:"LineMode" json:"LineMode,omitempty"` RecordCount *int64 `form:"RecordCount" json:"RecordCount,omitempty"` RecursionMode *bool `form:"RecursionMode" json:"RecursionMode,omitempty"` Region []string `form:"Region" json:"Region,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` UpdatedAt *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"` ZID *int64 `form:"ZID" json:"ZID,omitempty"` ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"` }
type UpdateRecordRequest ¶
type UpdateRecordRequest struct { Enable *bool `form:"Enable" json:"Enable,omitempty"` Host *string `form:"Host" json:"Host,omitempty"` Line *string `form:"Line" json:"Line,omitempty"` RecordID *string `form:"RecordID" json:"RecordID,omitempty"` Remark *string `form:"Remark" json:"Remark,omitempty"` TTL *int64 `form:"TTL" json:"TTL,omitempty"` Type *string `form:"Type" json:"Type,omitempty"` Value *string `form:"Value" json:"Value,omitempty"` Weight *int64 `form:"Weight" json:"Weight,omitempty"` }
type UpdateRecordSetRequest ¶
type UpdateRecordSetResponse ¶
type UpdateRecordSetResponse struct { FQDN *string `form:"FQDN" json:"FQDN,omitempty"` Host *string `form:"Host" json:"Host,omitempty"` ID *string `form:"ID" json:"ID,omitempty"` Line *string `form:"Line" json:"Line,omitempty"` Type *string `form:"Type" json:"Type,omitempty"` WeightEnabled *bool `form:"WeightEnabled" json:"WeightEnabled,omitempty"` }
type VolcCaller ¶
func NewVolcCaller ¶
func NewVolcCaller() *VolcCaller
func (*VolcCaller) GetServiceInfo ¶
func (p *VolcCaller) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface
func (*VolcCaller) SetHost ¶
func (p *VolcCaller) SetHost(host string)
func (*VolcCaller) SetRegion ¶
func (p *VolcCaller) SetRegion(region string)
func (*VolcCaller) SetSchema ¶
func (p *VolcCaller) SetSchema(schema string)
func (*VolcCaller) SetService ¶
func (p *VolcCaller) SetService(service string)
Click to show internal directories.
Click to hide internal directories.