dns

package
v1.0.174 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

README

DNS SDK 使用指南

  1. 添加环境变量,填写 config.go 中的账号等关键信息

    环境变量

    export VOLC_ACCESSKEY=
    export VOLC_SECRETKEY=
    
  2. 运行 demo_dns_test.go 中的测试代码

Documentation

Index

Constants

View Source
const (
	DefaultRegion  = "cn-beijing"
	ServiceVersion = "2018-08-01"
	ServiceName    = "dns"
	Timeout        = 15
)

Variables

View Source
var (
	ServiceInfo = &base.ServiceInfo{
		Timeout: Timeout * time.Second,
		Host:    "open.volcengineapi.com",
		Header: http.Header{
			"Accept": []string{"application/json"},
		},
		Scheme: "http",
		Credentials: base.Credentials{
			Service:         ServiceName,
			Region:          DefaultRegion,
			AccessKeyID:     os.Getenv("VOLC_ACCESSKEY"),
			SecretAccessKey: os.Getenv("VOLC_SECRETKEY"),
		},
	}
)

Functions

func NewDefaultServiceInfo

func NewDefaultServiceInfo() *base.Client

Types

type AddressConfig

type AddressConfig struct {
	RecordID *int64 `form:"RecordID" json:"RecordID,omitempty"`
	Disable  *bool  `form:"disable" json:"disable,omitempty"`
	TTL      *int64 `form:"ttl" json:"ttl,omitempty"`
	Weight   *int64 `form:"weight" json:"weight,omitempty"`
}

type BatchDeleteCustomLineRequest added in v1.0.99

type BatchDeleteCustomLineRequest struct {
	Lines []string `form:"Lines" json:"Lines,omitempty"`
}

type BatchDeleteCustomLineResponse added in v1.0.99

type BatchDeleteCustomLineResponse struct {
	TotalCount *int64 `form:"TotalCount" json:"TotalCount,omitempty"`
}

type Caller

type Caller interface {
	Do(*http.Request) (*http.Response, error)
}

type CheckRetrieveZoneRequest

type CheckRetrieveZoneRequest struct {
	ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type CheckRetrieveZoneResponse

type CheckRetrieveZoneResponse struct {
	Success *string `form:"Success" json:"Success,omitempty"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(c Caller) *Client

func (*Client) BatchDeleteCustomLine added in v1.0.99

func (c *Client) BatchDeleteCustomLine(ctx context.Context, data *BatchDeleteCustomLineRequest) (*BatchDeleteCustomLineResponse, error)

func (*Client) CheckRetrieveZone

func (c *Client) CheckRetrieveZone(ctx context.Context, data *CheckRetrieveZoneRequest) (*CheckRetrieveZoneResponse, error)

func (*Client) CreateCustomLine added in v1.0.99

func (c *Client) CreateCustomLine(ctx context.Context, data *CreateCustomLineRequest) (*CreateCustomLineResponse, error)

func (*Client) CreateRecord

func (c *Client) CreateRecord(ctx context.Context, data *CreateRecordRequest) (*CreateRecordResponse, error)

func (*Client) CreateZone

func (c *Client) CreateZone(ctx context.Context, data *CreateZoneRequest) (*CreateZoneResponse, error)

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(ctx context.Context, data *DeleteRecordRequest) error

func (*Client) DeleteZone

func (c *Client) DeleteZone(ctx context.Context, data *DeleteZoneRequest) error

func (*Client) ListCustomLines added in v1.0.99

func (c *Client) ListCustomLines(ctx context.Context, data *ListCustomLinesRequest) (*ListCustomLinesResponse, error)

func (*Client) ListDomainStatistics

func (c *Client) ListDomainStatistics(ctx context.Context, data *ListDomainStatisticsRequest) (*ListDomainStatisticsResponse, error)

func (*Client) ListLines

func (c *Client) ListLines(ctx context.Context, data *ListLinesRequest) (*ListLinesResponse, error)

func (*Client) ListRecordAttributes

func (c *Client) ListRecordAttributes(ctx context.Context, data *ListRecordAttributesRequest) (*ListRecordAttributesResponse, error)

func (*Client) ListRecordDigestByLine

func (c *Client) ListRecordDigestByLine(ctx context.Context, data *ListRecordDigestByLineRequest) (*ListRecordDigestByLineResponse, 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) ListRecordsAdvance

func (c *Client) ListRecordsAdvance(ctx context.Context, data *ListRecordsAdvanceRequest) (*ListRecordsAdvanceResponse, error)

func (*Client) ListZoneStatistics

func (c *Client) ListZoneStatistics(ctx context.Context, data *ListZoneStatisticsRequest) (*ListZoneStatisticsResponse, error)

func (*Client) ListZones

func (c *Client) ListZones(ctx context.Context, data *ListZonesRequest) (*ListZonesResponse, error)

func (*Client) ListZonesNameServer

func (c *Client) ListZonesNameServer(ctx context.Context, data *ListZonesNameServerRequest) (*ListZonesNameServerResponse, error)

func (*Client) QueryDomainStatistics

func (*Client) QueryRecord

func (c *Client) QueryRecord(ctx context.Context, data *QueryRecordRequest) (*QueryRecordResponse, error)

func (*Client) QueryZone

func (c *Client) QueryZone(ctx context.Context, data *QueryZoneRequest) (*QueryZoneResponse, error)

func (*Client) QueryZoneStatistics

func (c *Client) QueryZoneStatistics(ctx context.Context, data *QueryZoneStatisticsRequest) (QueryZoneStatisticsResponse, error)

func (*Client) RetrieveZone

func (c *Client) RetrieveZone(ctx context.Context, data *RetrieveZoneRequest) (*RetrieveZoneResponse, error)

func (*Client) SyncFullRecordsV2

func (c *Client) SyncFullRecordsV2(ctx context.Context, data *SyncFullRecordsV2Request) (*SyncFullRecordsV2Response, error)

func (*Client) UpdateCustomLine added in v1.0.99

func (c *Client) UpdateCustomLine(ctx context.Context, data *UpdateCustomLineRequest) (*UpdateCustomLineResponse, error)

func (*Client) UpdateRecord

func (c *Client) UpdateRecord(ctx context.Context, data *UpdateRecordRequest) (*UpdateRecordResponse, error)

func (*Client) UpdateRecordSet

func (c *Client) UpdateRecordSet(ctx context.Context, data *UpdateRecordSetRequest) (*UpdateRecordSetResponse, error)

func (*Client) UpdateRecordStatus

func (c *Client) UpdateRecordStatus(ctx context.Context, data *UpdateRecordStatusRequest) (*UpdateRecordStatusResponse, error)

func (*Client) UpdateZone

func (c *Client) UpdateZone(ctx context.Context, data *UpdateZoneRequest) (*UpdateZoneResponse, error)

type CreateCustomLineRequest added in v1.0.99

type CreateCustomLineRequest struct {
	IpSegments []string `form:"IpSegments" json:"IpSegments,omitempty"`
	NameCN     *string  `form:"NameCN" json:"NameCN,omitempty"`
	Remark     *string  `form:"Remark" json:"Remark,omitempty"`
}

type CreateCustomLineResponse added in v1.0.99

type CreateCustomLineResponse struct {
	Line *string `form:"Line" json:"Line,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 {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,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"`
}

type CreateZoneRequest

type CreateZoneRequest struct {
	Remark   *string `form:"Remark" json:"Remark,omitempty"`
	ZoneName string  `form:"ZoneName" json:"ZoneName"`
}

type CreateZoneResponse

type CreateZoneResponse struct {
	CacheStage        *int64  `form:"CacheStage" json:"CacheStage,omitempty"`
	ConfigurationCode *string `form:"ConfigurationCode" json:"ConfigurationCode,omitempty"`
	CreatedAt         *string `form:"CreatedAt" json:"CreatedAt,omitempty"`
	ExpiredTime       *int64  `form:"ExpiredTime" json:"ExpiredTime,omitempty"`
	InstanceID        *string `form:"InstanceID" json:"InstanceID,omitempty"`
	LastOperator      *string `form:"LastOperator" json:"LastOperator,omitempty"`
	RecordCount       *int64  `form:"RecordCount" json:"RecordCount,omitempty"`
	Remark            *string `form:"Remark" json:"Remark,omitempty"`
	TradeCode         *string `form:"TradeCode" json:"TradeCode,omitempty"`
	UpdatedAt         *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	ZID               *int64  `form:"ZID" json:"ZID,omitempty"`
	ZoneName          *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type CustomerLine

type CustomerLine struct {
	CreatedAt  *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	IPSegments []string `form:"IPSegments" json:"IPSegments,omitempty"`
	Line       *string  `form:"Line" json:"Line,omitempty"`
	NameCN     *string  `form:"NameCN" json:"NameCN,omitempty"`
	Remark     *string  `form:"Remark" json:"Remark,omitempty"`
	UpdatedAt  *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
}

type DeleteRecordRequest

type DeleteRecordRequest struct {
	RecordID *string `form:"RecordID" json:"RecordID,omitempty"`
}

type DeleteZoneRequest

type DeleteZoneRequest struct {
	ZID *int64 `form:"ZID" json:"ZID,omitempty"`
}

type ListCustomLinesRequest added in v1.0.99

type ListCustomLinesRequest struct {
	IPSegment  *string `form:"-" json:"-"`
	Line       *string `form:"-" json:"-"`
	NameCN     *string `form:"-" json:"-"`
	PageNumber *string `form:"-" json:"-"`
	PageSize   *string `form:"-" json:"-"`
	Remark     *string `form:"-" json:"-"`
	SearchMode *string `form:"-" json:"-"`
}

type ListCustomLinesResponse added in v1.0.99

type ListCustomLinesResponse struct {
	CustomerLines  []CustomerLine `form:"CustomerLines" json:"CustomerLines,omitempty"`
	IPSegmentCount *int64         `form:"IPSegmentCount" json:"IPSegmentCount,omitempty"`
	PageNumber     *int64         `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize       *int64         `form:"PageSize" json:"PageSize,omitempty"`
	TotalCount     *int64         `form:"TotalCount" json:"TotalCount,omitempty"`
}

type ListDomainStatisticsRequest

type ListDomainStatisticsRequest struct {
	End        *string `form:"-" json:"-"`
	Name       *string `form:"-" json:"-"`
	PageNumber *string `form:"-" json:"-"`
	PageSize   *string `form:"-" json:"-"`
	SearchMode *string `form:"-" json:"-"`
	Start      *string `form:"-" json:"-"`
	Threshold  *string `form:"-" json:"-"`
	ZID        *string `form:"-" json:"-"`
}

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 ListLinesRequest

type ListLinesRequest struct {
	Hierarchy  *string `form:"-" json:"-"`
	PageNumber *string `form:"-" json:"-"`
	PageSize   *string `form:"-" json:"-"`
	Type       *string `form:"-" json:"-"`
	ZID        *string `form:"-" json:"-"`
}

type ListLinesResponse

type ListLinesResponse struct {
	Lines      []TopLineResponse `form:"Lines" json:"Lines,omitempty"`
	PageNumber *int64            `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize   *int64            `form:"PageSize" json:"PageSize,omitempty"`
	TotalCount *int64            `form:"TotalCount" json:"TotalCount,omitempty"`
}

type ListRecordAttributesRequest

type ListRecordAttributesRequest struct {
	ZID *string `form:"-" json:"-"`
}

type ListRecordAttributesResponse

type ListRecordAttributesResponse struct {
	BackupSchedules       []int64  `form:"BackupSchedules" json:"BackupSchedules,omitempty"`
	LineLevelLimit        []int64  `form:"LineLevelLimit" json:"LineLevelLimit,omitempty"`
	LoadBalancerLimit     *int64   `form:"LoadBalancerLimit" json:"LoadBalancerLimit,omitempty"`
	RecordStatisticsLimit *bool    `form:"RecordStatisticsLimit" json:"RecordStatisticsLimit,omitempty"`
	RecordTierLimit       *int64   `form:"RecordTierLimit" json:"RecordTierLimit,omitempty"`
	TTLs                  []int64  `form:"TTLs" json:"TTLs,omitempty"`
	Types                 []string `form:"Types" json:"Types,omitempty"`
	WeightLimit           *int64   `form:"WeightLimit" json:"WeightLimit,omitempty"`
}

type ListRecordDigestByLineRequest

type ListRecordDigestByLineRequest struct {
	Line *string `form:"Line" json:"Line,omitempty"`
}

type ListRecordDigestByLineResponse

type ListRecordDigestByLineResponse struct {
	Line          *string        `form:"Line" json:"Line,omitempty"`
	RecordDigests []RecordDigest `form:"RecordDigests" json:"RecordDigests,omitempty"`
}

type ListRecordSetsRequest

type ListRecordSetsRequest struct {
	Host        *string `form:"-" json:"-"`
	PageNumber  *string `form:"-" json:"-"`
	PageSize    *string `form:"-" json:"-"`
	RecordSetID *string `form:"-" json:"-"`
	SearchMode  *string `form:"-" json:"-"`
	ZID         *string `form:"-" json:"-"`
}

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 ListRecordsAdvanceRequest

type ListRecordsAdvanceRequest struct {
	Enable          *string `form:"-" json:"-"`
	GTMDomainFilter *string `form:"-" json:"-"`
	Host            *string `form:"-" json:"-"`
	LastOperator    *string `form:"-" json:"-"`
	Line            *string `form:"-" json:"-"`
	Name            *string `form:"-" json:"-"`
	OrderKey        *string `form:"-" json:"-"`
	PageNumber      *string `form:"-" json:"-"`
	PageSize        *string `form:"-" json:"-"`
	SearchMode      *string `form:"-" json:"-"`
	SearchOrder     *string `form:"-" json:"-"`
	SubPageNumber   *string `form:"-" json:"-"`
	SubPageSize     *string `form:"-" json:"-"`
	TTL             *string `form:"-" json:"-"`
	Type            *string `form:"-" json:"-"`
	Value           *string `form:"-" json:"-"`
	ZID             *string `form:"-" json:"-"`
}

type ListRecordsAdvanceResponse

type ListRecordsAdvanceResponse struct {
	PageNumber       *int64         `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize         *int64         `form:"PageSize" json:"PageSize,omitempty"`
	SubDomains       []TopSubDomain `form:"SubDomains" json:"SubDomains,omitempty"`
	TotalCount       *int64         `form:"TotalCount" json:"TotalCount,omitempty"`
	TotalRecordCount *int64         `form:"TotalRecordCount" json:"TotalRecordCount,omitempty"`
}

type ListRecordsRequest

type ListRecordsRequest struct {
	Host        *string `form:"-" json:"-"`
	Line        *string `form:"-" json:"-"`
	PageNumber  *string `form:"-" json:"-"`
	PageSize    *string `form:"-" json:"-"`
	RecordSetID *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 ListRecordsResponse struct {
	PageNumber *int64              `form:"PageNumber" json:"PageNumber,omitempty"`
	PageSize   *int64              `form:"PageSize" json:"PageSize,omitempty"`
	Records    []TopRecordResponse `form:"Records" json:"Records,omitempty"`
	TotalCount *int64              `form:"TotalCount" json:"TotalCount,omitempty"`
}

type ListZoneStatisticsRequest

type ListZoneStatisticsRequest struct {
	End        *string `form:"-" json:"-"`
	Name       *string `form:"-" json:"-"`
	PageNumber *string `form:"-" json:"-"`
	PageSize   *string `form:"-" json:"-"`
	SearchMode *string `form:"-" json:"-"`
	Start      *string `form:"-" json:"-"`
	Threshold  *string `form:"-" json:"-"`
}

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 ListZonesNameServerRequest

type ListZonesNameServerRequest struct {
	ZIDs *string `form:"-" json:"-"`
}

type ListZonesNameServerResponse

type ListZonesNameServerResponse struct {
	ZonesNameServer []ZoneNameServerInfo `form:"ZonesNameServer" json:"ZonesNameServer,omitempty"`
}

type ListZonesRequest

type ListZonesRequest struct {
	AboutToExpire *string `form:"-" json:"-"`
	Key           *string `form:"-" json:"-"`
	OrderKey      *string `form:"-" json:"-"`
	PageNumber    *string `form:"-" json:"-"`
	PageSize      *string `form:"-" json:"-"`
	Remark        *string `form:"-" json:"-"`
	SearchMode    *string `form:"-" json:"-"`
	SearchOrder   *string `form:"-" json:"-"`
	Stage         *string `form:"-" json:"-"`
	TradeCode     *string `form:"-" json:"-"`
}

type ListZonesResponse

type ListZonesResponse struct {
	Total *int64            `form:"Total" json:"Total,omitempty"`
	Zones []TopZoneResponse `form:"Zones" json:"Zones,omitempty"`
}

type QueryDomainStatisticsRequest

type QueryDomainStatisticsRequest struct {
	End   *string `form:"-" json:"-"`
	Name  *string `form:"-" json:"-"`
	Start *string `form:"-" json:"-"`
	ZID   *string `form:"-" json:"-"`
}

type QueryDomainStatisticsResponse

type QueryDomainStatisticsResponse []TopStat

type QueryRecordRequest

type QueryRecordRequest struct {
	FQDN     *string `form:"-" json:"-"`
	Line     *string `form:"-" json:"-"`
	PQDN     *string `form:"-" json:"-"`
	RecordID *string `form:"-" json:"-"`
	Type     *string `form:"-" json:"-"`
	Value    *string `form:"-" json:"-"`
}

type QueryRecordResponse

type QueryRecordResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,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"`
}

type QueryZoneRequest

type QueryZoneRequest struct {
	UseAllocateNameServer *string `form:"-" json:"-"`
	ZID                   *string `form:"-" json:"-"`
}

type QueryZoneResponse

type QueryZoneResponse struct {
	AllocateDNSServerList []string `form:"AllocateDNSServerList" json:"AllocateDNSServerList,omitempty"`
	ConfigurationCode     *string  `form:"ConfigurationCode" json:"ConfigurationCode,omitempty"`
	ExpiredTime           *int64   `form:"ExpiredTime" json:"ExpiredTime,omitempty"`
	InstanceNo            *string  `form:"InstanceNo" json:"InstanceNo,omitempty"`
	IsNSCorrect           *bool    `form:"IsNSCorrect" json:"IsNSCorrect,omitempty"`
	RealDNSServerList     []string `form:"RealDNSServerList" json:"RealDNSServerList,omitempty"`
	RecordCount           *int64   `form:"RecordCount" json:"RecordCount,omitempty"`
	Remark                *string  `form:"Remark" json:"Remark,omitempty"`
	Stage                 *int64   `form:"Stage" json:"Stage,omitempty"`
	Status                *int64   `form:"Status" json:"Status,omitempty"`
	TradeCode             *string  `form:"TradeCode" json:"TradeCode,omitempty"`
	UpdatedAt             *string  `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	ZoneName              *string  `form:"ZoneName" json:"ZoneName,omitempty"`
}

type QueryZoneStatisticsRequest

type QueryZoneStatisticsRequest struct {
	End   *string `form:"-" json:"-"`
	Start *string `form:"-" json:"-"`
	ZID   *string `form:"-" json:"-"`
}

type QueryZoneStatisticsResponse

type QueryZoneStatisticsResponse []Stat

type RecordDigest

type RecordDigest struct {
	LineNameCN *string `form:"LineNameCN" json:"LineNameCN,omitempty"`
	Name       *string `form:"Name" json:"Name,omitempty"`
	Type       *string `form:"Type" json:"Type,omitempty"`
}

type RetrieveZoneRequest

type RetrieveZoneRequest struct {
	ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type RetrieveZoneResponse

type RetrieveZoneResponse struct {
	Host     *string `form:"Host" json:"Host,omitempty"`
	Txt      *string `form:"Txt" json:"Txt,omitempty"`
	ZoneName *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type SDKClient

type SDKClient struct {
	Client *base.Client
}

SDKClient .

func (*SDKClient) GetServiceInfo

func (p *SDKClient) GetServiceInfo() *base.ServiceInfo

GetServiceInfo interface

func (*SDKClient) SetHost

func (p *SDKClient) SetHost(host string)

func (*SDKClient) SetRegion

func (p *SDKClient) SetRegion(region string)

func (*SDKClient) SetSchema

func (p *SDKClient) SetSchema(schema string)

type Stat

type Stat struct {
	Error     *int64 `form:"error" json:"error,omitempty"`
	NotExists *int64 `form:"not_exists" json:"not_exists,omitempty"`
	Success   *int64 `form:"success" json:"success,omitempty"`
	Timestamp *int64 `form:"timestamp" json:"timestamp,omitempty"`
	Total     *int64 `form:"total" json:"total,omitempty"`
}

type SyncFullRecordsV2Request

type SyncFullRecordsV2Request struct {
	Await                 *bool                                                                `form:"Await" json:"Await,omitempty"`
	DomainWeightEnable    *bool                                                                `form:"DomainWeightEnable" json:"DomainWeightEnable,omitempty"`
	IncludeTypes          *string                                                              `form:"IncludeTypes" json:"IncludeTypes,omitempty"`
	RecordSetWeightEnable *bool                                                                `form:"RecordSetWeightEnable" json:"RecordSetWeightEnable,omitempty"`
	SyncAll               *bool                                                                `form:"SyncAll" json:"SyncAll,omitempty"`
	SyncConf              *string                                                              `form:"SyncConf" json:"SyncConf,omitempty"`
	Zones                 map[string]map[string]map[string]map[string]map[string]AddressConfig `form:"Zones" json:"Zones,omitempty"`
}

type SyncFullRecordsV2Response

type SyncFullRecordsV2Response struct {
	TaskID      *string `form:"TaskID" json:"TaskID,omitempty"`
	TotalRecord *int64  `form:"TotalRecord" json:"TotalRecord,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

func (*TOPError) Error

func (err *TOPError) Error() string

func (*TOPError) GetCode

func (err *TOPError) GetCode() int64

type TopGroupStat

type TopGroupStat struct {
	CacheStage *int64  `form:"CacheStage" json:"CacheStage,omitempty"`
	Error      *int64  `form:"Error" json:"Error,omitempty"`
	Name       *string `form:"Name" json:"Name,omitempty"`
	NotExists  *int64  `form:"NotExists" json:"NotExists,omitempty"`
	Success    *int64  `form:"Success" json:"Success,omitempty"`
	Timestamp  *int64  `form:"Timestamp" json:"Timestamp,omitempty"`
	Total      *int64  `form:"Total" json:"Total,omitempty"`
	ZID        *int64  `form:"ZID" json:"ZID,omitempty"`
}

type TopLineResponse

type TopLineResponse struct {
	Children    []TopLineResponse `form:"Children" json:"Children,omitempty"`
	FatherValue *string           `form:"FatherValue" json:"FatherValue,omitempty"`
	ID          *string           `form:"ID" json:"ID,omitempty"`
	IpSegment   *string           `form:"IpSegment" json:"IpSegment,omitempty"`
	Level       *int64            `form:"Level" json:"Level,omitempty"`
	Name        *string           `form:"Name" json:"Name,omitempty"`
	PartName    *string           `form:"PartName" json:"PartName,omitempty"`
	Type        *int64            `form:"Type" json:"Type,omitempty"`
	Value       *string           `form:"Value" json:"Value,omitempty"`
}

type TopRecordResponse

type TopRecordResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,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"`
}

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"`
	PQDN          *string `form:"PQDN" json:"PQDN,omitempty"`
	Type          *string `form:"Type" json:"Type,omitempty"`
	WeightEnabled *bool   `form:"WeightEnabled" json:"WeightEnabled,omitempty"`
}

type TopRespError

type TopRespError struct {
	Code    string `form:"Code" json:"Code"`
	CodeN   int64  `form:"CodeN" json:"CodeN"`
	Message string `form:"Message" json:"Message"`
}

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 TopStat

type TopStat struct {
	Error     *int64 `form:"Error" json:"Error,omitempty"`
	NotExists *int64 `form:"NotExists" json:"NotExists,omitempty"`
	Success   *int64 `form:"Success" json:"Success,omitempty"`
	Timestamp *int64 `form:"Timestamp" json:"Timestamp,omitempty"`
	Total     *int64 `form:"Total" json:"Total,omitempty"`
}

type TopSubDomain

type TopSubDomain struct {
	HasNext       *bool               `form:"HasNext" json:"HasNext,omitempty"`
	Host          *string             `form:"Host" json:"Host,omitempty"`
	IsGTMDomain   *bool               `form:"IsGTMDomain" json:"IsGTMDomain,omitempty"`
	LastOperator  *string             `form:"LastOperator" json:"LastOperator,omitempty"`
	Line          *string             `form:"Line" json:"Line,omitempty"`
	LineNameCN    *string             `form:"LineNameCN" json:"LineNameCN,omitempty"`
	Name          *string             `form:"Name" json:"Name,omitempty"`
	Records       []TopRecordResponse `form:"Records" json:"Records,omitempty"`
	TTL           *int64              `form:"TTL" json:"TTL,omitempty"`
	Type          *string             `form:"Type" json:"Type,omitempty"`
	UpdatedAt     *string             `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	WeightEnabled *bool               `form:"WeightEnabled" json:"WeightEnabled,omitempty"`
}

type TopZoneResponse

type TopZoneResponse struct {
	CacheStage        *int64  `form:"CacheStage" json:"CacheStage,omitempty"`
	ConfigurationCode *string `form:"ConfigurationCode" json:"ConfigurationCode,omitempty"`
	CreatedAt         *string `form:"CreatedAt" json:"CreatedAt,omitempty"`
	ExpiredTime       *int64  `form:"ExpiredTime" json:"ExpiredTime,omitempty"`
	InstanceID        *string `form:"InstanceID" json:"InstanceID,omitempty"`
	LastOperator      *string `form:"LastOperator" json:"LastOperator,omitempty"`
	RecordCount       *int64  `form:"RecordCount" json:"RecordCount,omitempty"`
	Remark            *string `form:"Remark" json:"Remark,omitempty"`
	TradeCode         *string `form:"TradeCode" json:"TradeCode,omitempty"`
	UpdatedAt         *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	ZID               *int64  `form:"ZID" json:"ZID,omitempty"`
	ZoneName          *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type UpdateCustomLineRequest added in v1.0.99

type UpdateCustomLineRequest struct {
	IpSegments []string `form:"IpSegments" json:"IpSegments,omitempty"`
	Line       *string  `form:"Line" json:"Line,omitempty"`
	NameCN     *string  `form:"NameCN" json:"NameCN,omitempty"`
	Remark     *string  `form:"Remark" json:"Remark,omitempty"`
}

type UpdateCustomLineResponse added in v1.0.99

type UpdateCustomLineResponse struct {
	Line *string `form:"Line" json:"Line,omitempty"`
}

type UpdateRecordRequest

type UpdateRecordRequest struct {
	Host     string  `form:"Host" json:"Host"`
	Line     string  `form:"Line" json:"Line"`
	RecordID string  `form:"RecordID" json:"RecordID"`
	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 UpdateRecordResponse

type UpdateRecordResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,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"`
}

type UpdateRecordSetRequest

type UpdateRecordSetRequest struct {
	ID            string `form:"ID" json:"ID"`
	WeightEnabled bool   `form:"WeightEnabled" json:"WeightEnabled"`
}

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"`
	PQDN          *string `form:"PQDN" json:"PQDN,omitempty"`
	Type          *string `form:"Type" json:"Type,omitempty"`
	WeightEnabled *bool   `form:"WeightEnabled" json:"WeightEnabled,omitempty"`
}

type UpdateRecordStatusRequest

type UpdateRecordStatusRequest struct {
	Enable   *bool   `form:"Enable" json:"Enable,omitempty"`
	RecordID *string `form:"RecordID" json:"RecordID,omitempty"`
}

type UpdateRecordStatusResponse

type UpdateRecordStatusResponse struct {
	CreatedAt   *string  `form:"CreatedAt" json:"CreatedAt,omitempty"`
	Enable      *bool    `form:"Enable" json:"Enable,omitempty"`
	FQDN        *string  `form:"FQDN" json:"FQDN,omitempty"`
	Host        *string  `form:"Host" json:"Host,omitempty"`
	Line        *string  `form:"Line" json:"Line,omitempty"`
	Operators   []string `form:"Operators" json:"Operators,omitempty"`
	PQDN        *string  `form:"PQDN" json:"PQDN,omitempty"`
	RecordID    *string  `form:"RecordID" json:"RecordID,omitempty"`
	RecordSetID *string  `form:"RecordSetID" json:"RecordSetID,omitempty"`
	TTL         *int64   `form:"TTL" json:"TTL,omitempty"`
	Tags        []string `form:"Tags" json:"Tags,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"`
}

type UpdateZoneRequest

type UpdateZoneRequest struct {
	Remark *string `form:"Remark" json:"Remark,omitempty"`
	ZID    *int64  `form:"ZID" json:"ZID,omitempty"`
}

type UpdateZoneResponse

type UpdateZoneResponse struct {
	CacheStage        *int64  `form:"CacheStage" json:"CacheStage,omitempty"`
	ConfigurationCode *string `form:"ConfigurationCode" json:"ConfigurationCode,omitempty"`
	CreatedAt         *string `form:"CreatedAt" json:"CreatedAt,omitempty"`
	ExpiredTime       *int64  `form:"ExpiredTime" json:"ExpiredTime,omitempty"`
	InstanceID        *string `form:"InstanceID" json:"InstanceID,omitempty"`
	LastOperator      *string `form:"LastOperator" json:"LastOperator,omitempty"`
	RecordCount       *int64  `form:"RecordCount" json:"RecordCount,omitempty"`
	Remark            *string `form:"Remark" json:"Remark,omitempty"`
	TradeCode         *string `form:"TradeCode" json:"TradeCode,omitempty"`
	UpdatedAt         *string `form:"UpdatedAt" json:"UpdatedAt,omitempty"`
	ZID               *int64  `form:"ZID" json:"ZID,omitempty"`
	ZoneName          *string `form:"ZoneName" json:"ZoneName,omitempty"`
}

type VolcCaller

type VolcCaller struct {
	Volc *base.Client
}

func NewVolcCaller

func NewVolcCaller() *VolcCaller

func (*VolcCaller) Do

func (c *VolcCaller) Do(r *http.Request) (*http.Response, error)

type ZoneNameServerInfo

type ZoneNameServerInfo struct {
	AllocateDNSServerList []string `form:"AllocateDNSServerList" json:"AllocateDNSServerList,omitempty"`
	IsNSCorrect           *bool    `form:"IsNSCorrect" json:"IsNSCorrect,omitempty"`
	Name                  *string  `form:"Name" json:"Name,omitempty"`
	RealDNSServerList     []string `form:"RealDNSServerList" json:"RealDNSServerList,omitempty"`
	Stage                 *int64   `form:"Stage" json:"Stage,omitempty"`
	ZID                   *int64   `form:"ZID" json:"ZID,omitempty"`
}

Jump to

Keyboard shortcuts

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