protocol

package
v0.0.0-...-0bbf12d Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: Apache-2.0 Imports: 2 Imported by: 99

Documentation

Index

Constants

View Source
const (
	UNCAHNGED = "UNCHANGED"
	ADDING    = "ADDING"
	DELETING  = "DELETING"
	DELETED   = "DELETED"
)

Variables

View Source
var APIlist []CommonArg
View Source
var TypeMap = map[string]reflect.Type{}

Functions

This section is empty.

Types

type Commit

type Commit struct {
	DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
}

Commit

func (Commit) APIName

func (t Commit) APIName() string

APIName Commit

func (Commit) JPName

func (t Commit) JPName() string

JPName PUT Commit

func (Commit) Method

func (t Commit) Method() string

Method PUT

func (Commit) URI

func (t Commit) URI() string

URI /{{.DoServiceCode}}/commit.json

type CommitResponse

type CommitResponse struct {
	*CommonResponse
}

CommitResponse PUT Commitのレスポンス

type CommonArg

type CommonArg interface {
	APIName() string
	Method() string
	URI() string
	Document() string
	JPName() string
}

type CommonResponse

type CommonResponse struct {
	RequestId     string
	ErrorResponse struct {
		RequestId    string
		ErrorType    string
		ErrorMessage string
	}
}

type RecordAdd

type RecordAdd struct {
	DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
	ZoneName      string `json:"-"` // Zone Name
	Owner         string // owner of record
	TTL           string // TTL of record
	RecordType    string // type of record
	RData         string // data of record
}

RecordAdd POST record (同期)

http://manual.iij.jp/dns/doapi/754517.html

func (RecordAdd) APIName

func (t RecordAdd) APIName() string

APIName RecordAdd

func (RecordAdd) JPName

func (t RecordAdd) JPName() string

JPName POST record

func (RecordAdd) Method

func (t RecordAdd) Method() string

Method POST

func (RecordAdd) URI

func (t RecordAdd) URI() string

URI /:GisServiceCode/fw-lbs/:IflServiceCode/filters/:IpVersion/:Direction.json

type RecordAddResponse

type RecordAddResponse struct {
	*CommonResponse
	Record ResourceRecord
}

RecordAddResponse POST recordのレスポンス

type RecordDelete

type RecordDelete struct {
	DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
	ZoneName      string `json:"-"` // Zone Name
	RecordID      string `json:"-"` // Record ID
}

RecordDelete DELETE record

http://manual.iij.jp/dns/doapi/754525.html

func (RecordDelete) APIName

func (t RecordDelete) APIName() string

APIName RecordDelete

func (RecordDelete) JPName

func (t RecordDelete) JPName() string

JPName DELETE record

func (RecordDelete) Method

func (t RecordDelete) Method() string

Method DELETE

func (RecordDelete) URI

func (t RecordDelete) URI() string

URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json

type RecordDeleteResponse

type RecordDeleteResponse struct {
	*CommonResponse
}

RecordDeleteResponse DELETE recordのレスポンス

type RecordGet

type RecordGet struct {
	DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
	ZoneName      string `json:"-"` // ゾーン名
	RecordID      string `json:"-"` //
}

GET records

http://manual.iij.jp/dns/doapi/754619.html

func (RecordGet) APIName

func (t RecordGet) APIName() string

APIName RecordGet

func (RecordGet) JPName

func (t RecordGet) JPName() string

JPName GET record

func (RecordGet) Method

func (t RecordGet) Method() string

Method GET

func (RecordGet) URI

func (t RecordGet) URI() string

URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json

type RecordGetResponse

type RecordGetResponse struct {
	*CommonResponse
	Record ResourceRecord
}

RecordGetResponse フィルタリングルール情報取得のレスポンス

type RecordListGet

type RecordListGet struct {
	DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
	ZoneName      string `json:"-"` // ゾーン名
}

GET records

func (RecordListGet) APIName

func (t RecordListGet) APIName() string

APIName RecordListGet

func (RecordListGet) JPName

func (t RecordListGet) JPName() string

JPName GET records

func (RecordListGet) Method

func (t RecordListGet) Method() string

Method GET

func (RecordListGet) URI

func (t RecordListGet) URI() string

URI /{{.DoServiceCode}}/{{.ZoneName}}/records/DETAIL.json

type RecordListGetResponse

type RecordListGetResponse struct {
	*CommonResponse
	RecordList       []ResourceRecord
	StaticRecordList []ResourceRecord
}

RecordListGetResponse GET recordsのレスポンス

type Reset

type Reset struct {
	DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
	ZoneName      string `json:"-"` // Zone name
}

Reset PUT reset (同期)

func (Reset) APIName

func (t Reset) APIName() string

APIName Reset

func (Reset) JPName

func (t Reset) JPName() string

JPName PUT reset

func (Reset) Method

func (t Reset) Method() string

Method PUT

func (Reset) URI

func (t Reset) URI() string

URI /{{.DoServiceCode}}/{{.ZoneName}}/reset.json

type ResetResponse

type ResetResponse struct {
	*CommonResponse
}

ResetResponse PUT resetのレスポンス

type ResourceRecord

type ResourceRecord struct {
	Id         string `json:",omitempty"`
	Status     string
	Owner      string
	TTL        string
	RecordType string
	RData      string
}

func (*ResourceRecord) FQDN

func (r *ResourceRecord) FQDN(zone string) string

func (*ResourceRecord) String

func (r *ResourceRecord) String() string

type ZoneListGet

type ZoneListGet struct {
	DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
}

GET zones

func (ZoneListGet) APIName

func (t ZoneListGet) APIName() string

APIName ZoneListGet

func (ZoneListGet) JPName

func (t ZoneListGet) JPName() string

JPName GET zones

func (ZoneListGet) Method

func (t ZoneListGet) Method() string

Method GET

func (ZoneListGet) URI

func (t ZoneListGet) URI() string

URI /{{.DoServiceCode}}/zones.json

type ZoneListGetResponse

type ZoneListGetResponse struct {
	*CommonResponse
	ZoneList []string
}

ZoneListGetResponse GET zonesのレスポンス

Jump to

Keyboard shortcuts

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