From 5723f021fd7844ca71a0abf612bc8fb0be134308 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Sat, 30 May 2020 11:08:30 -0400 Subject: [PATCH] Remove/update obsolete files --- docs/_includes/matrix.html | 72 ------------------- .../prasmussen/gandi-api/domain/structs.go | 57 --------------- .../prasmussen/gandi-api/domain/util.go | 69 ------------------ .../gandi-api/domain/zone/structs.go | 24 ------- .../prasmussen/gandi-api/domain/zone/util.go | 30 -------- .../gandi-api/domain/zone/version/structs.go | 10 --- .../gandi-api/domain/zone/version/util.go | 12 ---- .../prasmussen/gandi-api/operation/structs.go | 29 -------- .../prasmussen/gandi-api/operation/util.go | 33 --------- vendor/gopkg.in/ini.v1/key.go | 6 +- 10 files changed, 3 insertions(+), 339 deletions(-) delete mode 100644 vendor/github.com/prasmussen/gandi-api/domain/structs.go delete mode 100644 vendor/github.com/prasmussen/gandi-api/domain/util.go delete mode 100644 vendor/github.com/prasmussen/gandi-api/domain/zone/structs.go delete mode 100644 vendor/github.com/prasmussen/gandi-api/domain/zone/util.go delete mode 100644 vendor/github.com/prasmussen/gandi-api/domain/zone/version/structs.go delete mode 100644 vendor/github.com/prasmussen/gandi-api/domain/zone/version/util.go delete mode 100644 vendor/github.com/prasmussen/gandi-api/operation/structs.go delete mode 100644 vendor/github.com/prasmussen/gandi-api/operation/util.go diff --git a/docs/_includes/matrix.html b/docs/_includes/matrix.html index f4638a484..1b5bdb86a 100644 --- a/docs/_includes/matrix.html +++ b/docs/_includes/matrix.html @@ -826,9 +826,6 @@ - - - @@ -847,75 +844,6 @@ - - - DS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - DS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/vendor/github.com/prasmussen/gandi-api/domain/structs.go b/vendor/github.com/prasmussen/gandi-api/domain/structs.go deleted file mode 100644 index 103fbee22..000000000 --- a/vendor/github.com/prasmussen/gandi-api/domain/structs.go +++ /dev/null @@ -1,57 +0,0 @@ -package domain - -import ( - "time" -) - -type DomainInfoBase struct { - AuthInfo string - DateCreated time.Time - DateRegistryCreation time.Time - DateRegistryEnd time.Time - DateUpdated time.Time - Fqdn string - Id int64 - Status []string - Tld string -} - -type DomainInfoExtra struct { - DateDelete time.Time - DateHoldBegin time.Time - DateHoldEnd time.Time - DatePendingDeleteEnd time.Time - DateRenewBegin time.Time - DateRestoreEnd time.Time - Nameservers []string - Services []string - ZoneId int64 - Autorenew *AutorenewInfo - Contacts *ContactInfo -} - -type DomainInfo struct { - *DomainInfoBase - *DomainInfoExtra -} - -type AutorenewInfo struct { - Active bool - Contact string - Id int64 - ProductId int64 - ProductTypeId int64 -} - -type ContactInfo struct { - Admin *ContactDetails - Bill *ContactDetails - Owner *ContactDetails - Reseller *ContactDetails - Tech *ContactDetails -} - -type ContactDetails struct { - Handle string - Id int64 -} diff --git a/vendor/github.com/prasmussen/gandi-api/domain/util.go b/vendor/github.com/prasmussen/gandi-api/domain/util.go deleted file mode 100644 index b7ff3532e..000000000 --- a/vendor/github.com/prasmussen/gandi-api/domain/util.go +++ /dev/null @@ -1,69 +0,0 @@ -package domain - -import ( - "github.com/prasmussen/gandi-api/util" -) - -func ToDomainInfoBase(res map[string]interface{}) *DomainInfoBase { - return &DomainInfoBase{ - AuthInfo: util.ToString(res["authinfo"]), - DateCreated: util.ToTime(res["date_created"]), - DateRegistryCreation: util.ToTime(res["date_registry_creation"]), - DateRegistryEnd: util.ToTime(res["date_registry_end"]), - DateUpdated: util.ToTime(res["date_updated"]), - Fqdn: util.ToString(res["fqdn"]), - Id: util.ToInt64(res["id"]), - Status: util.ToStringSlice(util.ToInterfaceSlice(res["status"])), - Tld: util.ToString(res["tld"]), - } -} - -func ToDomainInfoExtra(res map[string]interface{}) *DomainInfoExtra { - return &DomainInfoExtra{ - DateDelete: util.ToTime(res["date_delete"]), - DateHoldBegin: util.ToTime(res["date_hold_begin"]), - DateHoldEnd: util.ToTime(res["date_hold_end"]), - DatePendingDeleteEnd: util.ToTime(res["date_pending_delete_end"]), - DateRenewBegin: util.ToTime(res["date_renew_begin"]), - DateRestoreEnd: util.ToTime(res["date_restore_end"]), - Nameservers: util.ToStringSlice(util.ToInterfaceSlice(res["nameservers"])), - Services: util.ToStringSlice(util.ToInterfaceSlice(res["services"])), - ZoneId: util.ToInt64(res["zone_id"]), - Autorenew: toAutorenewInfo(util.ToXmlrpcStruct(res["autorenew"])), - Contacts: toContactInfo(util.ToXmlrpcStruct(res["contacts"])), - } -} - -func ToDomainInfo(res map[string]interface{}) *DomainInfo { - return &DomainInfo{ - ToDomainInfoBase(res), - ToDomainInfoExtra(res), - } -} - -func toAutorenewInfo(res map[string]interface{}) *AutorenewInfo { - return &AutorenewInfo{ - Active: util.ToBool(res["active"]), - Contact: util.ToString(res["contact"]), - Id: util.ToInt64(res["id"]), - ProductId: util.ToInt64(res["product_id"]), - ProductTypeId: util.ToInt64(res["product_type_id"]), - } -} - -func toContactInfo(res map[string]interface{}) *ContactInfo { - return &ContactInfo{ - Admin: toContactDetails(util.ToXmlrpcStruct(res["admin"])), - Bill: toContactDetails(util.ToXmlrpcStruct(res["bill"])), - Owner: toContactDetails(util.ToXmlrpcStruct(res["owner"])), - Reseller: toContactDetails(util.ToXmlrpcStruct(res["reseller"])), - Tech: toContactDetails(util.ToXmlrpcStruct(res["tech"])), - } -} - -func toContactDetails(res map[string]interface{}) *ContactDetails { - return &ContactDetails{ - Handle: util.ToString(res["handle"]), - Id: util.ToInt64(res["id"]), - } -} diff --git a/vendor/github.com/prasmussen/gandi-api/domain/zone/structs.go b/vendor/github.com/prasmussen/gandi-api/domain/zone/structs.go deleted file mode 100644 index 1a53345d5..000000000 --- a/vendor/github.com/prasmussen/gandi-api/domain/zone/structs.go +++ /dev/null @@ -1,24 +0,0 @@ -package zone - -import ( - "time" -) - -type ZoneInfoBase struct { - DateUpdated time.Time - Id int64 - Name string - Public bool - Version int64 -} - -type ZoneInfoExtra struct { - Domains int64 - Owner string - Versions []int64 -} - -type ZoneInfo struct { - *ZoneInfoBase - *ZoneInfoExtra -} diff --git a/vendor/github.com/prasmussen/gandi-api/domain/zone/util.go b/vendor/github.com/prasmussen/gandi-api/domain/zone/util.go deleted file mode 100644 index 7d5f21728..000000000 --- a/vendor/github.com/prasmussen/gandi-api/domain/zone/util.go +++ /dev/null @@ -1,30 +0,0 @@ -package zone - -import ( - "github.com/prasmussen/gandi-api/util" -) - -func ToZoneInfoBase(res map[string]interface{}) *ZoneInfoBase { - return &ZoneInfoBase{ - DateUpdated: util.ToTime(res["date_updated"]), - Id: util.ToInt64(res["id"]), - Name: util.ToString(res["name"]), - Public: util.ToBool(res["public"]), - Version: util.ToInt64(res["version"]), - } -} - -func ToZoneInfoExtra(res map[string]interface{}) *ZoneInfoExtra { - return &ZoneInfoExtra{ - Domains: util.ToInt64(res["domains"]), - Owner: util.ToString(res["owner"]), - Versions: util.ToIntSlice(util.ToInterfaceSlice(res["versions"])), - } -} - -func ToZoneInfo(res map[string]interface{}) *ZoneInfo { - return &ZoneInfo{ - ToZoneInfoBase(res), - ToZoneInfoExtra(res), - } -} diff --git a/vendor/github.com/prasmussen/gandi-api/domain/zone/version/structs.go b/vendor/github.com/prasmussen/gandi-api/domain/zone/version/structs.go deleted file mode 100644 index f0e6d0cf1..000000000 --- a/vendor/github.com/prasmussen/gandi-api/domain/zone/version/structs.go +++ /dev/null @@ -1,10 +0,0 @@ -package version - -import ( - "time" -) - -type VersionInfo struct { - Id int64 - DateCreated time.Time -} diff --git a/vendor/github.com/prasmussen/gandi-api/domain/zone/version/util.go b/vendor/github.com/prasmussen/gandi-api/domain/zone/version/util.go deleted file mode 100644 index d6482f1f5..000000000 --- a/vendor/github.com/prasmussen/gandi-api/domain/zone/version/util.go +++ /dev/null @@ -1,12 +0,0 @@ -package version - -import ( - "github.com/prasmussen/gandi-api/util" -) - -func ToVersionInfo(res map[string]interface{}) *VersionInfo { - return &VersionInfo{ - Id: util.ToInt64(res["id"]), - DateCreated: util.ToTime(res["date_created"]), - } -} diff --git a/vendor/github.com/prasmussen/gandi-api/operation/structs.go b/vendor/github.com/prasmussen/gandi-api/operation/structs.go deleted file mode 100644 index baf30f8c6..000000000 --- a/vendor/github.com/prasmussen/gandi-api/operation/structs.go +++ /dev/null @@ -1,29 +0,0 @@ -package operation - -import ( - "time" -) - -type OperationInfo struct { - DateCreated time.Time - DateStart time.Time - DateUpdated time.Time - Eta string - Id int64 - LastError string - SessionId int64 - Source string - Step string - Type string - Params map[string]interface{} - OperationDetails *OperationDetails -} - -type OperationDetails struct { - Id string - Label string - ProductAction string - ProductName string - ProductType string - Quantity int64 -} diff --git a/vendor/github.com/prasmussen/gandi-api/operation/util.go b/vendor/github.com/prasmussen/gandi-api/operation/util.go deleted file mode 100644 index 572444a03..000000000 --- a/vendor/github.com/prasmussen/gandi-api/operation/util.go +++ /dev/null @@ -1,33 +0,0 @@ -package operation - -import ( - "github.com/prasmussen/gandi-api/util" -) - -func ToOperationInfo(res map[string]interface{}) *OperationInfo { - return &OperationInfo{ - DateCreated: util.ToTime(res["date_created"]), - DateStart: util.ToTime(res["date_start"]), - DateUpdated: util.ToTime(res["date_updated"]), - Eta: util.ToString(res["eta"]), - Id: util.ToInt64(res["id"]), - LastError: util.ToString(res["last_error"]), - SessionId: util.ToInt64(res["session_id"]), - Source: util.ToString(res["source"]), - Step: util.ToString(res["step"]), - Type: util.ToString(res["type"]), - OperationDetails: ToOperationDetails(util.ToXmlrpcStruct(res["infos"])), - Params: util.ToXmlrpcStruct(res["params"]), - } -} - -func ToOperationDetails(res map[string]interface{}) *OperationDetails { - return &OperationDetails{ - Id: util.ToString(res["id"]), - Label: util.ToString(res["label"]), - ProductAction: util.ToString(res["product_action"]), - ProductName: util.ToString(res["product_name"]), - ProductType: util.ToString(res["product_type"]), - Quantity: util.ToInt64(res["quantity"]), - } -} diff --git a/vendor/gopkg.in/ini.v1/key.go b/vendor/gopkg.in/ini.v1/key.go index 7dd74fd47..0fee0dc7e 100644 --- a/vendor/gopkg.in/ini.v1/key.go +++ b/vendor/gopkg.in/ini.v1/key.go @@ -186,8 +186,8 @@ func (k *Key) Float64() (float64, error) { // Int returns int type value. func (k *Key) Int() (int, error) { - v, err := strconv.ParseInt(k.String(), 0, 64) - return int(v), err + v, err := strconv.ParseInt(k.String(), 0, 64) + return int(v), err } // Int64 returns int64 type value. @@ -669,7 +669,7 @@ func (k *Key) parseInts(strs []string, addInvalid, returnOnInvalid bool) ([]int, vals := make([]int, 0, len(strs)) for _, str := range strs { valInt64, err := strconv.ParseInt(str, 0, 64) - val := int(valInt64) + val := int(valInt64) if err != nil && returnOnInvalid { return nil, err }