Update Lego
This commit is contained in:
parent
36966da701
commit
253060b4f3
185 changed files with 16653 additions and 3210 deletions
44
vendor/github.com/iij/doapi/protocol/Commit.go
generated
vendored
Normal file
44
vendor/github.com/iij/doapi/protocol/Commit.go
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
package protocol
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// Commit
|
||||
type Commit struct {
|
||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||
}
|
||||
|
||||
// URI /{{.DoServiceCode}}/commit.json
|
||||
func (t Commit) URI() string {
|
||||
return "/{{.DoServiceCode}}/commit.json"
|
||||
}
|
||||
|
||||
// APIName Commit
|
||||
func (t Commit) APIName() string {
|
||||
return "Commit"
|
||||
}
|
||||
|
||||
// Method PUT
|
||||
func (t Commit) Method() string {
|
||||
return "PUT"
|
||||
}
|
||||
|
||||
// http://manual.iij.jp/dns/doapi/754632.html
|
||||
func (t Commit) Document() string {
|
||||
return "http://manual.iij.jp/dns/doapi/754632.html"
|
||||
}
|
||||
|
||||
// JPName PUT Commit
|
||||
func (t Commit) JPName() string {
|
||||
return "PUT commit"
|
||||
}
|
||||
func init() {
|
||||
APIlist = append(APIlist, Commit{})
|
||||
TypeMap["Commit"] = reflect.TypeOf(Commit{})
|
||||
}
|
||||
|
||||
// CommitResponse PUT Commitのレスポンス
|
||||
type CommitResponse struct {
|
||||
*CommonResponse
|
||||
}
|
51
vendor/github.com/iij/doapi/protocol/RecordAdd.go
generated
vendored
Normal file
51
vendor/github.com/iij/doapi/protocol/RecordAdd.go
generated
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
package protocol
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// RecordAdd POST record (同期)
|
||||
// http://manual.iij.jp/dns/doapi/754517.html
|
||||
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
|
||||
}
|
||||
|
||||
// URI /:GisServiceCode/fw-lbs/:IflServiceCode/filters/:IpVersion/:Direction.json
|
||||
func (t RecordAdd) URI() string {
|
||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/record.json"
|
||||
}
|
||||
|
||||
// APIName RecordAdd
|
||||
func (t RecordAdd) APIName() string {
|
||||
return "RecordAdd"
|
||||
}
|
||||
|
||||
// Method POST
|
||||
func (t RecordAdd) Method() string {
|
||||
return "POST"
|
||||
}
|
||||
|
||||
// http://manual.iij.jp/dns/doapi/754517.html
|
||||
func (t RecordAdd) Document() string {
|
||||
return "http://manual.iij.jp/dns/doapi/754517.html"
|
||||
}
|
||||
|
||||
// JPName POST record
|
||||
func (t RecordAdd) JPName() string {
|
||||
return "POST record"
|
||||
}
|
||||
func init() {
|
||||
APIlist = append(APIlist, RecordAdd{})
|
||||
TypeMap["RecordAdd"] = reflect.TypeOf(RecordAdd{})
|
||||
}
|
||||
|
||||
// RecordAddResponse POST recordのレスポンス
|
||||
type RecordAddResponse struct {
|
||||
*CommonResponse
|
||||
Record ResourceRecord
|
||||
}
|
47
vendor/github.com/iij/doapi/protocol/RecordDelete.go
generated
vendored
Normal file
47
vendor/github.com/iij/doapi/protocol/RecordDelete.go
generated
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
package protocol
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// RecordDelete DELETE record
|
||||
// http://manual.iij.jp/dns/doapi/754525.html
|
||||
type RecordDelete struct {
|
||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||
ZoneName string `json:"-"` // Zone Name
|
||||
RecordID string `json:"-"` // Record ID
|
||||
}
|
||||
|
||||
// URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json
|
||||
func (t RecordDelete) URI() string {
|
||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json"
|
||||
}
|
||||
|
||||
// APIName RecordDelete
|
||||
func (t RecordDelete) APIName() string {
|
||||
return "RecordDelete"
|
||||
}
|
||||
|
||||
// Method DELETE
|
||||
func (t RecordDelete) Method() string {
|
||||
return "DELETE"
|
||||
}
|
||||
|
||||
// http://manual.iij.jp/dns/doapi/754525.html
|
||||
func (t RecordDelete) Document() string {
|
||||
return "http://manual.iij.jp/dns/doapi/754525.html"
|
||||
}
|
||||
|
||||
// JPName DELETE record
|
||||
func (t RecordDelete) JPName() string {
|
||||
return "DELETE record"
|
||||
}
|
||||
func init() {
|
||||
APIlist = append(APIlist, RecordDelete{})
|
||||
TypeMap["RecordDelete"] = reflect.TypeOf(RecordDelete{})
|
||||
}
|
||||
|
||||
// RecordDeleteResponse DELETE recordのレスポンス
|
||||
type RecordDeleteResponse struct {
|
||||
*CommonResponse
|
||||
}
|
48
vendor/github.com/iij/doapi/protocol/RecordGet.go
generated
vendored
Normal file
48
vendor/github.com/iij/doapi/protocol/RecordGet.go
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
package protocol
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// GET records
|
||||
// http://manual.iij.jp/dns/doapi/754619.html
|
||||
type RecordGet struct {
|
||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||
ZoneName string `json:"-"` // ゾーン名
|
||||
RecordID string `json:"-"` //
|
||||
}
|
||||
|
||||
// URI /{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json
|
||||
func (t RecordGet) URI() string {
|
||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/record/{{.RecordID}}.json"
|
||||
}
|
||||
|
||||
// APIName RecordGet
|
||||
func (t RecordGet) APIName() string {
|
||||
return "RecordGet"
|
||||
}
|
||||
|
||||
// Method GET
|
||||
func (t RecordGet) Method() string {
|
||||
return "GET"
|
||||
}
|
||||
|
||||
// http://manual.iij.jp/dns/doapi/754503.html
|
||||
func (t RecordGet) Document() string {
|
||||
return "http://manual.iij.jp/dns/doapi/754503.html"
|
||||
}
|
||||
|
||||
// JPName GET record
|
||||
func (t RecordGet) JPName() string {
|
||||
return "GET record"
|
||||
}
|
||||
func init() {
|
||||
APIlist = append(APIlist, RecordGet{})
|
||||
TypeMap["RecordGet"] = reflect.TypeOf(RecordGet{})
|
||||
}
|
||||
|
||||
// RecordGetResponse フィルタリングルール情報取得のレスポンス
|
||||
type RecordGetResponse struct {
|
||||
*CommonResponse
|
||||
Record ResourceRecord
|
||||
}
|
47
vendor/github.com/iij/doapi/protocol/RecordListGet.go
generated
vendored
Normal file
47
vendor/github.com/iij/doapi/protocol/RecordListGet.go
generated
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
package protocol
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// GET records
|
||||
type RecordListGet struct {
|
||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||
ZoneName string `json:"-"` // ゾーン名
|
||||
}
|
||||
|
||||
// URI /{{.DoServiceCode}}/{{.ZoneName}}/records/DETAIL.json
|
||||
func (t RecordListGet) URI() string {
|
||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/records/DETAIL.json"
|
||||
}
|
||||
|
||||
// APIName RecordListGet
|
||||
func (t RecordListGet) APIName() string {
|
||||
return "RecordListGet"
|
||||
}
|
||||
|
||||
// Method GET
|
||||
func (t RecordListGet) Method() string {
|
||||
return "GET"
|
||||
}
|
||||
|
||||
// http://manual.iij.jp/dns/doapi/754619.html
|
||||
func (t RecordListGet) Document() string {
|
||||
return "http://manual.iij.jp/dns/doapi/754619.html"
|
||||
}
|
||||
|
||||
// JPName GET records
|
||||
func (t RecordListGet) JPName() string {
|
||||
return "GET records"
|
||||
}
|
||||
func init() {
|
||||
APIlist = append(APIlist, RecordListGet{})
|
||||
TypeMap["RecordListGet"] = reflect.TypeOf(RecordListGet{})
|
||||
}
|
||||
|
||||
// RecordListGetResponse GET recordsのレスポンス
|
||||
type RecordListGetResponse struct {
|
||||
*CommonResponse
|
||||
RecordList []ResourceRecord
|
||||
StaticRecordList []ResourceRecord
|
||||
}
|
45
vendor/github.com/iij/doapi/protocol/Reset.go
generated
vendored
Normal file
45
vendor/github.com/iij/doapi/protocol/Reset.go
generated
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
package protocol
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// Reset PUT reset (同期)
|
||||
type Reset struct {
|
||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||
ZoneName string `json:"-"` // Zone name
|
||||
}
|
||||
|
||||
// URI /{{.DoServiceCode}}/{{.ZoneName}}/reset.json
|
||||
func (t Reset) URI() string {
|
||||
return "/{{.DoServiceCode}}/{{.ZoneName}}/reset.json"
|
||||
}
|
||||
|
||||
// APIName Reset
|
||||
func (t Reset) APIName() string {
|
||||
return "Reset"
|
||||
}
|
||||
|
||||
// Method PUT
|
||||
func (t Reset) Method() string {
|
||||
return "PUT"
|
||||
}
|
||||
|
||||
// http://manual.iij.jp/dns/doapi/754610.html
|
||||
func (t Reset) Document() string {
|
||||
return "http://manual.iij.jp/dns/doapi/754610.html"
|
||||
}
|
||||
|
||||
// JPName PUT reset
|
||||
func (t Reset) JPName() string {
|
||||
return "PUT Reset"
|
||||
}
|
||||
func init() {
|
||||
APIlist = append(APIlist, Reset{})
|
||||
TypeMap["Reset"] = reflect.TypeOf(Reset{})
|
||||
}
|
||||
|
||||
// ResetResponse PUT resetのレスポンス
|
||||
type ResetResponse struct {
|
||||
*CommonResponse
|
||||
}
|
45
vendor/github.com/iij/doapi/protocol/ZoneListGet.go
generated
vendored
Normal file
45
vendor/github.com/iij/doapi/protocol/ZoneListGet.go
generated
vendored
Normal file
|
@ -0,0 +1,45 @@
|
|||
package protocol
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// GET zones
|
||||
type ZoneListGet struct {
|
||||
DoServiceCode string `json:"-"` // DO契約のサービスコード(do########)
|
||||
}
|
||||
|
||||
// URI /{{.DoServiceCode}}/zones.json
|
||||
func (t ZoneListGet) URI() string {
|
||||
return "/{{.DoServiceCode}}/zones.json"
|
||||
}
|
||||
|
||||
// APIName ZoneListGet
|
||||
func (t ZoneListGet) APIName() string {
|
||||
return "ZoneListGet"
|
||||
}
|
||||
|
||||
// Method GET
|
||||
func (t ZoneListGet) Method() string {
|
||||
return "GET"
|
||||
}
|
||||
|
||||
// http://manual.iij.jp/dns/doapi/754466.html
|
||||
func (t ZoneListGet) Document() string {
|
||||
return "http://manual.iij.jp/dns/doapi/754466.html"
|
||||
}
|
||||
|
||||
// JPName GET zones
|
||||
func (t ZoneListGet) JPName() string {
|
||||
return "GET zones"
|
||||
}
|
||||
func init() {
|
||||
APIlist = append(APIlist, ZoneListGet{})
|
||||
TypeMap["ZoneListGet"] = reflect.TypeOf(ZoneListGet{})
|
||||
}
|
||||
|
||||
// ZoneListGetResponse GET zonesのレスポンス
|
||||
type ZoneListGetResponse struct {
|
||||
*CommonResponse
|
||||
ZoneList []string
|
||||
}
|
53
vendor/github.com/iij/doapi/protocol/common.go
generated
vendored
Normal file
53
vendor/github.com/iij/doapi/protocol/common.go
generated
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
package protocol
|
||||
|
||||
//go:generate python doc2struct.py
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
)
|
||||
|
||||
type CommonArg interface {
|
||||
APIName() string
|
||||
Method() string
|
||||
URI() string
|
||||
Document() string
|
||||
JPName() string
|
||||
}
|
||||
|
||||
type CommonResponse struct {
|
||||
RequestId string
|
||||
ErrorResponse struct {
|
||||
RequestId string
|
||||
ErrorType string
|
||||
ErrorMessage string
|
||||
}
|
||||
}
|
||||
|
||||
var APIlist []CommonArg
|
||||
|
||||
var TypeMap = map[string]reflect.Type{}
|
||||
|
||||
type ResourceRecord struct {
|
||||
Id string `json:",omitempty"`
|
||||
Status string
|
||||
Owner string
|
||||
TTL string
|
||||
RecordType string
|
||||
RData string
|
||||
}
|
||||
|
||||
func (r *ResourceRecord) String() string {
|
||||
return fmt.Sprintf("%s %s IN %s %s", r.Owner, r.TTL, r.RecordType, r.RData)
|
||||
}
|
||||
|
||||
func (r *ResourceRecord) FQDN(zone string) string {
|
||||
return fmt.Sprintf("%s.%s %s IN %s %s", r.Owner, zone, r.TTL, r.RecordType, r.RData)
|
||||
}
|
||||
|
||||
const (
|
||||
UNCAHNGED = "UNCHANGED"
|
||||
ADDING = "ADDING"
|
||||
DELETING = "DELETING"
|
||||
DELETED = "DELETED"
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue