cloudflare

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	Success bool `json:"success"`
	Errors  []struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	} `json:"errors"`
}

func (*BaseResponse) IsOk

func (this *BaseResponse) IsOk() bool

func (*BaseResponse) LastError

func (this *BaseResponse) LastError() (code int, message string)

type CreateDNSRecordResponse

type CreateDNSRecordResponse struct {
	BaseResponse
}

type DeleteDNSRecordResponse

type DeleteDNSRecordResponse struct {
	BaseResponse
}

type GetDNSRecordsResponse

type GetDNSRecordsResponse struct {
	BaseResponse

	Result []struct {
		Id       string `json:"id"`
		Type     string `json:"type"`
		Name     string `json:"name"`
		Content  string `json:"content"`
		Ttl      int    `json:"ttl"`
		ZoneId   string `json:"zoneId"`
		ZoneName string `json:"zoneName"`
	} `json:"result"`
}

type ResponseInterface

type ResponseInterface interface {
	IsOk() bool
	LastError() (code int, message string)
}

type UpdateDNSRecordResponse

type UpdateDNSRecordResponse struct {
	BaseResponse
}

type ZonesResponse

type ZonesResponse struct {
	BaseResponse

	Result []struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"result"`
}

Jump to

Keyboard shortcuts

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