internal

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// XMLNs XML NS of Route53
	XMLNs = "https://route53.amazonaws.com/doc/2012-12-12/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Change

type Change struct {
	Action            string            `xml:"Action"`
	ResourceRecordSet ResourceRecordSet `xml:"ResourceRecordSet"`
}

Change is the information for each resource record set that you want to change.

type ChangeBatch

type ChangeBatch struct {
	Changes Changes `xml:"Changes"`
	Comment string  `xml:"Comment"`
}

ChangeBatch is the information for a change request.

type ChangeInfo

type ChangeInfo struct {
	ID          string `xml:"Id"`
	Status      string `xml:"Status"`
	SubmittedAt string `xml:"SubmittedAt"`
}

ChangeInfo is A complex type that describes change information about changes made to your hosted zone.

type ChangeResourceRecordSetsRequest

type ChangeResourceRecordSetsRequest struct {
	XMLNs       string      `xml:"xmlns,attr"`
	ChangeBatch ChangeBatch `xml:"ChangeBatch"`
}

ChangeResourceRecordSetsRequest is a complex type that contains change information for the resource record set.

type ChangeResourceRecordSetsResponse

type ChangeResourceRecordSetsResponse struct {
	ChangeInfo ChangeInfo `xml:"ChangeInfo"`
}

ChangeResourceRecordSetsResponse is a complex type containing the response for the request.

type Changes

type Changes struct {
	Change []Change `xml:"Change"`
}

Changes is array of Change.

type Client

type Client struct {
	BaseURL    string
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Client client of NIFCLOUD DNS

func NewClient

func NewClient(accessKey string, secretKey string) (*Client, error)

NewClient Creates a new client of NIFCLOUD DNS

func (*Client) ChangeResourceRecordSets

func (c *Client) ChangeResourceRecordSets(hostedZoneID string, input ChangeResourceRecordSetsRequest) (*ChangeResourceRecordSetsResponse, error)

ChangeResourceRecordSets Call ChangeResourceRecordSets API and return response.

func (*Client) GetChange

func (c *Client) GetChange(statusID string) (*GetChangeResponse, error)

GetChange Call GetChange API and return response.

type ErrorResponse

type ErrorResponse struct {
	Error struct {
		Type    string `xml:"Type"`
		Message string `xml:"Message"`
		Code    string `xml:"Code"`
	} `xml:"Error"`
	RequestID string `xml:"RequestId"`
}

ErrorResponse is the information for any errors.

type GetChangeResponse

type GetChangeResponse struct {
	ChangeInfo ChangeInfo `xml:"ChangeInfo"`
}

GetChangeResponse is a complex type that contains the ChangeInfo element.

type ResourceRecord

type ResourceRecord struct {
	Value string `xml:"Value"`
}

ResourceRecord is the information specific to the resource record.

type ResourceRecordSet

type ResourceRecordSet struct {
	Name            string          `xml:"Name"`
	Type            string          `xml:"Type"`
	TTL             int             `xml:"TTL"`
	ResourceRecords ResourceRecords `xml:"ResourceRecords"`
}

ResourceRecordSet is the information about the resource record set to create or delete.

type ResourceRecords

type ResourceRecords struct {
	ResourceRecord []ResourceRecord `xml:"ResourceRecord"`
}

ResourceRecords is array of ResourceRecord.

Jump to

Keyboard shortcuts

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