dns

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRecordRequest

type AddRecordRequest struct {
	Domain   *string `json:"domain,omitempty"`
	Host     *string `json:"host,omitempty"`
	Type     *string `json:"type,omitempty"`
	LineCode *string `json:"lineCode,omitempty"`
	Value    *string `json:"value,omitempty"`
	TTL      *int32  `json:"ttl,omitempty"`
	State    *int32  `json:"state,omitempty"`
	Remark   *string `json:"remark"`
}

type AddRecordResponse

type AddRecordResponse struct {
	ReturnObj *struct {
		RecordId int32 `json:"recordId"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRecordResponse) GetError

func (r *AddRecordResponse) GetError() string

func (*AddRecordResponse) GetErrorMessage

func (r *AddRecordResponse) GetErrorMessage() string

func (*AddRecordResponse) GetMessage

func (r *AddRecordResponse) GetMessage() string

func (*AddRecordResponse) GetStatusCode

func (r *AddRecordResponse) GetStatusCode() string

type Client

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

func NewClient

func NewClient(accessKeyId, secretAccessKey string) (*Client, error)

func (*Client) AddRecord

func (c *Client) AddRecord(req *AddRecordRequest) (*AddRecordResponse, error)

func (*Client) AddRecordWithContext

func (c *Client) AddRecordWithContext(ctx context.Context, req *AddRecordRequest) (*AddRecordResponse, error)

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(req *DeleteRecordRequest) (*DeleteRecordResponse, error)

func (*Client) DeleteRecordWithContext

func (c *Client) DeleteRecordWithContext(ctx context.Context, req *DeleteRecordRequest) (*DeleteRecordResponse, error)

func (*Client) QueryRecordList

func (c *Client) QueryRecordList(req *QueryRecordListRequest) (*QueryRecordListResponse, error)

func (*Client) QueryRecordListWithContext

func (c *Client) QueryRecordListWithContext(ctx context.Context, req *QueryRecordListRequest) (*QueryRecordListResponse, error)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

func (*Client) UpdateRecord

func (c *Client) UpdateRecord(req *UpdateRecordRequest) (*UpdateRecordResponse, error)

func (*Client) UpdateRecordWithContext

func (c *Client) UpdateRecordWithContext(ctx context.Context, req *UpdateRecordRequest) (*UpdateRecordResponse, error)

type DeleteRecordRequest

type DeleteRecordRequest struct {
	RecordId *int32 `json:"recordId,omitempty"`
}

type DeleteRecordResponse

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

func (*DeleteRecordResponse) GetError

func (r *DeleteRecordResponse) GetError() string

func (*DeleteRecordResponse) GetErrorMessage

func (r *DeleteRecordResponse) GetErrorMessage() string

func (*DeleteRecordResponse) GetMessage

func (r *DeleteRecordResponse) GetMessage() string

func (*DeleteRecordResponse) GetStatusCode

func (r *DeleteRecordResponse) GetStatusCode() string

type DnsRecord

type DnsRecord struct {
	RecordId int32  `json:"recordId"`
	Host     string `json:"host"`
	Type     string `json:"type"`
	LineCode string `json:"lineCode"`
	Value    string `json:"value"`
	TTL      int32  `json:"ttl"`
	State    int32  `json:"state"`
	Remark   string `json:"remark"`
}

type QueryRecordListRequest

type QueryRecordListRequest struct {
	Domain   *string `json:"domain,omitempty" url:"domain,omitempty"`
	Host     *string `json:"host,omitempty" url:"host,omitempty"`
	Type     *string `json:"type,omitempty" url:"type,omitempty"`
	LineCode *string `json:"lineCode,omitempty" url:"lineCode,omitempty"`
	Value    *string `json:"value,omitempty" url:"value,omitempty"`
	State    *int32  `json:"state,omitempty" url:"state,omitempty"`
}

type QueryRecordListResponse

type QueryRecordListResponse struct {
	ReturnObj *struct {
		Records []*DnsRecord `json:"records,omitempty"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRecordListResponse) GetError

func (r *QueryRecordListResponse) GetError() string

func (*QueryRecordListResponse) GetErrorMessage

func (r *QueryRecordListResponse) GetErrorMessage() string

func (*QueryRecordListResponse) GetMessage

func (r *QueryRecordListResponse) GetMessage() string

func (*QueryRecordListResponse) GetStatusCode

func (r *QueryRecordListResponse) GetStatusCode() string

type UpdateRecordRequest

type UpdateRecordRequest struct {
	RecordId *int32  `json:"recordId,omitempty"`
	Domain   *string `json:"domain,omitempty"`
	Host     *string `json:"host,omitempty"`
	Type     *string `json:"type,omitempty"`
	LineCode *string `json:"lineCode,omitempty"`
	Value    *string `json:"value,omitempty"`
	TTL      *int32  `json:"ttl,omitempty"`
	State    *int32  `json:"state,omitempty"`
	Remark   *string `json:"remark"`
}

type UpdateRecordResponse

type UpdateRecordResponse struct {
	ReturnObj *struct {
		RecordId int32 `json:"recordId"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRecordResponse) GetError

func (r *UpdateRecordResponse) GetError() string

func (*UpdateRecordResponse) GetErrorMessage

func (r *UpdateRecordResponse) GetErrorMessage() string

func (*UpdateRecordResponse) GetMessage

func (r *UpdateRecordResponse) GetMessage() string

func (*UpdateRecordResponse) GetStatusCode

func (r *UpdateRecordResponse) GetStatusCode() string

Jump to

Keyboard shortcuts

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