Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeviceJsonReturn ¶
type DeviceJsonReturn struct { Name string `json:"name"` Status string `json:"status"` Serial string `json:"serial"` Dtype struct { Model string `json:"model"` Mfr struct { Name string `json:"name"` } `json:"manufacturers"` } `json:"device_type"` Platform *struct { Name string `json:"name"` Mfr struct { Name string `json:"name"` } `json:"manufacturers"` } `json:"platform,omitempty"` Site *struct { Name string `json:"name"` } `json:"site,omitempty"` IpAddress *struct { Address string `json:"ip_address,omitempty"` Version string `json:"ip_version,omitempty"` } `json:"primary_ip,omitempty"` }
func (DeviceJsonReturn) CheckDeviceEqual ¶
func (DeviceJsonReturn) CheckDeviceEqual(sqDevice, dbDevice DeviceJsonReturn) (string, error)
type DiffInterfaceRet ¶
type DiffInterfaceRet struct { DeviceID struct { SuzieQDevId int64 `json:"suzieq_dev_id,omitempty"` NetBoxDevId int64 `json:"netbox_dev_id,omitempty"` } `json:"device_id,omitempty"` Type struct { SuzieQIfcType string `json:"suzieq_ifc_type,omitempty"` NetBoxIfcType string `json:"netbox_ifc_type,omitempty"` } `json:"ifc_type,omitempty"` Speed struct { SuzieQIfcSpeed int64 `json:"suzieq_ifc_speed,omitempty"` NetboxIfcSpeed int64 `json:"netbox_ifc_speed,omitempty"` } `json:"ifc_speed,omitempty"` Mtu struct { SuzieQIfcMtu int64 `json:"suzieq_ifc_mtu,omitempty"` NetBoxIfcMtu int64 `json:"netbox_ifc_mtu,omitempty"` } `json:"ifc_mtu,omitempty"` MacAddress struct { SuzieQIfcMacAddr string `json:"suzieq_ifc_mac_addr,omitempty"` NetBoxIfcMacAddr string `json:"netbox_ifc_mac_addr,omitempty"` } `json:"ifc_mac_addr,omitempty"` State struct { SuzieQIfcState string `json:"suzieq_ifc_state,omitempty"` NetBoxIfcState string `json:"netbox_ifc_state,omitempty"` } `json:"ifc_state,omitempty"` }
type DiffInventoriesRet ¶
type DiffInventoriesRet struct { DeviceID struct { SuzieQDevId int64 `json:"suzieq_dev_id,omitempty"` NetBoxDevId int64 `json:"netbox_dev_id,omitempty"` } `json:"device_id,omitempty"` Name struct { SuzieQIfcName string `json:"suzieq_inv_name,omitempty"` NetBoxIfcName string `json:"netbox_inv_name,omitempty"` } `json:"inv_name,omitempty"` AssetTag struct { SuzieQAssetTag string `json:"suzieq_asset_tag,omitempty"` NetBoxAssetTag string `json:"netbox_asset_tag,omitempty"` } `json:"asset_tag,omitempty"` MfrName struct { SuzieQMfrName string `json:"suzieq_mfr_name,omitempty"` NetBoxMfrName string `json:"netbox_mfr_name,omitempty"` } `json:"dev_mfr_name,omitempty"` PartId struct { SuzieQPartId string `json:"suzieq_partid,omitempty"` NetBoxPartid string `json:"netbox_partid,omitempty"` } `json:"part_id,omitempty"` Descr struct { SuzieQDescr string `json:"suzieq_descr,omitempty"` NetBoxDescr string `json:"netbox_descr,omitempty"` } `json:"descr,omitempty"` Serial struct { SuzieQSerial string `json:"suzieq_serial,omitempty"` NetBoxSerial string `json:"netbox_serial,omitempty"` } `json:"dev_serial,omitempty"` }
type DiffJsonDeviceRet ¶
type DiffJsonDeviceRet struct { Name struct { SuzieQName string `json:"suzieq_name,omitempty"` NetBoxName string `json:"netbox_name,omitempty"` } `json:"name,omitempty"` Status struct { SuzieQStatus string `json:"suzieq_status,omitempty"` NetBoxStatus string `json:"netbox_status,omitempty"` } `json:"dev_status,omitempty"` Serial struct { SuzieQSerial string `json:"suzieq_serial,omitempty"` NetBoxSerial string `json:"netbox_serial,omitempty"` } `json:"dev_serial,omitempty"` Model struct { SuzieQModel string `json:"suzieq_model,omitempty"` NetBoxModel string `json:"netbox_model,omitempty"` } `json:"dev_model,omitempty"` MfrName struct { SuzieQMfrName string `json:"suzieq_mfr_name,omitempty"` NetBoxMfrName string `json:"netbox_mfr_name,omitempty"` } `json:"dev_mfr_name,omitempty"` Platform struct { SuzieQPltName string `json:"suzieq_plt_name,omitempty"` NetBoxPltName string `json:"netbox_plt_name,omitempty"` } `json:"dev_plt,omitempty"` SiteName struct { SuzieQSiteName string `json:"suzieq_site_name,omitempty"` NetBoxSiteName string `json:"netbox_site_name,omitempty"` } `json:"dev_site_name,omitempty"` PrimaryIP struct { SuzieQAddress string `json:"suzieq_address,omitempty"` NetBoxAddress string `json:"netbox_address,omitempty"` } `json:"dev_primary_ip,omitempty"` Version struct { SuzieQVersion string `json:"suzieq_version,omitempty"` NetBoxVersion string `json:"netbox_version,omitempty"` } `json:"dev_version,omitempty"` }
type DiffsDevice ¶
type DiffsDevice struct {
DeviceDiffs []DiffJsonDeviceRet `json:"device_diffs"`
}
type DiffsInterface ¶
type DiffsInterface struct {
InterfaceDiffs []DiffInterfaceRet `json:"interface_diffs"`
}
type DiffsInvRet ¶
type DiffsInvRet struct {
InventoriesDiffs []DiffInventoriesRet `json:"inventories_diffs"`
}
type IfIpJsonReturn ¶
type IfJsonReturn ¶
type IfJsonReturn struct { DeviceID int64 `json:"device_id"` Name string `json:"name"` Type string `json:"type"` Speed int64 `json:"speed"` Mtu int64 `json:"mtu"` MacAddress string `json:"mac_address"` State string `json:"state"` }
func (IfJsonReturn) CheckInterfaceEqual ¶
func (IfJsonReturn) CheckInterfaceEqual(sqInterface, dbInterface IfJsonReturn) (string, error)
type InvJsonReturn ¶
type InvJsonReturn struct { DeviceID int64 `json:"device_id"` Name string `json:"name"` AssetTag string `json:"asset_tag"` Mfr struct { Name string `json:"name"` } `json:"manufacturers"` PartId string `json:"part_id"` Descr string `json:"description"` Serial string `json:"serial"` }
func (InvJsonReturn) CheckInventoriesEqual ¶
func (InvJsonReturn) CheckInventoriesEqual(sqInventory, dbInventory InvJsonReturn) (string, error)
type SuzieQTranslate ¶
type SuzieQTranslate struct {
// contains filtered or unexported fields
}
func (*SuzieQTranslate) Translate ¶
func (st *SuzieQTranslate) Translate(data interface{}) error
Click to show internal directories.
Click to hide internal directories.