api

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

API Caller

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ker

type Ker struct {
	SecretKey string
	Email     string
}

func New added in v1.0.0

func New(email string, secretKey string) *Ker

New init the Ker instance

func (*Ker) CreateDomainRecord

func (ker *Ker) CreateDomainRecord(domain string, params *model.Record) (*model.CreateRecordResponse, error)

CreateDomainRecord 添加解析记录 https://doc.hostker.dev/dns/createRecord.html

func (*Ker) DeleteDomainRecord

func (ker *Ker) DeleteDomainRecord(domain string, record *model.Record) (*model.DeleteRecordResponse, error)

DeleteDomainRecord 删除解析记录(请注意填写完整信息) https://doc.hostker.dev/dns/deleteRecord.html

func (*Ker) GetDomainList

func (ker *Ker) GetDomainList() (*model.DomainListResponse, error)

GetDomainList 获取域名列表 https://doc.hostker.dev/dns/domainList.html

func (*Ker) GetDomainRecords

func (ker *Ker) GetDomainRecords(domain string) (*model.RecordsResponse, error)

GetDomainRecords 获取解析记录列表 https://doc.hostker.dev/dns/getRecords.html

func (*Ker) Sign

func (ker *Ker) Sign(body []byte) string

Sign 计算签名

func (*Ker) UpdateDomainRecord

func (ker *Ker) UpdateDomainRecord(domain string, oldValue *model.Record, newValue *model.Record) (*model.UpdateRecordResponse, error)

UpdateDomainRecord 修改解析记录(注意 value 填写完整) https://doc.hostker.dev/dns/updateRecord.html

Jump to

Keyboard shortcuts

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