godevmandb

package module
v0.0.1-devel.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

README

godevmandb

godevmans DB

Documentation

Index

Constants

View Source
const CountArchivedInterfaces = `-- name: CountArchivedInterfaces :one
SELECT COUNT(*)
FROM archived_interfaces
`
View Source
const CountArchivedSubinterfaces = `-- name: CountArchivedSubinterfaces :one
SELECT COUNT(*)
FROM archived_subinterfaces
`
View Source
const CountConCapacities = `-- name: CountConCapacities :one
SELECT COUNT(*)
FROM con_capacities
`
View Source
const CountConClasses = `-- name: CountConClasses :one
SELECT COUNT(*)
FROM con_classes
`
View Source
const CountConProviders = `-- name: CountConProviders :one
SELECT COUNT(*)
FROM con_providers
`
View Source
const CountConTypes = `-- name: CountConTypes :one
SELECT COUNT(*)
FROM con_types
`
View Source
const CountConnections = `-- name: CountConnections :one
SELECT COUNT(*)
FROM connections
`
View Source
const CountCountries = `-- name: CountCountries :one
SELECT COUNT(*)
FROM countries
`
View Source
const CountCredentials = `-- name: CountCredentials :one
SELECT COUNT(*)
FROM credentials
`
View Source
const CountCustomEntities = `-- name: CountCustomEntities :one
SELECT COUNT(*)
FROM custom_entities
`
View Source
const CountDeviceClasses = `-- name: CountDeviceClasses :one
SELECT COUNT(*)
FROM device_classes
`
View Source
const CountDeviceCredentials = `-- name: CountDeviceCredentials :one
SELECT COUNT(*)
FROM device_credentials
`
View Source
const CountDeviceDomains = `-- name: CountDeviceDomains :one
SELECT COUNT(*)
FROM device_domains
`
View Source
const CountDeviceExtensions = `-- name: CountDeviceExtensions :one
SELECT COUNT(*)
FROM device_extensions
`
View Source
const CountDeviceLicenses = `-- name: CountDeviceLicenses :one
SELECT COUNT(*)
FROM device_licenses
`
View Source
const CountDeviceStates = `-- name: CountDeviceStates :one
SELECT COUNT(*)
FROM device_states
`
View Source
const CountDeviceTypes = `-- name: CountDeviceTypes :one
SELECT COUNT(*)
FROM device_types
`
View Source
const CountDevices = `-- name: CountDevices :one
SELECT COUNT(*)
FROM devices
`
View Source
const CountEntities = `-- name: CountEntities :one
SELECT COUNT(*)
FROM entities
`
View Source
const CountEntityPhyIndexes = `-- name: CountEntityPhyIndexes :one
SELECT COUNT(*)
FROM entity_phy_indexes
`
View Source
const CountIntBwStats = `-- name: CountIntBwStats :one
SELECT COUNT(*)
FROM int_bw_stats
`
View Source
const CountInterfaceRelations = `-- name: CountInterfaceRelations :one
SELECT COUNT(*)
FROM interface_relations
`
View Source
const CountInterfaces = `-- name: CountInterfaces :one
SELECT COUNT(*)
FROM interfaces
`
View Source
const CountIpInterfaces = `-- name: CountIpInterfaces :one
SELECT COUNT(*)
FROM ip_interfaces
`
View Source
const CountOspfNbrs = `-- name: CountOspfNbrs :one
SELECT COUNT(*)
FROM ospf_nbrs
`
View Source
const CountRlNbrs = `-- name: CountRlNbrs :one
SELECT COUNT(*)
FROM rl_nbrs
`
View Source
const CountSites = `-- name: CountSites :one
SELECT COUNT(*)
FROM sites
`
View Source
const CountSnmpCredentials = `-- name: CountSnmpCredentials :one
SELECT COUNT(*)
FROM snmp_credentials
`
View Source
const CountSubinterfaces = `-- name: CountSubinterfaces :one
SELECT COUNT(*)
FROM subinterfaces
`
View Source
const CountUserAuthzs = `-- name: CountUserAuthzs :one
SELECT COUNT(*)
FROM user_authzs
`
View Source
const CountUserGraphs = `-- name: CountUserGraphs :one
SELECT COUNT(*)
FROM user_graphs
`
View Source
const CountUsers = `-- name: CountUsers :one
SELECT COUNT(*)
FROM users
`
View Source
const CountVars = `-- name: CountVars :one
SELECT COUNT(*)
FROM vars
`
View Source
const CountVlans = `-- name: CountVlans :one
SELECT COUNT(*)
FROM vlans
`
View Source
const CountXconnects = `-- name: CountXconnects :one
SELECT COUNT(*)
FROM xconnects
`
View Source
const CreateArchivedInterface = `` /* 523-byte string literal not displayed */
View Source
const CreateArchivedSubinterface = `` /* 426-byte string literal not displayed */
View Source
const CreateConCapacity = `` /* 149-byte string literal not displayed */
View Source
const CreateConClass = `` /* 145-byte string literal not displayed */
View Source
const CreateConProvider = `` /* 149-byte string literal not displayed */
View Source
const CreateConType = `` /* 141-byte string literal not displayed */
View Source
const CreateConnection = `` /* 337-byte string literal not displayed */
View Source
const CreateCountry = `` /* 138-byte string literal not displayed */
View Source
const CreateCredential = `` /* 176-byte string literal not displayed */
View Source
const CreateCustomEntity = `` /* 204-byte string literal not displayed */
View Source
const CreateDevice = `` /* 932-byte string literal not displayed */
View Source
const CreateDeviceClass = `` /* 129-byte string literal not displayed */
View Source
const CreateDeviceCredential = `` /* 191-byte string literal not displayed */
View Source
const CreateDeviceDomain = `` /* 128-byte string literal not displayed */
View Source
const CreateDeviceExtension = `` /* 176-byte string literal not displayed */
View Source
const CreateDeviceLicense = `` /* 324-byte string literal not displayed */
View Source
const CreateDeviceState = `` /* 188-byte string literal not displayed */
View Source
const CreateDeviceType = `` /* 256-byte string literal not displayed */
View Source
const CreateEntity = `` /* 548-byte string literal not displayed */
View Source
const CreateEntityPhyIndex = `` /* 179-byte string literal not displayed */
View Source
const CreateIntBwStat = `` /* 407-byte string literal not displayed */
View Source
const CreateInterface = `` /* 641-byte string literal not displayed */
View Source
const CreateInterface2vlan = `` /* 140-byte string literal not displayed */
View Source
const CreateInterfaceRelation = `` /* 189-byte string literal not displayed */
View Source
const CreateIpInterface = `` /* 253-byte string literal not displayed */
View Source
const CreateOspfNbr = `` /* 196-byte string literal not displayed */
View Source
const CreateRlNbr = `` /* 204-byte string literal not displayed */
View Source
const CreateSite = `` /* 393-byte string literal not displayed */
View Source
const CreateSnmpCredential = `` /* 356-byte string literal not displayed */
View Source
const CreateSubinterface = `` /* 380-byte string literal not displayed */
View Source
const CreateUser = `` /* 153-byte string literal not displayed */
View Source
const CreateUserAuthz = `` /* 166-byte string literal not displayed */
View Source
const CreateUserGraph = `` /* 182-byte string literal not displayed */
View Source
const CreateVar = `` /* 141-byte string literal not displayed */
View Source
const CreateVlan = `` /* 145-byte string literal not displayed */
View Source
const CreateXconnect = `` /* 583-byte string literal not displayed */
View Source
const DeleteArchivedInterface = `-- name: DeleteArchivedInterface :exec
DELETE FROM archived_interfaces
WHERE ifa_id = $1
`
View Source
const DeleteArchivedSubinterface = `-- name: DeleteArchivedSubinterface :exec
DELETE FROM archived_subinterfaces
WHERE sifa_id = $1
`
View Source
const DeleteConCapacity = `-- name: DeleteConCapacity :exec
DELETE FROM con_capacities
WHERE con_cap_id = $1
`
View Source
const DeleteConClass = `-- name: DeleteConClass :exec
DELETE FROM con_classes
WHERE con_class_id = $1
`
View Source
const DeleteConProvider = `-- name: DeleteConProvider :exec
DELETE FROM con_providers
WHERE con_prov_id = $1
`
View Source
const DeleteConType = `-- name: DeleteConType :exec
DELETE FROM con_types
WHERE con_type_id = $1
`
View Source
const DeleteConnection = `-- name: DeleteConnection :exec
DELETE FROM connections
WHERE con_id = $1
`
View Source
const DeleteCountry = `-- name: DeleteCountry :exec
DELETE FROM countries
WHERE country_id = $1
`
View Source
const DeleteCredential = `-- name: DeleteCredential :exec
DELETE FROM credentials
WHERE cred_id = $1
`
View Source
const DeleteCustomEntity = `-- name: DeleteCustomEntity :exec
DELETE FROM custom_entities
WHERE cent_id = $1
`
View Source
const DeleteDevice = `-- name: DeleteDevice :exec
DELETE FROM devices
WHERE dev_id = $1
`
View Source
const DeleteDeviceClass = `-- name: DeleteDeviceClass :exec
DELETE FROM device_classes
WHERE class_id = $1
`
View Source
const DeleteDeviceCredential = `-- name: DeleteDeviceCredential :exec
DELETE FROM device_credentials
WHERE cred_id = $1
`
View Source
const DeleteDeviceDomain = `-- name: DeleteDeviceDomain :exec
DELETE FROM device_domains
WHERE dom_id = $1
`
View Source
const DeleteDeviceExtension = `-- name: DeleteDeviceExtension :exec
DELETE FROM device_extensions
WHERE ext_id = $1
`
View Source
const DeleteDeviceLicense = `-- name: DeleteDeviceLicense :exec
DELETE FROM device_licenses
WHERE lic_id = $1
`
View Source
const DeleteDeviceState = `-- name: DeleteDeviceState :exec
DELETE FROM device_states
WHERE dev_id = $1
`
View Source
const DeleteDeviceType = `-- name: DeleteDeviceType :exec
DELETE FROM device_types
WHERE sys_id = $1
`
View Source
const DeleteEntity = `-- name: DeleteEntity :exec
DELETE FROM entities
WHERE ent_id = $1
`
View Source
const DeleteEntityPhyIndex = `-- name: DeleteEntityPhyIndex :exec
DELETE FROM entity_phy_indexes
WHERE ei_id = $1
`
View Source
const DeleteIntBwStat = `-- name: DeleteIntBwStat :exec
DELETE FROM int_bw_stats
WHERE bw_id = $1
`
View Source
const DeleteInterface = `-- name: DeleteInterface :exec
DELETE FROM interfaces
WHERE if_id = $1
`
View Source
const DeleteInterface2vlan = `-- name: DeleteInterface2vlan :exec
DELETE FROM interfaces2vlans
WHERE v_id = $1
  AND if_id = $2
`
View Source
const DeleteInterfaceRelation = `-- name: DeleteInterfaceRelation :exec
DELETE FROM interface_relations
WHERE ir_id = $1
`
View Source
const DeleteIpInterface = `-- name: DeleteIpInterface :exec
DELETE FROM ip_interfaces
WHERE ip_id = $1
`
View Source
const DeleteOspfNbr = `-- name: DeleteOspfNbr :exec
DELETE FROM ospf_nbrs
WHERE nbr_id = $1
`
View Source
const DeleteRlNbr = `-- name: DeleteRlNbr :exec
DELETE FROM rl_nbrs
WHERE nbr_id = $1
`
View Source
const DeleteSite = `-- name: DeleteSite :exec
DELETE FROM sites
WHERE site_id = $1
`
View Source
const DeleteSnmpCredential = `-- name: DeleteSnmpCredential :exec
DELETE FROM snmp_credentials
WHERE snmp_cred_id = $1
`
View Source
const DeleteSubinterface = `-- name: DeleteSubinterface :exec
DELETE FROM subinterfaces
WHERE sif_id = $1
`
View Source
const DeleteUser = `-- name: DeleteUser :exec
DELETE FROM users
WHERE username = $1
`
View Source
const DeleteUserAuthz = `-- name: DeleteUserAuthz :exec
DELETE FROM user_authzs
WHERE username = $1
  AND dom_id = $2
`
View Source
const DeleteUserGraph = `-- name: DeleteUserGraph :exec
DELETE FROM user_graphs
WHERE graph_id = $1
`
View Source
const DeleteVar = `-- name: DeleteVar :exec
DELETE FROM vars
WHERE descr = $1
`
View Source
const DeleteVlan = `-- name: DeleteVlan :exec
DELETE FROM vlans
WHERE v_id = $1
`
View Source
const DeleteXconnect = `-- name: DeleteXconnect :exec
DELETE FROM xconnects
WHERE xc_id = $1
`
View Source
const GetArchivedInterface = `` /* 240-byte string literal not displayed */
View Source
const GetArchivedInterfaces = `` /* 2095-byte string literal not displayed */
View Source
const GetArchivedSubinterface = `` /* 209-byte string literal not displayed */
View Source
const GetArchivedSubinterfaces = `` /* 1748-byte string literal not displayed */
View Source
const GetConCapacities = `` /* 749-byte string literal not displayed */
View Source
const GetConCapacity = `` /* 127-byte string literal not displayed */
View Source
const GetConCapacityConnections = `` /* 200-byte string literal not displayed */
View Source
const GetConClass = `-- name: GetConClass :one
SELECT con_class_id, descr, notes, updated_on, created_on
FROM con_classes
WHERE con_class_id = $1
`
View Source
const GetConClassConnections = `` /* 199-byte string literal not displayed */
View Source
const GetConClasses = `` /* 745-byte string literal not displayed */
View Source
const GetConProvider = `` /* 128-byte string literal not displayed */
View Source
const GetConProviderConnections = `` /* 201-byte string literal not displayed */
View Source
const GetConProviders = `` /* 748-byte string literal not displayed */
View Source
const GetConType = `-- name: GetConType :one
SELECT con_type_id, descr, notes, updated_on, created_on
FROM con_types
WHERE con_type_id = $1
`
View Source
const GetConTypeConnections = `` /* 197-byte string literal not displayed */
View Source
const GetConTypes = `` /* 740-byte string literal not displayed */
View Source
const GetConnection = `` /* 183-byte string literal not displayed */
View Source
const GetConnectionConCapacitiy = `` /* 216-byte string literal not displayed */
View Source
const GetConnectionConClass = `` /* 215-byte string literal not displayed */
View Source
const GetConnectionConProvider = `` /* 217-byte string literal not displayed */
View Source
const GetConnectionConType = `` /* 209-byte string literal not displayed */
View Source
const GetConnectionInterfaces = `` /* 263-byte string literal not displayed */
View Source
const GetConnectionSite = `` /* 285-byte string literal not displayed */
View Source
const GetConnections = `` /* 983-byte string literal not displayed */
View Source
const GetCountries = `` /* 604-byte string literal not displayed */
View Source
const GetCountry = `-- name: GetCountry :one
SELECT country_id, code, descr, updated_on, created_on
FROM countries
WHERE country_id = $1
`
View Source
const GetCountrySites = `` /* 203-byte string literal not displayed */
View Source
const GetCredential = `` /* 132-byte string literal not displayed */
View Source
const GetCredentials = `` /* 570-byte string literal not displayed */
View Source
const GetCustomEntities = `` /* 1030-byte string literal not displayed */
View Source
const GetCustomEntity = `` /* 147-byte string literal not displayed */
View Source
const GetDevice = `` /* 355-byte string literal not displayed */
View Source
const GetDeviceChilds = `` /* 498-byte string literal not displayed */
View Source
const GetDeviceClass = `-- name: GetDeviceClass :one
SELECT class_id, descr, updated_on, created_on
FROM device_classes
WHERE class_id = $1
`
View Source
const GetDeviceClassDeviceTypes = `` /* 193-byte string literal not displayed */
View Source
const GetDeviceClasses = `` /* 554-byte string literal not displayed */
View Source
const GetDeviceCredential = `` /* 146-byte string literal not displayed */
View Source
const GetDeviceCredentialDevice = `` /* 519-byte string literal not displayed */
View Source
const GetDeviceCredentials = `` /* 587-byte string literal not displayed */
View Source
const GetDeviceDeviceCredentials = `` /* 167-byte string literal not displayed */
View Source
const GetDeviceDeviceDomain = `` /* 186-byte string literal not displayed */
View Source
const GetDeviceDeviceExtensions = `` /* 169-byte string literal not displayed */
View Source
const GetDeviceDeviceLicenses = `` /* 203-byte string literal not displayed */
View Source
const GetDeviceDeviceState = `` /* 138-byte string literal not displayed */
View Source
const GetDeviceDeviceType = `` /* 232-byte string literal not displayed */
View Source
const GetDeviceDomain = `-- name: GetDeviceDomain :one
SELECT dom_id, descr, updated_on, created_on
FROM device_domains
WHERE dom_id = $1
`
View Source
const GetDeviceDomainDevices = `` /* 388-byte string literal not displayed */
View Source
const GetDeviceDomainUserAuthzs = `` /* 153-byte string literal not displayed */
View Source
const GetDeviceDomains = `` /* 552-byte string literal not displayed */
View Source
const GetDeviceEntities = `` /* 262-byte string literal not displayed */
View Source
const GetDeviceExtension = `` /* 136-byte string literal not displayed */
View Source
const GetDeviceExtensionDevice = `` /* 516-byte string literal not displayed */
View Source
const GetDeviceExtensions = `` /* 767-byte string literal not displayed */
View Source
const GetDeviceInterfaces = `` /* 276-byte string literal not displayed */
View Source
const GetDeviceIpInterfaces = `` /* 176-byte string literal not displayed */
View Source
const GetDeviceLicense = `` /* 180-byte string literal not displayed */
View Source
const GetDeviceLicenseDevice = `` /* 512-byte string literal not displayed */
View Source
const GetDeviceLicenses = `` /* 2096-byte string literal not displayed */
View Source
const GetDeviceOspfNbrs = `` /* 147-byte string literal not displayed */
View Source
const GetDeviceParent = `` /* 497-byte string literal not displayed */
View Source
const GetDevicePeerXconnects = `` /* 242-byte string literal not displayed */
View Source
const GetDeviceRlNbrs = `` /* 154-byte string literal not displayed */
View Source
const GetDeviceSite = `` /* 277-byte string literal not displayed */
View Source
const GetDeviceSnmpCredentialsMain = `` /* 311-byte string literal not displayed */
View Source
const GetDeviceSnmpCredentialsRo = `` /* 307-byte string literal not displayed */
View Source
const GetDeviceState = `` /* 132-byte string literal not displayed */
View Source
const GetDeviceStateDevice = `` /* 508-byte string literal not displayed */
View Source
const GetDeviceStates = `` /* 612-byte string literal not displayed */
View Source
const GetDeviceType = `` /* 147-byte string literal not displayed */
View Source
const GetDeviceTypeDeviceClass = `` /* 200-byte string literal not displayed */
View Source
const GetDeviceTypeDevices = `` /* 386-byte string literal not displayed */
View Source
const GetDeviceTypes = `` /* 879-byte string literal not displayed */
View Source
const GetDeviceVlans = `` /* 130-byte string literal not displayed */
View Source
const GetDeviceXconnects = `` /* 233-byte string literal not displayed */
View Source
const GetDevices = `` /* 2720-byte string literal not displayed */
View Source
const GetEntities = `` /* 2303-byte string literal not displayed */
View Source
const GetEntity = `` /* 235-byte string literal not displayed */
View Source
const GetEntityChilds = `` /* 353-byte string literal not displayed */
View Source
const GetEntityDevice = `` /* 498-byte string literal not displayed */
View Source
const GetEntityEntityPhyIndexes = `` /* 161-byte string literal not displayed */
View Source
const GetEntityInterfaces = `` /* 276-byte string literal not displayed */
View Source
const GetEntityParent = `` /* 352-byte string literal not displayed */
View Source
const GetEntityPhyIndex = `` /* 136-byte string literal not displayed */
View Source
const GetEntityPhyIndexEntity = `` /* 362-byte string literal not displayed */
View Source
const GetEntityPhyIndexes = `` /* 629-byte string literal not displayed */
View Source
const GetEntityRlfNbrs = `` /* 233-byte string literal not displayed */
View Source
const GetIntBwStat = `` /* 186-byte string literal not displayed */
View Source
const GetIntBwStatInterface = `` /* 380-byte string literal not displayed */
View Source
const GetIntBwStats = `` /* 2578-byte string literal not displayed */
View Source
const GetInterface = `` /* 250-byte string literal not displayed */
View Source
const GetInterfaceChilds = `` /* 377-byte string literal not displayed */
View Source
const GetInterfaceConnection = `` /* 282-byte string literal not displayed */
View Source
const GetInterfaceDevice = `` /* 502-byte string literal not displayed */
View Source
const GetInterfaceEntity = `` /* 349-byte string literal not displayed */
View Source
const GetInterfaceIntBwStats = `` /* 217-byte string literal not displayed */
View Source
const GetInterfaceInterfaceRelations = `` /* 154-byte string literal not displayed */
View Source
const GetInterfaceInterfaceRelationsHigherFor = `` /* 459-byte string literal not displayed */
View Source
const GetInterfaceInterfaceRelationsLowerFor = `` /* 460-byte string literal not displayed */
View Source
const GetInterfaceOtnIf = `` /* 378-byte string literal not displayed */
View Source
const GetInterfaceParent = `` /* 376-byte string literal not displayed */
View Source
const GetInterfaceRelation = `` /* 143-byte string literal not displayed */
View Source
const GetInterfaceRelationInterface = `` /* 395-byte string literal not displayed */
View Source
const GetInterfaceRelationInterfaceDown = `` /* 404-byte string literal not displayed */
View Source
const GetInterfaceRelationInterfaceUp = `` /* 400-byte string literal not displayed */
View Source
const GetInterfaceRelations = `` /* 162-byte string literal not displayed */
View Source
const GetInterfaceSubinterfaces = `` /* 201-byte string literal not displayed */
View Source
const GetInterfaceVlans = `` /* 260-byte string literal not displayed */
View Source
const GetInterfaceXconnects = `` /* 235-byte string literal not displayed */
View Source
const GetInterfaces = `` /* 2169-byte string literal not displayed */
View Source
const GetInterfaces2vlans = `-- name: GetInterfaces2vlans :many
SELECT v_id, if_id, updated_on, created_on
FROM interfaces2vlans
ORDER BY v_id
`
View Source
const GetIpInterface = `` /* 142-byte string literal not displayed */
View Source
const GetIpInterfaceDevice = `` /* 509-byte string literal not displayed */
View Source
const GetIpInterfaces = `` /* 1060-byte string literal not displayed */
View Source
const GetOspfNbr = `-- name: GetOspfNbr :one
SELECT nbr_id, dev_id, nbr_ip, condition, updated_on, created_on
FROM ospf_nbrs
WHERE nbr_id = $1
`
View Source
const GetOspfNbrDevice = `` /* 502-byte string literal not displayed */
View Source
const GetOspfNbrs = `` /* 723-byte string literal not displayed */
View Source
const GetRlNbr = `-- name: GetRlNbr :one
SELECT nbr_id, dev_id, nbr_ent_id, nbr_sysname, updated_on, created_on
FROM rl_nbrs
WHERE nbr_id = $1
`
View Source
const GetRlNbrDevice = `` /* 498-byte string literal not displayed */
View Source
const GetRlNbrEntity = `` /* 349-byte string literal not displayed */
View Source
const GetRlNbrs = `` /* 570-byte string literal not displayed */
View Source
const GetSite = `` /* 176-byte string literal not displayed */
View Source
const GetSiteConnections = `` /* 190-byte string literal not displayed */
View Source
const GetSiteCountry = `` /* 194-byte string literal not displayed */
View Source
const GetSiteDevices = `` /* 381-byte string literal not displayed */
View Source
const GetSites = `` /* 1581-byte string literal not displayed */
View Source
const GetSnmpCredential = `` /* 206-byte string literal not displayed */
View Source
const GetSnmpCredentials = `` /* 703-byte string literal not displayed */
View Source
const GetSnmpCredentialsMainDevices = `` /* 539-byte string literal not displayed */
View Source
const GetSnmpCredentialsRoDevices = `` /* 535-byte string literal not displayed */
View Source
const GetSubinterface = `` /* 176-byte string literal not displayed */
View Source
const GetSubinterfaceInterface = `` /* 385-byte string literal not displayed */
View Source
const GetSubinterfaces = `` /* 1895-byte string literal not displayed */
View Source
const GetUser = `-- name: GetUser :one
SELECT username, userlevel, notes, updated_on, created_on
FROM users
WHERE username = $1
`
View Source
const GetUserAuthz = `` /* 141-byte string literal not displayed */
View Source
const GetUserAuthzDeviceDomain = `` /* 216-byte string literal not displayed */
View Source
const GetUserAuthzUser = `` /* 219-byte string literal not displayed */
View Source
const GetUserAuthzs = `` /* 703-byte string literal not displayed */
View Source
const GetUserGraph = `` /* 134-byte string literal not displayed */
View Source
const GetUserGraphUser = `` /* 198-byte string literal not displayed */
View Source
const GetUserGraphs = `` /* 740-byte string literal not displayed */
View Source
const GetUserUserAuthzs = `` /* 147-byte string literal not displayed */
View Source
const GetUserUserGraphs = `` /* 158-byte string literal not displayed */
View Source
const GetUsers = `` /* 835-byte string literal not displayed */
View Source
const GetVar = `-- name: GetVar :one
SELECT descr, content, notes, updated_on, created_on
FROM vars
WHERE descr = $1
`
View Source
const GetVars = `` /* 841-byte string literal not displayed */
View Source
const GetVlan = `-- name: GetVlan :one
SELECT v_id, dev_id, vlan, descr, updated_on, created_on
FROM vlans
WHERE v_id = $1
`
View Source
const GetVlanDevice = `` /* 491-byte string literal not displayed */
View Source
const GetVlanInterfaces = `` /* 439-byte string literal not displayed */
View Source
const GetVlans = `` /* 706-byte string literal not displayed */
View Source
const GetXconnect = `` /* 209-byte string literal not displayed */
View Source
const GetXconnectDevice = `` /* 502-byte string literal not displayed */
View Source
const GetXconnectInterface = `` /* 378-byte string literal not displayed */
View Source
const GetXconnectPeerDevice = `` /* 511-byte string literal not displayed */
View Source
const GetXconnects = `` /* 1737-byte string literal not displayed */
View Source
const UpdateArchivedInterface = `` /* 461-byte string literal not displayed */
View Source
const UpdateArchivedSubinterface = `` /* 375-byte string literal not displayed */
View Source
const UpdateConCapacity = `` /* 164-byte string literal not displayed */
View Source
const UpdateConClass = `` /* 162-byte string literal not displayed */
View Source
const UpdateConProvider = `` /* 165-byte string literal not displayed */
View Source
const UpdateConType = `` /* 157-byte string literal not displayed */
View Source
const UpdateConnection = `` /* 330-byte string literal not displayed */
View Source
const UpdateCountry = `` /* 153-byte string literal not displayed */
View Source
const UpdateCredential = `` /* 191-byte string literal not displayed */
View Source
const UpdateCustomEntity = `` /* 222-byte string literal not displayed */
View Source
const UpdateDevice = `` /* 810-byte string literal not displayed */
View Source
const UpdateDeviceClass = `` /* 139-byte string literal not displayed */
View Source
const UpdateDeviceCredential = `` /* 206-byte string literal not displayed */
View Source
const UpdateDeviceDomain = `` /* 136-byte string literal not displayed */
View Source
const UpdateDeviceExtension = `` /* 190-byte string literal not displayed */
View Source
const UpdateDeviceLicense = `` /* 317-byte string literal not displayed */
View Source
const UpdateDeviceState = `` /* 190-byte string literal not displayed */
View Source
const UpdateDeviceType = `` /* 236-byte string literal not displayed */
View Source
const UpdateEntity = `` /* 481-byte string literal not displayed */
View Source
const UpdateEntityPhyIndex = `` /* 192-byte string literal not displayed */
View Source
const UpdateIntBwStat = `` /* 354-byte string literal not displayed */
View Source
const UpdateInterface = `` /* 548-byte string literal not displayed */
View Source
const UpdateInterfaceRelation = `` /* 202-byte string literal not displayed */
View Source
const UpdateIpInterface = `` /* 234-byte string literal not displayed */
View Source
const UpdateOspfNbr = `` /* 184-byte string literal not displayed */
View Source
const UpdateRlNbr = `` /* 192-byte string literal not displayed */
View Source
const UpdateSite = `` /* 342-byte string literal not displayed */
View Source
const UpdateSnmpCredential = `` /* 355-byte string literal not displayed */
View Source
const UpdateSubinterface = `` /* 328-byte string literal not displayed */
View Source
const UpdateUser = `` /* 154-byte string literal not displayed */
View Source
const UpdateUserAuthz = `` /* 168-byte string literal not displayed */
View Source
const UpdateUserGraph = `` /* 201-byte string literal not displayed */
View Source
const UpdateVar = `` /* 142-byte string literal not displayed */
View Source
const UpdateVlan = `` /* 157-byte string literal not displayed */
View Source
const UpdateXconnect = `` /* 442-byte string literal not displayed */

Variables

This section is empty.

Functions

func DecryptStrAes

func DecryptStrAes(inStr string, secret string) (string, error)

Returns unencrypted string "instr" - AES GCM encrypted and hex encoded string created with "EncryptStrAes" function "secret" - secret string used for encryption

func EncryptStrAes

func EncryptStrAes(inStr string, secret string) (string, error)

Returns AES GCM encrypted and hex encoded string "instr" - plain text input string "secret" - secret string for encryption

Types

type ArchivedInterface

type ArchivedInterface struct {
	IfaID              int64          `json:"ifa_id"`
	Ifindex            *int64         `json:"ifindex"`
	OtnIfID            *int64         `json:"otn_if_id"`
	CiscoOptPowerIndex *string        `json:"cisco_opt_power_index"`
	Hostname           string         `json:"hostname"`
	HostIp4            pgtype.Inet    `json:"host_ip4"`
	HostIp6            pgtype.Inet    `json:"host_ip6"`
	Manufacturer       string         `json:"manufacturer"`
	Model              string         `json:"model"`
	Descr              string         `json:"descr"`
	Alias              *string        `json:"alias"`
	TypeEnum           *int16         `json:"type_enum"`
	Mac                pgtype.Macaddr `json:"mac"`
	UpdatedOn          time.Time      `json:"updated_on"`
	CreatedOn          time.Time      `json:"created_on"`
}

type ArchivedSubinterface

type ArchivedSubinterface struct {
	SifaID      int64          `json:"sifa_id"`
	Ifindex     *int64         `json:"ifindex"`
	Descr       string         `json:"descr"`
	ParentDescr *string        `json:"parent_descr"`
	Alias       *string        `json:"alias"`
	Type        *string        `json:"type"`
	Mac         pgtype.Macaddr `json:"mac"`
	Hostname    string         `json:"hostname"`
	HostIp4     pgtype.Inet    `json:"host_ip4"`
	HostIp6     pgtype.Inet    `json:"host_ip6"`
	Notes       *string        `json:"notes"`
	UpdatedOn   time.Time      `json:"updated_on"`
	CreatedOn   time.Time      `json:"created_on"`
}

type ConCapacity

type ConCapacity struct {
	ConCapID  int64     `json:"con_cap_id"`
	Descr     string    `json:"descr"`
	Notes     *string   `json:"notes"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type ConClass

type ConClass struct {
	ConClassID int64     `json:"con_class_id"`
	Descr      string    `json:"descr"`
	Notes      *string   `json:"notes"`
	UpdatedOn  time.Time `json:"updated_on"`
	CreatedOn  time.Time `json:"created_on"`
}

type ConProvider

type ConProvider struct {
	ConProvID int64     `json:"con_prov_id"`
	Descr     string    `json:"descr"`
	Notes     *string   `json:"notes"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type ConType

type ConType struct {
	ConTypeID int64     `json:"con_type_id"`
	Descr     string    `json:"descr"`
	Notes     *string   `json:"notes"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type Connection

type Connection struct {
	ConID      int64     `json:"con_id"`
	SiteID     int64     `json:"site_id"`
	ConProvID  int64     `json:"con_prov_id"`
	ConTypeID  int64     `json:"con_type_id"`
	ConCapID   int64     `json:"con_cap_id"`
	ConClassID int64     `json:"con_class_id"`
	Hint       *string   `json:"hint"`
	Notes      *string   `json:"notes"`
	InUse      bool      `json:"in_use"`
	UpdatedOn  time.Time `json:"updated_on"`
	CreatedOn  time.Time `json:"created_on"`
}

type Country

type Country struct {
	CountryID int64 `json:"country_id"`
	// ISO 3166-1 Alpha-2 code
	Code      string    `json:"code"`
	Descr     string    `json:"descr"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type CreateArchivedInterfaceParams

type CreateArchivedInterfaceParams struct {
	Ifindex            *int64         `json:"ifindex"`
	OtnIfID            *int64         `json:"otn_if_id"`
	CiscoOptPowerIndex *string        `json:"cisco_opt_power_index"`
	Hostname           string         `json:"hostname"`
	HostIp4            pgtype.Inet    `json:"host_ip4"`
	HostIp6            pgtype.Inet    `json:"host_ip6"`
	Manufacturer       string         `json:"manufacturer"`
	Model              string         `json:"model"`
	Descr              string         `json:"descr"`
	Alias              *string        `json:"alias"`
	TypeEnum           *int16         `json:"type_enum"`
	Mac                pgtype.Macaddr `json:"mac"`
}

type CreateArchivedSubinterfaceParams

type CreateArchivedSubinterfaceParams struct {
	Ifindex     *int64         `json:"ifindex"`
	Descr       string         `json:"descr"`
	ParentDescr *string        `json:"parent_descr"`
	Alias       *string        `json:"alias"`
	Type        *string        `json:"type"`
	Mac         pgtype.Macaddr `json:"mac"`
	Hostname    string         `json:"hostname"`
	HostIp4     pgtype.Inet    `json:"host_ip4"`
	HostIp6     pgtype.Inet    `json:"host_ip6"`
	Notes       *string        `json:"notes"`
}

type CreateConCapacityParams

type CreateConCapacityParams struct {
	Descr string  `json:"descr"`
	Notes *string `json:"notes"`
}

type CreateConClassParams

type CreateConClassParams struct {
	Descr string  `json:"descr"`
	Notes *string `json:"notes"`
}

type CreateConProviderParams

type CreateConProviderParams struct {
	Descr string  `json:"descr"`
	Notes *string `json:"notes"`
}

type CreateConTypeParams

type CreateConTypeParams struct {
	Descr string  `json:"descr"`
	Notes *string `json:"notes"`
}

type CreateConnectionParams

type CreateConnectionParams struct {
	SiteID     int64   `json:"site_id"`
	ConProvID  int64   `json:"con_prov_id"`
	ConTypeID  int64   `json:"con_type_id"`
	ConCapID   int64   `json:"con_cap_id"`
	ConClassID int64   `json:"con_class_id"`
	Hint       *string `json:"hint"`
	Notes      *string `json:"notes"`
	InUse      bool    `json:"in_use"`
}

type CreateCountryParams

type CreateCountryParams struct {
	Code  string `json:"code"`
	Descr string `json:"descr"`
}

type CreateCredentialParams

type CreateCredentialParams struct {
	Label     string  `json:"label"`
	Username  *string `json:"username"`
	EncSecret string  `json:"enc_secret"`
}

type CreateCustomEntityParams

type CreateCustomEntityParams struct {
	Manufacturer string  `json:"manufacturer"`
	SerialNr     string  `json:"serial_nr"`
	Part         *string `json:"part"`
	Descr        *string `json:"descr"`
}

type CreateDeviceCredentialParams

type CreateDeviceCredentialParams struct {
	DevID     int64  `json:"dev_id"`
	Username  string `json:"username"`
	EncSecret string `json:"enc_secret"`
}

type CreateDeviceExtensionParams

type CreateDeviceExtensionParams struct {
	DevID   int64   `json:"dev_id"`
	Field   string  `json:"field"`
	Content *string `json:"content"`
}

type CreateDeviceLicenseParams

type CreateDeviceLicenseParams struct {
	DevID     int64   `json:"dev_id"`
	Product   *string `json:"product"`
	Descr     *string `json:"descr"`
	Installed *int32  `json:"installed"`
	Unlocked  *int32  `json:"unlocked"`
	TotInst   *int32  `json:"tot_inst"`
	Used      *int32  `json:"used"`
	Condition *string `json:"condition"`
}

type CreateDeviceParams

type CreateDeviceParams struct {
	SiteID           *int64      `json:"site_id"`
	DomID            int64       `json:"dom_id"`
	SnmpMainID       *int64      `json:"snmp_main_id"`
	SnmpRoID         *int64      `json:"snmp_ro_id"`
	Parent           *int64      `json:"parent"`
	SysID            string      `json:"sys_id"`
	Ip4Addr          pgtype.Inet `json:"ip4_addr"`
	Ip6Addr          pgtype.Inet `json:"ip6_addr"`
	HostName         string      `json:"host_name"`
	SysName          *string     `json:"sys_name"`
	SysLocation      *string     `json:"sys_location"`
	SysContact       *string     `json:"sys_contact"`
	SwVersion        *string     `json:"sw_version"`
	ExtModel         *string     `json:"ext_model"`
	Installed        bool        `json:"installed"`
	Monitor          bool        `json:"monitor"`
	Graph            bool        `json:"graph"`
	Backup           bool        `json:"backup"`
	Source           string      `json:"source"`
	TypeChanged      bool        `json:"type_changed"`
	BackupFailed     bool        `json:"backup_failed"`
	ValidationFailed bool        `json:"validation_failed"`
	Unresponsive     bool        `json:"unresponsive"`
	Notes            *string     `json:"notes"`
}

type CreateDeviceStateParams

type CreateDeviceStateParams struct {
	DevID    int64      `json:"dev_id"`
	UpTime   *time.Time `json:"up_time"`
	DownTime *time.Time `json:"down_time"`
	Method   string     `json:"method"`
}

type CreateDeviceTypeParams

type CreateDeviceTypeParams struct {
	SysID        string `json:"sys_id"`
	ClassID      int64  `json:"class_id"`
	Manufacturer string `json:"manufacturer"`
	Model        string `json:"model"`
	Hc           bool   `json:"hc"`
	SnmpVer      int16  `json:"snmp_ver"`
}

type CreateEntityParams

type CreateEntityParams struct {
	ParentEntID  *int64  `json:"parent_ent_id"`
	SnmpEntID    *int64  `json:"snmp_ent_id"`
	DevID        int64   `json:"dev_id"`
	Slot         *string `json:"slot"`
	Descr        *string `json:"descr"`
	Model        *string `json:"model"`
	HwProduct    *string `json:"hw_product"`
	HwRevision   *string `json:"hw_revision"`
	SerialNr     *string `json:"serial_nr"`
	SwProduct    *string `json:"sw_product"`
	SwRevision   *string `json:"sw_revision"`
	Manufacturer *string `json:"manufacturer"`
	Physical     bool    `json:"physical"`
}

type CreateEntityPhyIndexParams

type CreateEntityPhyIndexParams struct {
	EntID    int64  `json:"ent_id"`
	PhyIndex int64  `json:"phy_index"`
	Descr    string `json:"descr"`
}

type CreateIntBwStatParams

type CreateIntBwStatParams struct {
	IfID     int64  `json:"if_id"`
	To50in   *int16 `json:"to50in"`
	To75in   *int16 `json:"to75in"`
	To90in   *int16 `json:"to90in"`
	To100in  *int16 `json:"to100in"`
	To50out  *int16 `json:"to50out"`
	To75out  *int16 `json:"to75out"`
	To90out  *int16 `json:"to90out"`
	To100out *int16 `json:"to100out"`
	IfGroup  string `json:"if_group"`
}

type CreateInterface2vlanParams

type CreateInterface2vlanParams struct {
	VID  int64 `json:"v_id"`
	IfID int64 `json:"if_id"`
}

type CreateInterfaceParams

type CreateInterfaceParams struct {
	ConID      *int64         `json:"con_id"`
	Parent     *int64         `json:"parent"`
	OtnIfID    *int64         `json:"otn_if_id"`
	DevID      int64          `json:"dev_id"`
	EntID      *int64         `json:"ent_id"`
	Ifindex    *int64         `json:"ifindex"`
	Descr      string         `json:"descr"`
	Alias      *string        `json:"alias"`
	Oper       *int16         `json:"oper"`
	Adm        *int16         `json:"adm"`
	Speed      *int64         `json:"speed"`
	Minspeed   *int64         `json:"minspeed"`
	TypeEnum   *int16         `json:"type_enum"`
	Mac        pgtype.Macaddr `json:"mac"`
	Monstatus  int16          `json:"monstatus"`
	Monerrors  int16          `json:"monerrors"`
	Monload    int16          `json:"monload"`
	Montraffic int16          `json:"montraffic"`
}

type CreateInterfaceRelationParams

type CreateInterfaceRelationParams struct {
	IfID     int64  `json:"if_id"`
	IfIDUp   *int64 `json:"if_id_up"`
	IfIDDown *int64 `json:"if_id_down"`
}

type CreateIpInterfaceParams

type CreateIpInterfaceParams struct {
	DevID   int64       `json:"dev_id"`
	Ifindex *int64      `json:"ifindex"`
	IpAddr  pgtype.Inet `json:"ip_addr"`
	Descr   *string     `json:"descr"`
	Alias   *string     `json:"alias"`
}

type CreateOspfNbrParams

type CreateOspfNbrParams struct {
	DevID     int64       `json:"dev_id"`
	NbrIp     pgtype.Inet `json:"nbr_ip"`
	Condition *string     `json:"condition"`
}

type CreateRlNbrParams

type CreateRlNbrParams struct {
	DevID      int64  `json:"dev_id"`
	NbrEntID   *int64 `json:"nbr_ent_id"`
	NbrSysname string `json:"nbr_sysname"`
}

type CreateSiteParams

type CreateSiteParams struct {
	CountryID int64    `json:"country_id"`
	Uident    *string  `json:"uident"`
	Descr     string   `json:"descr"`
	Latitude  *float32 `json:"latitude"`
	Longitude *float32 `json:"longitude"`
	Area      *string  `json:"area"`
	Addr      *string  `json:"addr"`
	Notes     *string  `json:"notes"`
	ExtID     *int64   `json:"ext_id"`
	ExtName   *string  `json:"ext_name"`
}

type CreateSnmpCredentialParams

type CreateSnmpCredentialParams struct {
	Label     string            `json:"label"`
	Variant   int32             `json:"variant"`
	AuthName  string            `json:"auth_name"`
	AuthProto NullSnmpAuthProto `json:"auth_proto"`
	AuthPass  *string           `json:"auth_pass"`
	SecLevel  NullSnmpSecLevel  `json:"sec_level"`
	PrivProto NullSnmpPrivProto `json:"priv_proto"`
	PrivPass  *string           `json:"priv_pass"`
}

type CreateSubinterfaceParams

type CreateSubinterfaceParams struct {
	IfID     *int64         `json:"if_id"`
	Ifindex  *int64         `json:"ifindex"`
	Descr    string         `json:"descr"`
	Alias    *string        `json:"alias"`
	Oper     *int16         `json:"oper"`
	Adm      *int16         `json:"adm"`
	Speed    *int64         `json:"speed"`
	TypeEnum *string        `json:"type_enum"`
	Mac      pgtype.Macaddr `json:"mac"`
	Notes    *string        `json:"notes"`
}

type CreateUserAuthzParams

type CreateUserAuthzParams struct {
	Username  string `json:"username"`
	DomID     int64  `json:"dom_id"`
	Userlevel int16  `json:"userlevel"`
}

type CreateUserGraphParams

type CreateUserGraphParams struct {
	Username string `json:"username"`
	Uri      string `json:"uri"`
	Descr    string `json:"descr"`
	Shared   bool   `json:"shared"`
}

type CreateUserParams

type CreateUserParams struct {
	Username  string  `json:"username"`
	Userlevel int16   `json:"userlevel"`
	Notes     *string `json:"notes"`
}

type CreateVarParams

type CreateVarParams struct {
	Descr   string  `json:"descr"`
	Content *string `json:"content"`
	Notes   *string `json:"notes"`
}

type CreateVlanParams

type CreateVlanParams struct {
	DevID int64   `json:"dev_id"`
	Vlan  int64   `json:"vlan"`
	Descr *string `json:"descr"`
}

type CreateXconnectParams

type CreateXconnectParams struct {
	DevID       int64       `json:"dev_id"`
	PeerDevID   *int64      `json:"peer_dev_id"`
	IfID        *int64      `json:"if_id"`
	VcIdx       int64       `json:"vc_idx"`
	VcID        int64       `json:"vc_id"`
	PeerIp      pgtype.Inet `json:"peer_ip"`
	PeerIfalias *string     `json:"peer_ifalias"`
	Xname       *string     `json:"xname"`
	Descr       *string     `json:"descr"`
	OpStat      *string     `json:"op_stat"`
	OpStatIn    *string     `json:"op_stat_in"`
	OpStatOut   *string     `json:"op_stat_out"`
}

type Credential

type Credential struct {
	CredID    int64     `json:"cred_id"`
	Label     string    `json:"label"`
	Username  *string   `json:"username"`
	EncSecret string    `json:"enc_secret"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type CustomEntity

type CustomEntity struct {
	CentID       int64     `json:"cent_id"`
	Manufacturer string    `json:"manufacturer"`
	SerialNr     string    `json:"serial_nr"`
	Part         *string   `json:"part"`
	Descr        *string   `json:"descr"`
	UpdatedOn    time.Time `json:"updated_on"`
	CreatedOn    time.Time `json:"created_on"`
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type DeleteInterface2vlanParams

type DeleteInterface2vlanParams struct {
	VID  int64 `json:"v_id"`
	IfID int64 `json:"if_id"`
}

type DeleteUserAuthzParams

type DeleteUserAuthzParams struct {
	Username string `json:"username"`
	DomID    int64  `json:"dom_id"`
}

type Device

type Device struct {
	DevID            int64       `json:"dev_id"`
	SiteID           *int64      `json:"site_id"`
	DomID            int64       `json:"dom_id"`
	SnmpMainID       *int64      `json:"snmp_main_id"`
	SnmpRoID         *int64      `json:"snmp_ro_id"`
	Parent           *int64      `json:"parent"`
	SysID            string      `json:"sys_id"`
	Ip4Addr          pgtype.Inet `json:"ip4_addr"`
	Ip6Addr          pgtype.Inet `json:"ip6_addr"`
	HostName         string      `json:"host_name"`
	SysName          *string     `json:"sys_name"`
	SysLocation      *string     `json:"sys_location"`
	SysContact       *string     `json:"sys_contact"`
	SwVersion        *string     `json:"sw_version"`
	ExtModel         *string     `json:"ext_model"`
	Installed        bool        `json:"installed"`
	Monitor          bool        `json:"monitor"`
	Graph            bool        `json:"graph"`
	Backup           bool        `json:"backup"`
	Source           string      `json:"source"`
	TypeChanged      bool        `json:"type_changed"`
	BackupFailed     bool        `json:"backup_failed"`
	ValidationFailed bool        `json:"validation_failed"`
	Unresponsive     bool        `json:"unresponsive"`
	Notes            *string     `json:"notes"`
	UpdatedOn        time.Time   `json:"updated_on"`
	CreatedOn        time.Time   `json:"created_on"`
}

type DeviceClass

type DeviceClass struct {
	ClassID   int64     `json:"class_id"`
	Descr     string    `json:"descr"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type DeviceCredential

type DeviceCredential struct {
	CredID    int64     `json:"cred_id"`
	DevID     int64     `json:"dev_id"`
	Username  string    `json:"username"`
	EncSecret string    `json:"enc_secret"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type DeviceDomain

type DeviceDomain struct {
	DomID     int64     `json:"dom_id"`
	Descr     string    `json:"descr"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type DeviceExtension

type DeviceExtension struct {
	ExtID     int64     `json:"ext_id"`
	DevID     int64     `json:"dev_id"`
	Field     string    `json:"field"`
	Content   *string   `json:"content"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type DeviceLicense

type DeviceLicense struct {
	LicID     int64     `json:"lic_id"`
	DevID     int64     `json:"dev_id"`
	Product   *string   `json:"product"`
	Descr     *string   `json:"descr"`
	Installed *int32    `json:"installed"`
	Unlocked  *int32    `json:"unlocked"`
	TotInst   *int32    `json:"tot_inst"`
	Used      *int32    `json:"used"`
	Condition *string   `json:"condition"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type DeviceState

type DeviceState struct {
	DevID     int64      `json:"dev_id"`
	UpTime    *time.Time `json:"up_time"`
	DownTime  *time.Time `json:"down_time"`
	Method    string     `json:"method"`
	UpdatedOn time.Time  `json:"updated_on"`
	CreatedOn time.Time  `json:"created_on"`
}

type DeviceType

type DeviceType struct {
	// snmp sysObjectId or some unique identifier if snmp is not supported
	SysID        string `json:"sys_id"`
	ClassID      int64  `json:"class_id"`
	Manufacturer string `json:"manufacturer"`
	Model        string `json:"model"`
	Hc           bool   `json:"hc"`
	// highest supported snmp version
	SnmpVer   int16     `json:"snmp_ver"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type Entity

type Entity struct {
	EntID        int64     `json:"ent_id"`
	ParentEntID  *int64    `json:"parent_ent_id"`
	SnmpEntID    *int64    `json:"snmp_ent_id"`
	DevID        int64     `json:"dev_id"`
	Slot         *string   `json:"slot"`
	Descr        *string   `json:"descr"`
	Model        *string   `json:"model"`
	HwProduct    *string   `json:"hw_product"`
	HwRevision   *string   `json:"hw_revision"`
	SerialNr     *string   `json:"serial_nr"`
	SwProduct    *string   `json:"sw_product"`
	SwRevision   *string   `json:"sw_revision"`
	Manufacturer *string   `json:"manufacturer"`
	Physical     bool      `json:"physical"`
	UpdatedOn    time.Time `json:"updated_on"`
	CreatedOn    time.Time `json:"created_on"`
}

type EntityPhyIndex

type EntityPhyIndex struct {
	EiID      int64     `json:"ei_id"`
	EntID     int64     `json:"ent_id"`
	PhyIndex  int64     `json:"phy_index"`
	Descr     string    `json:"descr"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type GetArchivedInterfacesParams

type GetArchivedInterfacesParams struct {
	UpdatedGe           time.Time      `json:"updated_ge"`
	UpdatedLe           time.Time      `json:"updated_le"`
	CreatedGe           time.Time      `json:"created_ge"`
	CreatedLe           time.Time      `json:"created_le"`
	IfindexF            *string        `json:"ifindex_f"`
	OtnIfIDF            *string        `json:"otn_if_id_f"`
	CiscoOptPowerIndexF *string        `json:"cisco_opt_power_index_f"`
	HostnameF           string         `json:"hostname_f"`
	HostIp4F            pgtype.Inet    `json:"host_ip4_f"`
	HostIp6F            pgtype.Inet    `json:"host_ip6_f"`
	ManufacturerF       string         `json:"manufacturer_f"`
	ModelF              string         `json:"model_f"`
	DescrF              string         `json:"descr_f"`
	AliasF              *string        `json:"alias_f"`
	TypeEnumF           *string        `json:"type_enum_f"`
	MacF                pgtype.Macaddr `json:"mac_f"`
	OffsetQ             int32          `json:"offset_q"`
	LimitQ              int32          `json:"limit_q"`
}

type GetArchivedSubinterfacesParams

type GetArchivedSubinterfacesParams struct {
	UpdatedGe    time.Time      `json:"updated_ge"`
	UpdatedLe    time.Time      `json:"updated_le"`
	CreatedGe    time.Time      `json:"created_ge"`
	CreatedLe    time.Time      `json:"created_le"`
	IfindexF     *string        `json:"ifindex_f"`
	DescrF       string         `json:"descr_f"`
	ParentDescrF *string        `json:"parent_descr_f"`
	AliasF       *string        `json:"alias_f"`
	TypeF        *string        `json:"type_f"`
	MacF         pgtype.Macaddr `json:"mac_f"`
	HostnameF    string         `json:"hostname_f"`
	HostIp4F     pgtype.Inet    `json:"host_ip4_f"`
	HostIp6F     pgtype.Inet    `json:"host_ip6_f"`
	NotesF       *string        `json:"notes_f"`
	OffsetQ      int32          `json:"offset_q"`
	LimitQ       int32          `json:"limit_q"`
}

type GetConCapacitiesParams

type GetConCapacitiesParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    string    `json:"descr_f"`
	NotesF    *string   `json:"notes_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetConClassesParams

type GetConClassesParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    string    `json:"descr_f"`
	NotesF    *string   `json:"notes_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetConProvidersParams

type GetConProvidersParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    string    `json:"descr_f"`
	NotesF    *string   `json:"notes_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetConTypesParams

type GetConTypesParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    string    `json:"descr_f"`
	NotesF    *string   `json:"notes_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetConnectionsParams

type GetConnectionsParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	HintF     *string   `json:"hint_f"`
	NotesF    *string   `json:"notes_f"`
	InUseF    string    `json:"in_use_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetCountriesParams

type GetCountriesParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    string    `json:"descr_f"`
	CodeF     string    `json:"code_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetCredentialsParams

type GetCredentialsParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	LabelF    string    `json:"label_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetCustomEntitiesParams

type GetCustomEntitiesParams struct {
	UpdatedGe     time.Time `json:"updated_ge"`
	UpdatedLe     time.Time `json:"updated_le"`
	CreatedGe     time.Time `json:"created_ge"`
	CreatedLe     time.Time `json:"created_le"`
	ManufacturerF string    `json:"manufacturer_f"`
	SerialNrF     string    `json:"serial_nr_f"`
	PartF         *string   `json:"part_f"`
	DescrF        *string   `json:"descr_f"`
	OffsetQ       int32     `json:"offset_q"`
	LimitQ        int32     `json:"limit_q"`
}

type GetDeviceClassesParams

type GetDeviceClassesParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    string    `json:"descr_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetDeviceCredentialsParams

type GetDeviceCredentialsParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	UsernameF string    `json:"username_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetDeviceDomainsParams

type GetDeviceDomainsParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    string    `json:"descr_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetDeviceExtensionsParams

type GetDeviceExtensionsParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	FieldF    string    `json:"field_f"`
	ContentF  *string   `json:"content_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetDeviceLicensesParams

type GetDeviceLicensesParams struct {
	UpdatedGe   time.Time `json:"updated_ge"`
	UpdatedLe   time.Time `json:"updated_le"`
	CreatedGe   time.Time `json:"created_ge"`
	CreatedLe   time.Time `json:"created_le"`
	InstalledLe *string   `json:"installed_le"`
	InstalledGe *string   `json:"installed_ge"`
	UnlockedLe  *string   `json:"unlocked_le"`
	UnlockedGe  *string   `json:"unlocked_ge"`
	TotInstLe   *string   `json:"tot_inst_le"`
	TotInstGe   *string   `json:"tot_inst_ge"`
	UsedLe      *string   `json:"used_le"`
	UsedGe      *string   `json:"used_ge"`
	ProductF    *string   `json:"product_f"`
	DescrF      *string   `json:"descr_f"`
	ConditionF  *string   `json:"condition_f"`
	OffsetQ     int32     `json:"offset_q"`
	LimitQ      int32     `json:"limit_q"`
}

type GetDeviceStatesParams

type GetDeviceStatesParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	MethodF   string    `json:"method_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetDeviceTypesParams

type GetDeviceTypesParams struct {
	UpdatedGe     time.Time `json:"updated_ge"`
	UpdatedLe     time.Time `json:"updated_le"`
	CreatedGe     time.Time `json:"created_ge"`
	CreatedLe     time.Time `json:"created_le"`
	SysIDF        string    `json:"sys_id_f"`
	ManufacturerF string    `json:"manufacturer_f"`
	ModelF        string    `json:"model_f"`
	HcF           string    `json:"hc_f"`
	SnmpVerF      string    `json:"snmp_ver_f"`
	OffsetQ       int32     `json:"offset_q"`
	LimitQ        int32     `json:"limit_q"`
}

type GetDevicesParams

type GetDevicesParams struct {
	UpdatedGe         time.Time   `json:"updated_ge"`
	UpdatedLe         time.Time   `json:"updated_le"`
	CreatedGe         time.Time   `json:"created_ge"`
	CreatedLe         time.Time   `json:"created_le"`
	SysIDF            string      `json:"sys_id_f"`
	HostNameF         string      `json:"host_name_f"`
	SourceF           string      `json:"source_f"`
	SwVersionF        *string     `json:"sw_version_f"`
	NotesF            *string     `json:"notes_f"`
	SysNameF          *string     `json:"sys_name_f"`
	ExtModelF         *string     `json:"ext_model_f"`
	Ip4AddrF          pgtype.Inet `json:"ip4_addr_f"`
	Ip6AddrF          pgtype.Inet `json:"ip6_addr_f"`
	InstalledF        string      `json:"installed_f"`
	MonitorF          string      `json:"monitor_f"`
	GraphF            string      `json:"graph_f"`
	BackupF           string      `json:"backup_f"`
	TypeChangedF      string      `json:"type_changed_f"`
	BackupFailedF     string      `json:"backup_failed_f"`
	ValidationFailedF string      `json:"validation_failed_f"`
	UnresponsiveF     string      `json:"unresponsive_f"`
	OffsetQ           int32       `json:"offset_q"`
	LimitQ            int32       `json:"limit_q"`
}

type GetEntitiesParams

type GetEntitiesParams struct {
	UpdatedGe     time.Time `json:"updated_ge"`
	UpdatedLe     time.Time `json:"updated_le"`
	CreatedGe     time.Time `json:"created_ge"`
	CreatedLe     time.Time `json:"created_le"`
	SnmpEntIDF    *string   `json:"snmp_ent_id_f"`
	SlotF         *string   `json:"slot_f"`
	DescrF        *string   `json:"descr_f"`
	ModelF        *string   `json:"model_f"`
	HwProductF    *string   `json:"hw_product_f"`
	HwRevisionF   *string   `json:"hw_revision_f"`
	SerialNrF     *string   `json:"serial_nr_f"`
	SwProductF    *string   `json:"sw_product_f"`
	SwRevisionF   *string   `json:"sw_revision_f"`
	ManufacturerF *string   `json:"manufacturer_f"`
	PhysicalF     string    `json:"physical_f"`
	OffsetQ       int32     `json:"offset_q"`
	LimitQ        int32     `json:"limit_q"`
}

type GetEntityPhyIndexesParams

type GetEntityPhyIndexesParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	PhyIndexF string    `json:"phy_index_f"`
	DescrF    string    `json:"descr_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetIntBwStatsParams

type GetIntBwStatsParams struct {
	UpdatedGe  time.Time `json:"updated_ge"`
	UpdatedLe  time.Time `json:"updated_le"`
	CreatedGe  time.Time `json:"created_ge"`
	CreatedLe  time.Time `json:"created_le"`
	To50inLe   *string   `json:"to50in_le"`
	To50inGe   *string   `json:"to50in_ge"`
	To75inLe   *string   `json:"to75in_le"`
	To75inGe   *string   `json:"to75in_ge"`
	To90inLe   *string   `json:"to90in_le"`
	To90inGe   *string   `json:"to90in_ge"`
	To100inLe  *string   `json:"to100in_le"`
	To100inGe  *string   `json:"to100in_ge"`
	To50outLe  *string   `json:"to50out_le"`
	To50outGe  *string   `json:"to50out_ge"`
	To75outLe  *string   `json:"to75out_le"`
	To75outGe  *string   `json:"to75out_ge"`
	To90outLe  *string   `json:"to90out_le"`
	To90outGe  *string   `json:"to90out_ge"`
	To100outLe *string   `json:"to100out_le"`
	To100outGe *string   `json:"to100out_ge"`
	IfGroupF   string    `json:"if_group_f"`
	OffsetQ    int32     `json:"offset_q"`
	LimitQ     int32     `json:"limit_q"`
}

type GetInterfaceRelationsParams

type GetInterfaceRelationsParams struct {
	Limit  int32 `json:"limit"`
	Offset int32 `json:"offset"`
}

type GetInterfacesParams

type GetInterfacesParams struct {
	UpdatedGe  time.Time      `json:"updated_ge"`
	UpdatedLe  time.Time      `json:"updated_le"`
	CreatedGe  time.Time      `json:"created_ge"`
	CreatedLe  time.Time      `json:"created_le"`
	IfindexF   *string        `json:"ifindex_f"`
	DescrF     string         `json:"descr_f"`
	AliasF     *string        `json:"alias_f"`
	OperF      *string        `json:"oper_f"`
	AdmF       *string        `json:"adm_f"`
	SpeedF     *string        `json:"speed_f"`
	MinspeedF  *string        `json:"minspeed_f"`
	TypeEnumF  *string        `json:"type_enum_f"`
	MacF       pgtype.Macaddr `json:"mac_f"`
	MonstatusF string         `json:"monstatus_f"`
	MonerrorsF string         `json:"monerrors_f"`
	MonloadF   string         `json:"monload_f"`
	OffsetQ    int32          `json:"offset_q"`
	LimitQ     int32          `json:"limit_q"`
}

type GetIpInterfacesParams

type GetIpInterfacesParams struct {
	UpdatedGe time.Time   `json:"updated_ge"`
	UpdatedLe time.Time   `json:"updated_le"`
	CreatedGe time.Time   `json:"created_ge"`
	CreatedLe time.Time   `json:"created_le"`
	IfindexF  *string     `json:"ifindex_f"`
	DescrF    *string     `json:"descr_f"`
	AliasF    *string     `json:"alias_f"`
	IpAddrF   pgtype.Inet `json:"ip_addr_f"`
	OffsetQ   int32       `json:"offset_q"`
	LimitQ    int32       `json:"limit_q"`
}

type GetOspfNbrsParams

type GetOspfNbrsParams struct {
	UpdatedGe  time.Time   `json:"updated_ge"`
	UpdatedLe  time.Time   `json:"updated_le"`
	CreatedGe  time.Time   `json:"created_ge"`
	CreatedLe  time.Time   `json:"created_le"`
	ConditionF *string     `json:"condition_f"`
	NbrIpF     pgtype.Inet `json:"nbr_ip_f"`
	OffsetQ    int32       `json:"offset_q"`
	LimitQ     int32       `json:"limit_q"`
}

type GetRlNbrsParams

type GetRlNbrsParams struct {
	UpdatedGe   time.Time `json:"updated_ge"`
	UpdatedLe   time.Time `json:"updated_le"`
	CreatedGe   time.Time `json:"created_ge"`
	CreatedLe   time.Time `json:"created_le"`
	NbrSysnameF string    `json:"nbr_sysname_f"`
	OffsetQ     int32     `json:"offset_q"`
	LimitQ      int32     `json:"limit_q"`
}

type GetSitesParams

type GetSitesParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	UidentF   *string   `json:"uident_f"`
	DescrF    string    `json:"descr_f"`
	AreaF     *string   `json:"area_f"`
	AddrF     *string   `json:"addr_f"`
	NotesF    *string   `json:"notes_f"`
	ExtNameF  *string   `json:"ext_name_f"`
	ExtIDF    *string   `json:"ext_id_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetSnmpCredentialsParams

type GetSnmpCredentialsParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	LabelF    string    `json:"label_f"`
	VariantF  string    `json:"variant_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetSubinterfacesParams

type GetSubinterfacesParams struct {
	UpdatedGe time.Time      `json:"updated_ge"`
	UpdatedLe time.Time      `json:"updated_le"`
	CreatedGe time.Time      `json:"created_ge"`
	CreatedLe time.Time      `json:"created_le"`
	IfindexF  *string        `json:"ifindex_f"`
	DescrF    string         `json:"descr_f"`
	AliasF    *string        `json:"alias_f"`
	OperF     *string        `json:"oper_f"`
	AdmF      *string        `json:"adm_f"`
	SpeedF    *string        `json:"speed_f"`
	TypeEnumF *string        `json:"type_enum_f"`
	MacF      pgtype.Macaddr `json:"mac_f"`
	NotesF    *string        `json:"notes_f"`
	OffsetQ   int32          `json:"offset_q"`
	LimitQ    int32          `json:"limit_q"`
}

type GetUserAuthzDeviceDomainParams

type GetUserAuthzDeviceDomainParams struct {
	Username string `json:"username"`
	DomID    int64  `json:"dom_id"`
}

type GetUserAuthzParams

type GetUserAuthzParams struct {
	Username string `json:"username"`
	DomID    int64  `json:"dom_id"`
}

type GetUserAuthzUserParams

type GetUserAuthzUserParams struct {
	Username string `json:"username"`
	DomID    int64  `json:"dom_id"`
}

type GetUserAuthzsParams

type GetUserAuthzsParams struct {
	UpdatedGe   time.Time `json:"updated_ge"`
	UpdatedLe   time.Time `json:"updated_le"`
	CreatedGe   time.Time `json:"created_ge"`
	CreatedLe   time.Time `json:"created_le"`
	UsernameF   string    `json:"username_f"`
	UserlevelLe string    `json:"userlevel_le"`
	UserlevelGe string    `json:"userlevel_ge"`
	OffsetQ     int32     `json:"offset_q"`
	LimitQ      int32     `json:"limit_q"`
}

type GetUserGraphsParams

type GetUserGraphsParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	UsernameF string    `json:"username_f"`
	DescrF    string    `json:"descr_f"`
	SharedF   string    `json:"shared_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetUsersParams

type GetUsersParams struct {
	UpdatedGe   time.Time `json:"updated_ge"`
	UpdatedLe   time.Time `json:"updated_le"`
	CreatedGe   time.Time `json:"created_ge"`
	CreatedLe   time.Time `json:"created_le"`
	UsernameF   string    `json:"username_f"`
	UserlevelLe string    `json:"userlevel_le"`
	UserlevelGe string    `json:"userlevel_ge"`
	NotesF      *string   `json:"notes_f"`
	OffsetQ     int32     `json:"offset_q"`
	LimitQ      int32     `json:"limit_q"`
}

type GetVarsParams

type GetVarsParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    string    `json:"descr_f"`
	ContentF  *string   `json:"content_f"`
	NotesF    *string   `json:"notes_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetVlansParams

type GetVlansParams struct {
	UpdatedGe time.Time `json:"updated_ge"`
	UpdatedLe time.Time `json:"updated_le"`
	CreatedGe time.Time `json:"created_ge"`
	CreatedLe time.Time `json:"created_le"`
	DescrF    *string   `json:"descr_f"`
	VlanF     string    `json:"vlan_f"`
	OffsetQ   int32     `json:"offset_q"`
	LimitQ    int32     `json:"limit_q"`
}

type GetXconnectsParams

type GetXconnectsParams struct {
	UpdatedGe    time.Time   `json:"updated_ge"`
	UpdatedLe    time.Time   `json:"updated_le"`
	CreatedGe    time.Time   `json:"created_ge"`
	CreatedLe    time.Time   `json:"created_le"`
	VcIdxF       string      `json:"vc_idx_f"`
	VcIDF        string      `json:"vc_id_f"`
	PeerIpF      pgtype.Inet `json:"peer_ip_f"`
	PeerIfaliasF *string     `json:"peer_ifalias_f"`
	XnameF       *string     `json:"xname_f"`
	DescrF       *string     `json:"descr_f"`
	OpStatF      *string     `json:"op_stat_f"`
	OpStatInF    *string     `json:"op_stat_in_f"`
	OpStatOutF   *string     `json:"op_stat_out_f"`
	OffsetQ      int32       `json:"offset_q"`
	LimitQ       int32       `json:"limit_q"`
}

type IntBwStat

type IntBwStat struct {
	BwID      int64     `json:"bw_id"`
	IfID      int64     `json:"if_id"`
	To50in    *int16    `json:"to50in"`
	To75in    *int16    `json:"to75in"`
	To90in    *int16    `json:"to90in"`
	To100in   *int16    `json:"to100in"`
	To50out   *int16    `json:"to50out"`
	To75out   *int16    `json:"to75out"`
	To90out   *int16    `json:"to90out"`
	To100out  *int16    `json:"to100out"`
	IfGroup   string    `json:"if_group"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type Interface

type Interface struct {
	IfID       int64          `json:"if_id"`
	ConID      *int64         `json:"con_id"`
	Parent     *int64         `json:"parent"`
	OtnIfID    *int64         `json:"otn_if_id"`
	DevID      int64          `json:"dev_id"`
	EntID      *int64         `json:"ent_id"`
	Ifindex    *int64         `json:"ifindex"`
	Descr      string         `json:"descr"`
	Alias      *string        `json:"alias"`
	Oper       *int16         `json:"oper"`
	Adm        *int16         `json:"adm"`
	Speed      *int64         `json:"speed"`
	Minspeed   *int64         `json:"minspeed"`
	TypeEnum   *int16         `json:"type_enum"`
	Mac        pgtype.Macaddr `json:"mac"`
	Monstatus  int16          `json:"monstatus"`
	Monerrors  int16          `json:"monerrors"`
	Monload    int16          `json:"monload"`
	UpdatedOn  time.Time      `json:"updated_on"`
	CreatedOn  time.Time      `json:"created_on"`
	Montraffic int16          `json:"montraffic"`
}

type InterfaceRelation

type InterfaceRelation struct {
	IrID      int64     `json:"ir_id"`
	IfID      int64     `json:"if_id"`
	IfIDUp    *int64    `json:"if_id_up"`
	IfIDDown  *int64    `json:"if_id_down"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type Interfaces2vlan

type Interfaces2vlan struct {
	VID       int64     `json:"v_id"`
	IfID      int64     `json:"if_id"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type IpInterface

type IpInterface struct {
	IpID      int64       `json:"ip_id"`
	DevID     int64       `json:"dev_id"`
	Ifindex   *int64      `json:"ifindex"`
	IpAddr    pgtype.Inet `json:"ip_addr"`
	Descr     *string     `json:"descr"`
	Alias     *string     `json:"alias"`
	UpdatedOn time.Time   `json:"updated_on"`
	CreatedOn time.Time   `json:"created_on"`
}

type NullSnmpAuthProto

type NullSnmpAuthProto struct {
	SnmpAuthProto SnmpAuthProto
	Valid         bool // Valid is true if SnmpAuthProto is not NULL
}

func (*NullSnmpAuthProto) Scan

func (ns *NullSnmpAuthProto) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSnmpAuthProto) Value

func (ns NullSnmpAuthProto) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullSnmpPrivProto

type NullSnmpPrivProto struct {
	SnmpPrivProto SnmpPrivProto
	Valid         bool // Valid is true if SnmpPrivProto is not NULL
}

func (*NullSnmpPrivProto) Scan

func (ns *NullSnmpPrivProto) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSnmpPrivProto) Value

func (ns NullSnmpPrivProto) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullSnmpSecLevel

type NullSnmpSecLevel struct {
	SnmpSecLevel SnmpSecLevel
	Valid        bool // Valid is true if SnmpSecLevel is not NULL
}

func (*NullSnmpSecLevel) Scan

func (ns *NullSnmpSecLevel) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullSnmpSecLevel) Value

func (ns NullSnmpSecLevel) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type OspfNbr

type OspfNbr struct {
	NbrID     int64       `json:"nbr_id"`
	DevID     int64       `json:"dev_id"`
	NbrIp     pgtype.Inet `json:"nbr_ip"`
	Condition *string     `json:"condition"`
	UpdatedOn time.Time   `json:"updated_on"`
	CreatedOn time.Time   `json:"created_on"`
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) CountArchivedInterfaces

func (q *Queries) CountArchivedInterfaces(ctx context.Context) (int64, error)

func (*Queries) CountArchivedSubinterfaces

func (q *Queries) CountArchivedSubinterfaces(ctx context.Context) (int64, error)

func (*Queries) CountConCapacities

func (q *Queries) CountConCapacities(ctx context.Context) (int64, error)

func (*Queries) CountConClasses

func (q *Queries) CountConClasses(ctx context.Context) (int64, error)

func (*Queries) CountConProviders

func (q *Queries) CountConProviders(ctx context.Context) (int64, error)

func (*Queries) CountConTypes

func (q *Queries) CountConTypes(ctx context.Context) (int64, error)

func (*Queries) CountConnections

func (q *Queries) CountConnections(ctx context.Context) (int64, error)

func (*Queries) CountCountries

func (q *Queries) CountCountries(ctx context.Context) (int64, error)

func (*Queries) CountCredentials

func (q *Queries) CountCredentials(ctx context.Context) (int64, error)

func (*Queries) CountCustomEntities

func (q *Queries) CountCustomEntities(ctx context.Context) (int64, error)

func (*Queries) CountDeviceClasses

func (q *Queries) CountDeviceClasses(ctx context.Context) (int64, error)

func (*Queries) CountDeviceCredentials

func (q *Queries) CountDeviceCredentials(ctx context.Context) (int64, error)

func (*Queries) CountDeviceDomains

func (q *Queries) CountDeviceDomains(ctx context.Context) (int64, error)

func (*Queries) CountDeviceExtensions

func (q *Queries) CountDeviceExtensions(ctx context.Context) (int64, error)

func (*Queries) CountDeviceLicenses

func (q *Queries) CountDeviceLicenses(ctx context.Context) (int64, error)

func (*Queries) CountDeviceStates

func (q *Queries) CountDeviceStates(ctx context.Context) (int64, error)

func (*Queries) CountDeviceTypes

func (q *Queries) CountDeviceTypes(ctx context.Context) (int64, error)

func (*Queries) CountDevices

func (q *Queries) CountDevices(ctx context.Context) (int64, error)

func (*Queries) CountEntities

func (q *Queries) CountEntities(ctx context.Context) (int64, error)

func (*Queries) CountEntityPhyIndexes

func (q *Queries) CountEntityPhyIndexes(ctx context.Context) (int64, error)

func (*Queries) CountIntBwStats

func (q *Queries) CountIntBwStats(ctx context.Context) (int64, error)

func (*Queries) CountInterfaceRelations

func (q *Queries) CountInterfaceRelations(ctx context.Context) (int64, error)

func (*Queries) CountInterfaces

func (q *Queries) CountInterfaces(ctx context.Context) (int64, error)

func (*Queries) CountIpInterfaces

func (q *Queries) CountIpInterfaces(ctx context.Context) (int64, error)

func (*Queries) CountOspfNbrs

func (q *Queries) CountOspfNbrs(ctx context.Context) (int64, error)

func (*Queries) CountRlNbrs

func (q *Queries) CountRlNbrs(ctx context.Context) (int64, error)

func (*Queries) CountSites

func (q *Queries) CountSites(ctx context.Context) (int64, error)

func (*Queries) CountSnmpCredentials

func (q *Queries) CountSnmpCredentials(ctx context.Context) (int64, error)

func (*Queries) CountSubinterfaces

func (q *Queries) CountSubinterfaces(ctx context.Context) (int64, error)

func (*Queries) CountUserAuthzs

func (q *Queries) CountUserAuthzs(ctx context.Context) (int64, error)

func (*Queries) CountUserGraphs

func (q *Queries) CountUserGraphs(ctx context.Context) (int64, error)

func (*Queries) CountUsers

func (q *Queries) CountUsers(ctx context.Context) (int64, error)

func (*Queries) CountVars

func (q *Queries) CountVars(ctx context.Context) (int64, error)

func (*Queries) CountVlans

func (q *Queries) CountVlans(ctx context.Context) (int64, error)

func (*Queries) CountXconnects

func (q *Queries) CountXconnects(ctx context.Context) (int64, error)

func (*Queries) CreateArchivedInterface

func (q *Queries) CreateArchivedInterface(ctx context.Context, arg CreateArchivedInterfaceParams) (ArchivedInterface, error)

func (*Queries) CreateArchivedSubinterface

func (q *Queries) CreateArchivedSubinterface(ctx context.Context, arg CreateArchivedSubinterfaceParams) (ArchivedSubinterface, error)

func (*Queries) CreateConCapacity

func (q *Queries) CreateConCapacity(ctx context.Context, arg CreateConCapacityParams) (ConCapacity, error)

func (*Queries) CreateConClass

func (q *Queries) CreateConClass(ctx context.Context, arg CreateConClassParams) (ConClass, error)

func (*Queries) CreateConProvider

func (q *Queries) CreateConProvider(ctx context.Context, arg CreateConProviderParams) (ConProvider, error)

func (*Queries) CreateConType

func (q *Queries) CreateConType(ctx context.Context, arg CreateConTypeParams) (ConType, error)

func (*Queries) CreateConnection

func (q *Queries) CreateConnection(ctx context.Context, arg CreateConnectionParams) (Connection, error)

func (*Queries) CreateCountry

func (q *Queries) CreateCountry(ctx context.Context, arg CreateCountryParams) (Country, error)

func (*Queries) CreateCredential

func (q *Queries) CreateCredential(ctx context.Context, arg CreateCredentialParams) (Credential, error)

func (*Queries) CreateCustomEntity

func (q *Queries) CreateCustomEntity(ctx context.Context, arg CreateCustomEntityParams) (CustomEntity, error)

func (*Queries) CreateDevice

func (q *Queries) CreateDevice(ctx context.Context, arg CreateDeviceParams) (Device, error)

func (*Queries) CreateDeviceClass

func (q *Queries) CreateDeviceClass(ctx context.Context, descr string) (DeviceClass, error)

func (*Queries) CreateDeviceCredential

func (q *Queries) CreateDeviceCredential(ctx context.Context, arg CreateDeviceCredentialParams) (DeviceCredential, error)

func (*Queries) CreateDeviceDomain

func (q *Queries) CreateDeviceDomain(ctx context.Context, descr string) (DeviceDomain, error)

func (*Queries) CreateDeviceExtension

func (q *Queries) CreateDeviceExtension(ctx context.Context, arg CreateDeviceExtensionParams) (DeviceExtension, error)

func (*Queries) CreateDeviceLicense

func (q *Queries) CreateDeviceLicense(ctx context.Context, arg CreateDeviceLicenseParams) (DeviceLicense, error)

func (*Queries) CreateDeviceState

func (q *Queries) CreateDeviceState(ctx context.Context, arg CreateDeviceStateParams) (DeviceState, error)

func (*Queries) CreateDeviceType

func (q *Queries) CreateDeviceType(ctx context.Context, arg CreateDeviceTypeParams) (DeviceType, error)

func (*Queries) CreateEntity

func (q *Queries) CreateEntity(ctx context.Context, arg CreateEntityParams) (Entity, error)

func (*Queries) CreateEntityPhyIndex

func (q *Queries) CreateEntityPhyIndex(ctx context.Context, arg CreateEntityPhyIndexParams) (EntityPhyIndex, error)

func (*Queries) CreateIntBwStat

func (q *Queries) CreateIntBwStat(ctx context.Context, arg CreateIntBwStatParams) (IntBwStat, error)

func (*Queries) CreateInterface

func (q *Queries) CreateInterface(ctx context.Context, arg CreateInterfaceParams) (Interface, error)

func (*Queries) CreateInterface2vlan

func (q *Queries) CreateInterface2vlan(ctx context.Context, arg CreateInterface2vlanParams) (Interfaces2vlan, error)

func (*Queries) CreateInterfaceRelation

func (q *Queries) CreateInterfaceRelation(ctx context.Context, arg CreateInterfaceRelationParams) (InterfaceRelation, error)

func (*Queries) CreateIpInterface

func (q *Queries) CreateIpInterface(ctx context.Context, arg CreateIpInterfaceParams) (IpInterface, error)

func (*Queries) CreateOspfNbr

func (q *Queries) CreateOspfNbr(ctx context.Context, arg CreateOspfNbrParams) (OspfNbr, error)

func (*Queries) CreateRlNbr

func (q *Queries) CreateRlNbr(ctx context.Context, arg CreateRlNbrParams) (RlNbr, error)

func (*Queries) CreateSite

func (q *Queries) CreateSite(ctx context.Context, arg CreateSiteParams) (Site, error)

func (*Queries) CreateSnmpCredential

func (q *Queries) CreateSnmpCredential(ctx context.Context, arg CreateSnmpCredentialParams) (SnmpCredential, error)

func (*Queries) CreateSubinterface

func (q *Queries) CreateSubinterface(ctx context.Context, arg CreateSubinterfaceParams) (Subinterface, error)

func (*Queries) CreateUser

func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)

func (*Queries) CreateUserAuthz

func (q *Queries) CreateUserAuthz(ctx context.Context, arg CreateUserAuthzParams) (UserAuthz, error)

func (*Queries) CreateUserGraph

func (q *Queries) CreateUserGraph(ctx context.Context, arg CreateUserGraphParams) (UserGraph, error)

func (*Queries) CreateVar

func (q *Queries) CreateVar(ctx context.Context, arg CreateVarParams) (Var, error)

func (*Queries) CreateVlan

func (q *Queries) CreateVlan(ctx context.Context, arg CreateVlanParams) (Vlan, error)

func (*Queries) CreateXconnect

func (q *Queries) CreateXconnect(ctx context.Context, arg CreateXconnectParams) (Xconnect, error)

func (*Queries) DeleteArchivedInterface

func (q *Queries) DeleteArchivedInterface(ctx context.Context, ifaID int64) error

func (*Queries) DeleteArchivedSubinterface

func (q *Queries) DeleteArchivedSubinterface(ctx context.Context, sifaID int64) error

func (*Queries) DeleteConCapacity

func (q *Queries) DeleteConCapacity(ctx context.Context, conCapID int64) error

func (*Queries) DeleteConClass

func (q *Queries) DeleteConClass(ctx context.Context, conClassID int64) error

func (*Queries) DeleteConProvider

func (q *Queries) DeleteConProvider(ctx context.Context, conProvID int64) error

func (*Queries) DeleteConType

func (q *Queries) DeleteConType(ctx context.Context, conTypeID int64) error

func (*Queries) DeleteConnection

func (q *Queries) DeleteConnection(ctx context.Context, conID int64) error

func (*Queries) DeleteCountry

func (q *Queries) DeleteCountry(ctx context.Context, countryID int64) error

func (*Queries) DeleteCredential

func (q *Queries) DeleteCredential(ctx context.Context, credID int64) error

func (*Queries) DeleteCustomEntity

func (q *Queries) DeleteCustomEntity(ctx context.Context, centID int64) error

func (*Queries) DeleteDevice

func (q *Queries) DeleteDevice(ctx context.Context, devID int64) error

func (*Queries) DeleteDeviceClass

func (q *Queries) DeleteDeviceClass(ctx context.Context, classID int64) error

func (*Queries) DeleteDeviceCredential

func (q *Queries) DeleteDeviceCredential(ctx context.Context, credID int64) error

func (*Queries) DeleteDeviceDomain

func (q *Queries) DeleteDeviceDomain(ctx context.Context, domID int64) error

func (*Queries) DeleteDeviceExtension

func (q *Queries) DeleteDeviceExtension(ctx context.Context, extID int64) error

func (*Queries) DeleteDeviceLicense

func (q *Queries) DeleteDeviceLicense(ctx context.Context, licID int64) error

func (*Queries) DeleteDeviceState

func (q *Queries) DeleteDeviceState(ctx context.Context, devID int64) error

func (*Queries) DeleteDeviceType

func (q *Queries) DeleteDeviceType(ctx context.Context, sysID string) error

func (*Queries) DeleteEntity

func (q *Queries) DeleteEntity(ctx context.Context, entID int64) error

func (*Queries) DeleteEntityPhyIndex

func (q *Queries) DeleteEntityPhyIndex(ctx context.Context, eiID int64) error

func (*Queries) DeleteIntBwStat

func (q *Queries) DeleteIntBwStat(ctx context.Context, bwID int64) error

func (*Queries) DeleteInterface

func (q *Queries) DeleteInterface(ctx context.Context, ifID int64) error

func (*Queries) DeleteInterface2vlan

func (q *Queries) DeleteInterface2vlan(ctx context.Context, arg DeleteInterface2vlanParams) error

func (*Queries) DeleteInterfaceRelation

func (q *Queries) DeleteInterfaceRelation(ctx context.Context, irID int64) error

func (*Queries) DeleteIpInterface

func (q *Queries) DeleteIpInterface(ctx context.Context, ipID int64) error

func (*Queries) DeleteOspfNbr

func (q *Queries) DeleteOspfNbr(ctx context.Context, nbrID int64) error

func (*Queries) DeleteRlNbr

func (q *Queries) DeleteRlNbr(ctx context.Context, nbrID int64) error

func (*Queries) DeleteSite

func (q *Queries) DeleteSite(ctx context.Context, siteID int64) error

func (*Queries) DeleteSnmpCredential

func (q *Queries) DeleteSnmpCredential(ctx context.Context, snmpCredID int64) error

func (*Queries) DeleteSubinterface

func (q *Queries) DeleteSubinterface(ctx context.Context, sifID int64) error

func (*Queries) DeleteUser

func (q *Queries) DeleteUser(ctx context.Context, username string) error

func (*Queries) DeleteUserAuthz

func (q *Queries) DeleteUserAuthz(ctx context.Context, arg DeleteUserAuthzParams) error

func (*Queries) DeleteUserGraph

func (q *Queries) DeleteUserGraph(ctx context.Context, graphID int64) error

func (*Queries) DeleteVar

func (q *Queries) DeleteVar(ctx context.Context, descr string) error

func (*Queries) DeleteVlan

func (q *Queries) DeleteVlan(ctx context.Context, vID int64) error

func (*Queries) DeleteXconnect

func (q *Queries) DeleteXconnect(ctx context.Context, xcID int64) error

func (*Queries) GetArchivedInterface

func (q *Queries) GetArchivedInterface(ctx context.Context, ifaID int64) (ArchivedInterface, error)

func (*Queries) GetArchivedInterfaces

func (q *Queries) GetArchivedInterfaces(ctx context.Context, arg GetArchivedInterfacesParams) ([]ArchivedInterface, error)

func (*Queries) GetArchivedSubinterface

func (q *Queries) GetArchivedSubinterface(ctx context.Context, sifaID int64) (ArchivedSubinterface, error)

func (*Queries) GetArchivedSubinterfaces

func (q *Queries) GetArchivedSubinterfaces(ctx context.Context, arg GetArchivedSubinterfacesParams) ([]ArchivedSubinterface, error)

func (*Queries) GetConCapacities

func (q *Queries) GetConCapacities(ctx context.Context, arg GetConCapacitiesParams) ([]ConCapacity, error)

func (*Queries) GetConCapacity

func (q *Queries) GetConCapacity(ctx context.Context, conCapID int64) (ConCapacity, error)

func (*Queries) GetConCapacityConnections

func (q *Queries) GetConCapacityConnections(ctx context.Context, conCapID int64) ([]Connection, error)

Relations

func (*Queries) GetConClass

func (q *Queries) GetConClass(ctx context.Context, conClassID int64) (ConClass, error)

func (*Queries) GetConClassConnections

func (q *Queries) GetConClassConnections(ctx context.Context, conClassID int64) ([]Connection, error)

Relations

func (*Queries) GetConClasses

func (q *Queries) GetConClasses(ctx context.Context, arg GetConClassesParams) ([]ConClass, error)

func (*Queries) GetConProvider

func (q *Queries) GetConProvider(ctx context.Context, conProvID int64) (ConProvider, error)

func (*Queries) GetConProviderConnections

func (q *Queries) GetConProviderConnections(ctx context.Context, conProvID int64) ([]Connection, error)

Relations

func (*Queries) GetConProviders

func (q *Queries) GetConProviders(ctx context.Context, arg GetConProvidersParams) ([]ConProvider, error)

func (*Queries) GetConType

func (q *Queries) GetConType(ctx context.Context, conTypeID int64) (ConType, error)

func (*Queries) GetConTypeConnections

func (q *Queries) GetConTypeConnections(ctx context.Context, conTypeID int64) ([]Connection, error)

Relations

func (*Queries) GetConTypes

func (q *Queries) GetConTypes(ctx context.Context, arg GetConTypesParams) ([]ConType, error)

func (*Queries) GetConnection

func (q *Queries) GetConnection(ctx context.Context, conID int64) (Connection, error)

func (*Queries) GetConnectionConCapacitiy

func (q *Queries) GetConnectionConCapacitiy(ctx context.Context, conID int64) (ConCapacity, error)

Foreign keys

func (*Queries) GetConnectionConClass

func (q *Queries) GetConnectionConClass(ctx context.Context, conID int64) (ConClass, error)

Foreign keys

func (*Queries) GetConnectionConProvider

func (q *Queries) GetConnectionConProvider(ctx context.Context, conID int64) (ConProvider, error)

Foreign keys

func (*Queries) GetConnectionConType

func (q *Queries) GetConnectionConType(ctx context.Context, conID int64) (ConType, error)

Foreign keys

func (*Queries) GetConnectionInterfaces

func (q *Queries) GetConnectionInterfaces(ctx context.Context, conID *int64) ([]Interface, error)

Relations

func (*Queries) GetConnectionSite

func (q *Queries) GetConnectionSite(ctx context.Context, conID int64) (Site, error)

Foreign keys

func (*Queries) GetConnections

func (q *Queries) GetConnections(ctx context.Context, arg GetConnectionsParams) ([]Connection, error)

func (*Queries) GetCountries

func (q *Queries) GetCountries(ctx context.Context, arg GetCountriesParams) ([]Country, error)

func (*Queries) GetCountry

func (q *Queries) GetCountry(ctx context.Context, countryID int64) (Country, error)

func (*Queries) GetCountrySites

func (q *Queries) GetCountrySites(ctx context.Context, countryID int64) ([]Site, error)

Relations

func (*Queries) GetCredential

func (q *Queries) GetCredential(ctx context.Context, credID int64) (Credential, error)

func (*Queries) GetCredentials

func (q *Queries) GetCredentials(ctx context.Context, arg GetCredentialsParams) ([]Credential, error)

func (*Queries) GetCustomEntities

func (q *Queries) GetCustomEntities(ctx context.Context, arg GetCustomEntitiesParams) ([]CustomEntity, error)

func (*Queries) GetCustomEntity

func (q *Queries) GetCustomEntity(ctx context.Context, centID int64) (CustomEntity, error)

func (*Queries) GetDevice

func (q *Queries) GetDevice(ctx context.Context, devID int64) (Device, error)

func (*Queries) GetDeviceChilds

func (q *Queries) GetDeviceChilds(ctx context.Context, devID int64) ([]Device, error)

Relations

func (*Queries) GetDeviceClass

func (q *Queries) GetDeviceClass(ctx context.Context, classID int64) (DeviceClass, error)

func (*Queries) GetDeviceClassDeviceTypes

func (q *Queries) GetDeviceClassDeviceTypes(ctx context.Context, classID int64) ([]DeviceType, error)

Relations

func (*Queries) GetDeviceClasses

func (q *Queries) GetDeviceClasses(ctx context.Context, arg GetDeviceClassesParams) ([]DeviceClass, error)

func (*Queries) GetDeviceCredential

func (q *Queries) GetDeviceCredential(ctx context.Context, credID int64) (DeviceCredential, error)

func (*Queries) GetDeviceCredentialDevice

func (q *Queries) GetDeviceCredentialDevice(ctx context.Context, credID int64) (Device, error)

Foreign keys

func (*Queries) GetDeviceCredentials

func (q *Queries) GetDeviceCredentials(ctx context.Context, arg GetDeviceCredentialsParams) ([]DeviceCredential, error)

func (*Queries) GetDeviceDeviceCredentials

func (q *Queries) GetDeviceDeviceCredentials(ctx context.Context, devID int64) ([]DeviceCredential, error)

Relations

func (*Queries) GetDeviceDeviceDomain

func (q *Queries) GetDeviceDeviceDomain(ctx context.Context, devID int64) (DeviceDomain, error)

Foreign keys

func (*Queries) GetDeviceDeviceExtensions

func (q *Queries) GetDeviceDeviceExtensions(ctx context.Context, devID int64) ([]DeviceExtension, error)

Relations

func (*Queries) GetDeviceDeviceLicenses

func (q *Queries) GetDeviceDeviceLicenses(ctx context.Context, devID int64) ([]DeviceLicense, error)

Relations

func (*Queries) GetDeviceDeviceState

func (q *Queries) GetDeviceDeviceState(ctx context.Context, devID int64) (DeviceState, error)

Relations

func (*Queries) GetDeviceDeviceType

func (q *Queries) GetDeviceDeviceType(ctx context.Context, devID int64) (DeviceType, error)

Foreign keys

func (*Queries) GetDeviceDomain

func (q *Queries) GetDeviceDomain(ctx context.Context, domID int64) (DeviceDomain, error)

func (*Queries) GetDeviceDomainDevices

func (q *Queries) GetDeviceDomainDevices(ctx context.Context, domID int64) ([]Device, error)

Relations

func (*Queries) GetDeviceDomainUserAuthzs

func (q *Queries) GetDeviceDomainUserAuthzs(ctx context.Context, domID int64) ([]UserAuthz, error)

func (*Queries) GetDeviceDomains

func (q *Queries) GetDeviceDomains(ctx context.Context, arg GetDeviceDomainsParams) ([]DeviceDomain, error)

func (*Queries) GetDeviceEntities

func (q *Queries) GetDeviceEntities(ctx context.Context, devID int64) ([]Entity, error)

Relations

func (*Queries) GetDeviceExtension

func (q *Queries) GetDeviceExtension(ctx context.Context, extID int64) (DeviceExtension, error)

func (*Queries) GetDeviceExtensionDevice

func (q *Queries) GetDeviceExtensionDevice(ctx context.Context, extID int64) (Device, error)

Foreign keys

func (*Queries) GetDeviceExtensions

func (q *Queries) GetDeviceExtensions(ctx context.Context, arg GetDeviceExtensionsParams) ([]DeviceExtension, error)

func (*Queries) GetDeviceInterfaces

func (q *Queries) GetDeviceInterfaces(ctx context.Context, devID int64) ([]Interface, error)

Relations

func (*Queries) GetDeviceIpInterfaces

func (q *Queries) GetDeviceIpInterfaces(ctx context.Context, devID int64) ([]IpInterface, error)

Relations

func (*Queries) GetDeviceLicense

func (q *Queries) GetDeviceLicense(ctx context.Context, licID int64) (DeviceLicense, error)

func (*Queries) GetDeviceLicenseDevice

func (q *Queries) GetDeviceLicenseDevice(ctx context.Context, licID int64) (Device, error)

Foreign keys

func (*Queries) GetDeviceLicenses

func (q *Queries) GetDeviceLicenses(ctx context.Context, arg GetDeviceLicensesParams) ([]DeviceLicense, error)

func (*Queries) GetDeviceOspfNbrs

func (q *Queries) GetDeviceOspfNbrs(ctx context.Context, devID int64) ([]OspfNbr, error)

Relations

func (*Queries) GetDeviceParent

func (q *Queries) GetDeviceParent(ctx context.Context, devID int64) (Device, error)

Foreign keys

func (*Queries) GetDevicePeerXconnects

func (q *Queries) GetDevicePeerXconnects(ctx context.Context, peerDevID *int64) ([]Xconnect, error)

Relations

func (*Queries) GetDeviceRlNbrs

func (q *Queries) GetDeviceRlNbrs(ctx context.Context, devID int64) ([]RlNbr, error)

Relations

func (*Queries) GetDeviceSite

func (q *Queries) GetDeviceSite(ctx context.Context, devID int64) (Site, error)

Foreign keys

func (*Queries) GetDeviceSnmpCredentialsMain

func (q *Queries) GetDeviceSnmpCredentialsMain(ctx context.Context, devID int64) (SnmpCredential, error)

Foreign keys

func (*Queries) GetDeviceSnmpCredentialsRo

func (q *Queries) GetDeviceSnmpCredentialsRo(ctx context.Context, devID int64) (SnmpCredential, error)

Foreign keys

func (*Queries) GetDeviceState

func (q *Queries) GetDeviceState(ctx context.Context, devID int64) (DeviceState, error)

func (*Queries) GetDeviceStateDevice

func (q *Queries) GetDeviceStateDevice(ctx context.Context, devID int64) (Device, error)

Foreign keys

func (*Queries) GetDeviceStates

func (q *Queries) GetDeviceStates(ctx context.Context, arg GetDeviceStatesParams) ([]DeviceState, error)

func (*Queries) GetDeviceType

func (q *Queries) GetDeviceType(ctx context.Context, sysID string) (DeviceType, error)

func (*Queries) GetDeviceTypeDeviceClass

func (q *Queries) GetDeviceTypeDeviceClass(ctx context.Context, sysID string) (DeviceClass, error)

Foreign keys

func (*Queries) GetDeviceTypeDevices

func (q *Queries) GetDeviceTypeDevices(ctx context.Context, sysID string) ([]Device, error)

Relations

func (*Queries) GetDeviceTypes

func (q *Queries) GetDeviceTypes(ctx context.Context, arg GetDeviceTypesParams) ([]DeviceType, error)

func (*Queries) GetDeviceVlans

func (q *Queries) GetDeviceVlans(ctx context.Context, devID int64) ([]Vlan, error)

Relations

func (*Queries) GetDeviceXconnects

func (q *Queries) GetDeviceXconnects(ctx context.Context, devID int64) ([]Xconnect, error)

Relations

func (*Queries) GetDevices

func (q *Queries) GetDevices(ctx context.Context, arg GetDevicesParams) ([]Device, error)

func (*Queries) GetEntities

func (q *Queries) GetEntities(ctx context.Context, arg GetEntitiesParams) ([]Entity, error)

func (*Queries) GetEntity

func (q *Queries) GetEntity(ctx context.Context, entID int64) (Entity, error)

func (*Queries) GetEntityChilds

func (q *Queries) GetEntityChilds(ctx context.Context, entID int64) ([]Entity, error)

Relations

func (*Queries) GetEntityDevice

func (q *Queries) GetEntityDevice(ctx context.Context, entID int64) (Device, error)

Foreign keys

func (*Queries) GetEntityEntityPhyIndexes

func (q *Queries) GetEntityEntityPhyIndexes(ctx context.Context, entID int64) ([]EntityPhyIndex, error)

Relations

func (*Queries) GetEntityInterfaces

func (q *Queries) GetEntityInterfaces(ctx context.Context, entID *int64) ([]Interface, error)

Relations

func (*Queries) GetEntityParent

func (q *Queries) GetEntityParent(ctx context.Context, entID int64) (Entity, error)

Foreign keys

func (*Queries) GetEntityPhyIndex

func (q *Queries) GetEntityPhyIndex(ctx context.Context, eiID int64) (EntityPhyIndex, error)

func (*Queries) GetEntityPhyIndexEntity

func (q *Queries) GetEntityPhyIndexEntity(ctx context.Context, eiID int64) (Entity, error)

Foreign keys

func (*Queries) GetEntityPhyIndexes

func (q *Queries) GetEntityPhyIndexes(ctx context.Context, arg GetEntityPhyIndexesParams) ([]EntityPhyIndex, error)

func (*Queries) GetEntityRlfNbrs

func (q *Queries) GetEntityRlfNbrs(ctx context.Context, entID int64) ([]RlNbr, error)

Relations

func (*Queries) GetIntBwStat

func (q *Queries) GetIntBwStat(ctx context.Context, bwID int64) (IntBwStat, error)

func (*Queries) GetIntBwStatInterface

func (q *Queries) GetIntBwStatInterface(ctx context.Context, bwID int64) (Interface, error)

Foreign keys

func (*Queries) GetIntBwStats

func (q *Queries) GetIntBwStats(ctx context.Context, arg GetIntBwStatsParams) ([]IntBwStat, error)

func (*Queries) GetInterface

func (q *Queries) GetInterface(ctx context.Context, ifID int64) (Interface, error)

func (*Queries) GetInterfaceChilds

func (q *Queries) GetInterfaceChilds(ctx context.Context, ifID int64) ([]Interface, error)

Relations

func (*Queries) GetInterfaceConnection

func (q *Queries) GetInterfaceConnection(ctx context.Context, ifID int64) (Connection, error)

Foreign keys

func (*Queries) GetInterfaceDevice

func (q *Queries) GetInterfaceDevice(ctx context.Context, ifID int64) (Device, error)

Foreign keys

func (*Queries) GetInterfaceEntity

func (q *Queries) GetInterfaceEntity(ctx context.Context, ifID int64) (Entity, error)

Foreign keys

func (*Queries) GetInterfaceIntBwStats

func (q *Queries) GetInterfaceIntBwStats(ctx context.Context, ifID int64) ([]IntBwStat, error)

Relations

func (*Queries) GetInterfaceInterfaceRelations

func (q *Queries) GetInterfaceInterfaceRelations(ctx context.Context, ifID int64) ([]InterfaceRelation, error)

Relations

func (*Queries) GetInterfaceInterfaceRelationsHigherFor

func (q *Queries) GetInterfaceInterfaceRelationsHigherFor(ctx context.Context, ifID int64) ([]Interface, error)

Relations

func (*Queries) GetInterfaceInterfaceRelationsLowerFor

func (q *Queries) GetInterfaceInterfaceRelationsLowerFor(ctx context.Context, ifID int64) ([]Interface, error)

Relations

func (*Queries) GetInterfaceOtnIf

func (q *Queries) GetInterfaceOtnIf(ctx context.Context, ifID int64) (Interface, error)

Foreign keys

func (*Queries) GetInterfaceParent

func (q *Queries) GetInterfaceParent(ctx context.Context, ifID int64) (Interface, error)

Foreign keys

func (*Queries) GetInterfaceRelation

func (q *Queries) GetInterfaceRelation(ctx context.Context, irID int64) (InterfaceRelation, error)

func (*Queries) GetInterfaceRelationInterface

func (q *Queries) GetInterfaceRelationInterface(ctx context.Context, irID int64) (Interface, error)

Foreign keys

func (*Queries) GetInterfaceRelationInterfaceDown

func (q *Queries) GetInterfaceRelationInterfaceDown(ctx context.Context, irID int64) (Interface, error)

Foreign keys

func (*Queries) GetInterfaceRelationInterfaceUp

func (q *Queries) GetInterfaceRelationInterfaceUp(ctx context.Context, irID int64) (Interface, error)

Foreign keys

func (*Queries) GetInterfaceRelations

func (q *Queries) GetInterfaceRelations(ctx context.Context, arg GetInterfaceRelationsParams) ([]InterfaceRelation, error)

func (*Queries) GetInterfaceSubinterfaces

func (q *Queries) GetInterfaceSubinterfaces(ctx context.Context, ifID *int64) ([]Subinterface, error)

Relations

func (*Queries) GetInterfaceVlans

func (q *Queries) GetInterfaceVlans(ctx context.Context, ifID int64) ([]Vlan, error)

Relations

func (*Queries) GetInterfaceXconnects

func (q *Queries) GetInterfaceXconnects(ctx context.Context, ifID *int64) ([]Xconnect, error)

Relations

func (*Queries) GetInterfaces

func (q *Queries) GetInterfaces(ctx context.Context, arg GetInterfacesParams) ([]Interface, error)

func (*Queries) GetInterfaces2vlans

func (q *Queries) GetInterfaces2vlans(ctx context.Context) ([]Interfaces2vlan, error)

func (*Queries) GetIpInterface

func (q *Queries) GetIpInterface(ctx context.Context, ipID int64) (IpInterface, error)

func (*Queries) GetIpInterfaceDevice

func (q *Queries) GetIpInterfaceDevice(ctx context.Context, ipID int64) (Device, error)

Foreign keys

func (*Queries) GetIpInterfaces

func (q *Queries) GetIpInterfaces(ctx context.Context, arg GetIpInterfacesParams) ([]IpInterface, error)

func (*Queries) GetOspfNbr

func (q *Queries) GetOspfNbr(ctx context.Context, nbrID int64) (OspfNbr, error)

func (*Queries) GetOspfNbrDevice

func (q *Queries) GetOspfNbrDevice(ctx context.Context, nbrID int64) (Device, error)

Foreign keys

func (*Queries) GetOspfNbrs

func (q *Queries) GetOspfNbrs(ctx context.Context, arg GetOspfNbrsParams) ([]OspfNbr, error)

func (*Queries) GetRlNbr

func (q *Queries) GetRlNbr(ctx context.Context, nbrID int64) (RlNbr, error)

func (*Queries) GetRlNbrDevice

func (q *Queries) GetRlNbrDevice(ctx context.Context, nbrID int64) (Device, error)

Foreign keys

func (*Queries) GetRlNbrEntity

func (q *Queries) GetRlNbrEntity(ctx context.Context, nbrID int64) (Entity, error)

Foreign keys

func (*Queries) GetRlNbrs

func (q *Queries) GetRlNbrs(ctx context.Context, arg GetRlNbrsParams) ([]RlNbr, error)

func (*Queries) GetSite

func (q *Queries) GetSite(ctx context.Context, siteID int64) (Site, error)

func (*Queries) GetSiteConnections

func (q *Queries) GetSiteConnections(ctx context.Context, siteID int64) ([]Connection, error)

Relations

func (*Queries) GetSiteCountry

func (q *Queries) GetSiteCountry(ctx context.Context, siteID int64) (Country, error)

Foreign keys

func (*Queries) GetSiteDevices

func (q *Queries) GetSiteDevices(ctx context.Context, siteID *int64) ([]Device, error)

Relations

func (*Queries) GetSites

func (q *Queries) GetSites(ctx context.Context, arg GetSitesParams) ([]Site, error)

func (*Queries) GetSnmpCredential

func (q *Queries) GetSnmpCredential(ctx context.Context, snmpCredID int64) (SnmpCredential, error)

func (*Queries) GetSnmpCredentials

func (q *Queries) GetSnmpCredentials(ctx context.Context, arg GetSnmpCredentialsParams) ([]SnmpCredential, error)

func (*Queries) GetSnmpCredentialsMainDevices

func (q *Queries) GetSnmpCredentialsMainDevices(ctx context.Context, snmpCredID int64) ([]Device, error)

Relations

func (*Queries) GetSnmpCredentialsRoDevices

func (q *Queries) GetSnmpCredentialsRoDevices(ctx context.Context, snmpCredID int64) ([]Device, error)

Relations

func (*Queries) GetSubinterface

func (q *Queries) GetSubinterface(ctx context.Context, sifID int64) (Subinterface, error)

func (*Queries) GetSubinterfaceInterface

func (q *Queries) GetSubinterfaceInterface(ctx context.Context, sifID int64) (Interface, error)

Foreign keys

func (*Queries) GetSubinterfaces

func (q *Queries) GetSubinterfaces(ctx context.Context, arg GetSubinterfacesParams) ([]Subinterface, error)

func (*Queries) GetUser

func (q *Queries) GetUser(ctx context.Context, username string) (User, error)

func (*Queries) GetUserAuthz

func (q *Queries) GetUserAuthz(ctx context.Context, arg GetUserAuthzParams) (UserAuthz, error)

func (*Queries) GetUserAuthzDeviceDomain

func (q *Queries) GetUserAuthzDeviceDomain(ctx context.Context, arg GetUserAuthzDeviceDomainParams) (DeviceDomain, error)

Foreign keys

func (*Queries) GetUserAuthzUser

func (q *Queries) GetUserAuthzUser(ctx context.Context, arg GetUserAuthzUserParams) (User, error)

Foreign keys

func (*Queries) GetUserAuthzs

func (q *Queries) GetUserAuthzs(ctx context.Context, arg GetUserAuthzsParams) ([]UserAuthz, error)

func (*Queries) GetUserGraph

func (q *Queries) GetUserGraph(ctx context.Context, graphID int64) (UserGraph, error)

func (*Queries) GetUserGraphUser

func (q *Queries) GetUserGraphUser(ctx context.Context, graphID int64) (User, error)

Foreign keys

func (*Queries) GetUserGraphs

func (q *Queries) GetUserGraphs(ctx context.Context, arg GetUserGraphsParams) ([]UserGraph, error)

func (*Queries) GetUserUserAuthzs

func (q *Queries) GetUserUserAuthzs(ctx context.Context, username string) ([]UserAuthz, error)

Relations

func (*Queries) GetUserUserGraphs

func (q *Queries) GetUserUserGraphs(ctx context.Context, username string) ([]UserGraph, error)

Relations

func (*Queries) GetUsers

func (q *Queries) GetUsers(ctx context.Context, arg GetUsersParams) ([]User, error)

func (*Queries) GetVar

func (q *Queries) GetVar(ctx context.Context, descr string) (Var, error)

func (*Queries) GetVars

func (q *Queries) GetVars(ctx context.Context, arg GetVarsParams) ([]Var, error)

func (*Queries) GetVlan

func (q *Queries) GetVlan(ctx context.Context, vID int64) (Vlan, error)

func (*Queries) GetVlanDevice

func (q *Queries) GetVlanDevice(ctx context.Context, vID int64) (Device, error)

Foreign keys

func (*Queries) GetVlanInterfaces

func (q *Queries) GetVlanInterfaces(ctx context.Context, vID int64) ([]Interface, error)

Relations

func (*Queries) GetVlans

func (q *Queries) GetVlans(ctx context.Context, arg GetVlansParams) ([]Vlan, error)

func (*Queries) GetXconnect

func (q *Queries) GetXconnect(ctx context.Context, xcID int64) (Xconnect, error)

func (*Queries) GetXconnectDevice

func (q *Queries) GetXconnectDevice(ctx context.Context, xcID int64) (Device, error)

Foreign keys

func (*Queries) GetXconnectInterface

func (q *Queries) GetXconnectInterface(ctx context.Context, xcID int64) (Interface, error)

Foreign keys

func (*Queries) GetXconnectPeerDevice

func (q *Queries) GetXconnectPeerDevice(ctx context.Context, xcID int64) (Device, error)

Foreign keys

func (*Queries) GetXconnects

func (q *Queries) GetXconnects(ctx context.Context, arg GetXconnectsParams) ([]Xconnect, error)

func (*Queries) UpdateArchivedInterface

func (q *Queries) UpdateArchivedInterface(ctx context.Context, arg UpdateArchivedInterfaceParams) (ArchivedInterface, error)

func (*Queries) UpdateArchivedSubinterface

func (q *Queries) UpdateArchivedSubinterface(ctx context.Context, arg UpdateArchivedSubinterfaceParams) (ArchivedSubinterface, error)

func (*Queries) UpdateConCapacity

func (q *Queries) UpdateConCapacity(ctx context.Context, arg UpdateConCapacityParams) (ConCapacity, error)

func (*Queries) UpdateConClass

func (q *Queries) UpdateConClass(ctx context.Context, arg UpdateConClassParams) (ConClass, error)

func (*Queries) UpdateConProvider

func (q *Queries) UpdateConProvider(ctx context.Context, arg UpdateConProviderParams) (ConProvider, error)

func (*Queries) UpdateConType

func (q *Queries) UpdateConType(ctx context.Context, arg UpdateConTypeParams) (ConType, error)

func (*Queries) UpdateConnection

func (q *Queries) UpdateConnection(ctx context.Context, arg UpdateConnectionParams) (Connection, error)

func (*Queries) UpdateCountry

func (q *Queries) UpdateCountry(ctx context.Context, arg UpdateCountryParams) (Country, error)

func (*Queries) UpdateCredential

func (q *Queries) UpdateCredential(ctx context.Context, arg UpdateCredentialParams) (Credential, error)

func (*Queries) UpdateCustomEntity

func (q *Queries) UpdateCustomEntity(ctx context.Context, arg UpdateCustomEntityParams) (CustomEntity, error)

func (*Queries) UpdateDevice

func (q *Queries) UpdateDevice(ctx context.Context, arg UpdateDeviceParams) (Device, error)

func (*Queries) UpdateDeviceClass

func (q *Queries) UpdateDeviceClass(ctx context.Context, arg UpdateDeviceClassParams) (DeviceClass, error)

func (*Queries) UpdateDeviceCredential

func (q *Queries) UpdateDeviceCredential(ctx context.Context, arg UpdateDeviceCredentialParams) (DeviceCredential, error)

func (*Queries) UpdateDeviceDomain

func (q *Queries) UpdateDeviceDomain(ctx context.Context, arg UpdateDeviceDomainParams) (DeviceDomain, error)

func (*Queries) UpdateDeviceExtension

func (q *Queries) UpdateDeviceExtension(ctx context.Context, arg UpdateDeviceExtensionParams) (DeviceExtension, error)

func (*Queries) UpdateDeviceLicense

func (q *Queries) UpdateDeviceLicense(ctx context.Context, arg UpdateDeviceLicenseParams) (DeviceLicense, error)

func (*Queries) UpdateDeviceState

func (q *Queries) UpdateDeviceState(ctx context.Context, arg UpdateDeviceStateParams) (DeviceState, error)

func (*Queries) UpdateDeviceType

func (q *Queries) UpdateDeviceType(ctx context.Context, arg UpdateDeviceTypeParams) (DeviceType, error)

func (*Queries) UpdateEntity

func (q *Queries) UpdateEntity(ctx context.Context, arg UpdateEntityParams) (Entity, error)

func (*Queries) UpdateEntityPhyIndex

func (q *Queries) UpdateEntityPhyIndex(ctx context.Context, arg UpdateEntityPhyIndexParams) (EntityPhyIndex, error)

func (*Queries) UpdateIntBwStat

func (q *Queries) UpdateIntBwStat(ctx context.Context, arg UpdateIntBwStatParams) (IntBwStat, error)

func (*Queries) UpdateInterface

func (q *Queries) UpdateInterface(ctx context.Context, arg UpdateInterfaceParams) (Interface, error)

func (*Queries) UpdateInterfaceRelation

func (q *Queries) UpdateInterfaceRelation(ctx context.Context, arg UpdateInterfaceRelationParams) (InterfaceRelation, error)

func (*Queries) UpdateIpInterface

func (q *Queries) UpdateIpInterface(ctx context.Context, arg UpdateIpInterfaceParams) (IpInterface, error)

func (*Queries) UpdateOspfNbr

func (q *Queries) UpdateOspfNbr(ctx context.Context, arg UpdateOspfNbrParams) (OspfNbr, error)

func (*Queries) UpdateRlNbr

func (q *Queries) UpdateRlNbr(ctx context.Context, arg UpdateRlNbrParams) (RlNbr, error)

func (*Queries) UpdateSite

func (q *Queries) UpdateSite(ctx context.Context, arg UpdateSiteParams) (Site, error)

func (*Queries) UpdateSnmpCredential

func (q *Queries) UpdateSnmpCredential(ctx context.Context, arg UpdateSnmpCredentialParams) (SnmpCredential, error)

func (*Queries) UpdateSubinterface

func (q *Queries) UpdateSubinterface(ctx context.Context, arg UpdateSubinterfaceParams) (Subinterface, error)

func (*Queries) UpdateUser

func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)

func (*Queries) UpdateUserAuthz

func (q *Queries) UpdateUserAuthz(ctx context.Context, arg UpdateUserAuthzParams) (UserAuthz, error)

func (*Queries) UpdateUserGraph

func (q *Queries) UpdateUserGraph(ctx context.Context, arg UpdateUserGraphParams) (UserGraph, error)

func (*Queries) UpdateVar

func (q *Queries) UpdateVar(ctx context.Context, arg UpdateVarParams) (Var, error)

func (*Queries) UpdateVlan

func (q *Queries) UpdateVlan(ctx context.Context, arg UpdateVlanParams) (Vlan, error)

func (*Queries) UpdateXconnect

func (q *Queries) UpdateXconnect(ctx context.Context, arg UpdateXconnectParams) (Xconnect, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type RlNbr

type RlNbr struct {
	NbrID      int64     `json:"nbr_id"`
	DevID      int64     `json:"dev_id"`
	NbrEntID   *int64    `json:"nbr_ent_id"`
	NbrSysname string    `json:"nbr_sysname"`
	UpdatedOn  time.Time `json:"updated_on"`
	CreatedOn  time.Time `json:"created_on"`
}

type Site

type Site struct {
	SiteID    int64     `json:"site_id"`
	CountryID int64     `json:"country_id"`
	Uident    *string   `json:"uident"`
	Descr     string    `json:"descr"`
	Latitude  *float32  `json:"latitude"`
	Longitude *float32  `json:"longitude"`
	Area      *string   `json:"area"`
	Addr      *string   `json:"addr"`
	Notes     *string   `json:"notes"`
	ExtID     *int64    `json:"ext_id"`
	ExtName   *string   `json:"ext_name"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type SnmpAuthProto

type SnmpAuthProto string
const (
	SnmpAuthProtoNoAuth SnmpAuthProto = "NoAuth"
	SnmpAuthProtoMD5    SnmpAuthProto = "MD5"
	SnmpAuthProtoSHA    SnmpAuthProto = "SHA"
)

func AllSnmpAuthProtoValues

func AllSnmpAuthProtoValues() []SnmpAuthProto

func (*SnmpAuthProto) Scan

func (e *SnmpAuthProto) Scan(src interface{}) error

type SnmpCredential

type SnmpCredential struct {
	SnmpCredID int64  `json:"snmp_cred_id"`
	Label      string `json:"label"`
	Variant    int32  `json:"variant"`
	// Community or SecName
	AuthName  string            `json:"auth_name"`
	AuthProto NullSnmpAuthProto `json:"auth_proto"`
	AuthPass  *string           `json:"auth_pass"`
	SecLevel  NullSnmpSecLevel  `json:"sec_level"`
	PrivProto NullSnmpPrivProto `json:"priv_proto"`
	PrivPass  *string           `json:"priv_pass"`
	UpdatedOn time.Time         `json:"updated_on"`
	CreatedOn time.Time         `json:"created_on"`
}

type SnmpPrivProto

type SnmpPrivProto string
const (
	SnmpPrivProtoNoPriv  SnmpPrivProto = "NoPriv"
	SnmpPrivProtoDES     SnmpPrivProto = "DES"
	SnmpPrivProtoAES     SnmpPrivProto = "AES"
	SnmpPrivProtoAES192  SnmpPrivProto = "AES192"
	SnmpPrivProtoAES192C SnmpPrivProto = "AES192C"
	SnmpPrivProtoAES256  SnmpPrivProto = "AES256"
	SnmpPrivProtoAES256C SnmpPrivProto = "AES256C"
)

func AllSnmpPrivProtoValues

func AllSnmpPrivProtoValues() []SnmpPrivProto

func (*SnmpPrivProto) Scan

func (e *SnmpPrivProto) Scan(src interface{}) error

type SnmpSecLevel

type SnmpSecLevel string
const (
	SnmpSecLevelNoAuthNoPriv SnmpSecLevel = "noAuthNoPriv"
	SnmpSecLevelAuthNoPriv   SnmpSecLevel = "authNoPriv"
	SnmpSecLevelAuthPriv     SnmpSecLevel = "authPriv"
)

func AllSnmpSecLevelValues

func AllSnmpSecLevelValues() []SnmpSecLevel

func (*SnmpSecLevel) Scan

func (e *SnmpSecLevel) Scan(src interface{}) error

type Subinterface

type Subinterface struct {
	SifID     int64          `json:"sif_id"`
	IfID      *int64         `json:"if_id"`
	Ifindex   *int64         `json:"ifindex"`
	Descr     string         `json:"descr"`
	Alias     *string        `json:"alias"`
	Oper      *int16         `json:"oper"`
	Adm       *int16         `json:"adm"`
	Speed     *int64         `json:"speed"`
	TypeEnum  *string        `json:"type_enum"`
	Mac       pgtype.Macaddr `json:"mac"`
	Notes     *string        `json:"notes"`
	UpdatedOn time.Time      `json:"updated_on"`
	CreatedOn time.Time      `json:"created_on"`
}

type UpdateArchivedInterfaceParams

type UpdateArchivedInterfaceParams struct {
	IfaID              int64          `json:"ifa_id"`
	Ifindex            *int64         `json:"ifindex"`
	OtnIfID            *int64         `json:"otn_if_id"`
	CiscoOptPowerIndex *string        `json:"cisco_opt_power_index"`
	Hostname           string         `json:"hostname"`
	HostIp4            pgtype.Inet    `json:"host_ip4"`
	HostIp6            pgtype.Inet    `json:"host_ip6"`
	Manufacturer       string         `json:"manufacturer"`
	Model              string         `json:"model"`
	Descr              string         `json:"descr"`
	Alias              *string        `json:"alias"`
	TypeEnum           *int16         `json:"type_enum"`
	Mac                pgtype.Macaddr `json:"mac"`
}

type UpdateArchivedSubinterfaceParams

type UpdateArchivedSubinterfaceParams struct {
	SifaID      int64          `json:"sifa_id"`
	Ifindex     *int64         `json:"ifindex"`
	Descr       string         `json:"descr"`
	ParentDescr *string        `json:"parent_descr"`
	Alias       *string        `json:"alias"`
	Type        *string        `json:"type"`
	Mac         pgtype.Macaddr `json:"mac"`
	Hostname    string         `json:"hostname"`
	HostIp4     pgtype.Inet    `json:"host_ip4"`
	HostIp6     pgtype.Inet    `json:"host_ip6"`
	Notes       *string        `json:"notes"`
}

type UpdateConCapacityParams

type UpdateConCapacityParams struct {
	ConCapID int64   `json:"con_cap_id"`
	Descr    string  `json:"descr"`
	Notes    *string `json:"notes"`
}

type UpdateConClassParams

type UpdateConClassParams struct {
	ConClassID int64   `json:"con_class_id"`
	Descr      string  `json:"descr"`
	Notes      *string `json:"notes"`
}

type UpdateConProviderParams

type UpdateConProviderParams struct {
	ConProvID int64   `json:"con_prov_id"`
	Descr     string  `json:"descr"`
	Notes     *string `json:"notes"`
}

type UpdateConTypeParams

type UpdateConTypeParams struct {
	ConTypeID int64   `json:"con_type_id"`
	Descr     string  `json:"descr"`
	Notes     *string `json:"notes"`
}

type UpdateConnectionParams

type UpdateConnectionParams struct {
	ConID      int64   `json:"con_id"`
	SiteID     int64   `json:"site_id"`
	ConProvID  int64   `json:"con_prov_id"`
	ConTypeID  int64   `json:"con_type_id"`
	ConCapID   int64   `json:"con_cap_id"`
	ConClassID int64   `json:"con_class_id"`
	Hint       *string `json:"hint"`
	Notes      *string `json:"notes"`
	InUse      bool    `json:"in_use"`
}

type UpdateCountryParams

type UpdateCountryParams struct {
	CountryID int64  `json:"country_id"`
	Code      string `json:"code"`
	Descr     string `json:"descr"`
}

type UpdateCredentialParams

type UpdateCredentialParams struct {
	CredID    int64   `json:"cred_id"`
	Label     string  `json:"label"`
	Username  *string `json:"username"`
	EncSecret string  `json:"enc_secret"`
}

type UpdateCustomEntityParams

type UpdateCustomEntityParams struct {
	CentID       int64   `json:"cent_id"`
	Manufacturer string  `json:"manufacturer"`
	SerialNr     string  `json:"serial_nr"`
	Part         *string `json:"part"`
	Descr        *string `json:"descr"`
}

type UpdateDeviceClassParams

type UpdateDeviceClassParams struct {
	ClassID int64  `json:"class_id"`
	Descr   string `json:"descr"`
}

type UpdateDeviceCredentialParams

type UpdateDeviceCredentialParams struct {
	CredID    int64  `json:"cred_id"`
	DevID     int64  `json:"dev_id"`
	Username  string `json:"username"`
	EncSecret string `json:"enc_secret"`
}

type UpdateDeviceDomainParams

type UpdateDeviceDomainParams struct {
	DomID int64  `json:"dom_id"`
	Descr string `json:"descr"`
}

type UpdateDeviceExtensionParams

type UpdateDeviceExtensionParams struct {
	ExtID   int64   `json:"ext_id"`
	DevID   int64   `json:"dev_id"`
	Field   string  `json:"field"`
	Content *string `json:"content"`
}

type UpdateDeviceLicenseParams

type UpdateDeviceLicenseParams struct {
	LicID     int64   `json:"lic_id"`
	DevID     int64   `json:"dev_id"`
	Product   *string `json:"product"`
	Descr     *string `json:"descr"`
	Installed *int32  `json:"installed"`
	Unlocked  *int32  `json:"unlocked"`
	TotInst   *int32  `json:"tot_inst"`
	Used      *int32  `json:"used"`
	Condition *string `json:"condition"`
}

type UpdateDeviceParams

type UpdateDeviceParams struct {
	DevID            int64       `json:"dev_id"`
	SiteID           *int64      `json:"site_id"`
	DomID            int64       `json:"dom_id"`
	SnmpMainID       *int64      `json:"snmp_main_id"`
	SnmpRoID         *int64      `json:"snmp_ro_id"`
	Parent           *int64      `json:"parent"`
	SysID            string      `json:"sys_id"`
	Ip4Addr          pgtype.Inet `json:"ip4_addr"`
	Ip6Addr          pgtype.Inet `json:"ip6_addr"`
	HostName         string      `json:"host_name"`
	SysName          *string     `json:"sys_name"`
	SysLocation      *string     `json:"sys_location"`
	SysContact       *string     `json:"sys_contact"`
	SwVersion        *string     `json:"sw_version"`
	ExtModel         *string     `json:"ext_model"`
	Installed        bool        `json:"installed"`
	Monitor          bool        `json:"monitor"`
	Graph            bool        `json:"graph"`
	Backup           bool        `json:"backup"`
	Source           string      `json:"source"`
	TypeChanged      bool        `json:"type_changed"`
	BackupFailed     bool        `json:"backup_failed"`
	ValidationFailed bool        `json:"validation_failed"`
	Unresponsive     bool        `json:"unresponsive"`
	Notes            *string     `json:"notes"`
}

type UpdateDeviceStateParams

type UpdateDeviceStateParams struct {
	DevID    int64      `json:"dev_id"`
	UpTime   *time.Time `json:"up_time"`
	DownTime *time.Time `json:"down_time"`
	Method   string     `json:"method"`
}

type UpdateDeviceTypeParams

type UpdateDeviceTypeParams struct {
	SysID        string `json:"sys_id"`
	ClassID      int64  `json:"class_id"`
	Manufacturer string `json:"manufacturer"`
	Model        string `json:"model"`
	Hc           bool   `json:"hc"`
	SnmpVer      int16  `json:"snmp_ver"`
}

type UpdateEntityParams

type UpdateEntityParams struct {
	EntID        int64   `json:"ent_id"`
	ParentEntID  *int64  `json:"parent_ent_id"`
	SnmpEntID    *int64  `json:"snmp_ent_id"`
	DevID        int64   `json:"dev_id"`
	Slot         *string `json:"slot"`
	Descr        *string `json:"descr"`
	Model        *string `json:"model"`
	HwProduct    *string `json:"hw_product"`
	HwRevision   *string `json:"hw_revision"`
	SerialNr     *string `json:"serial_nr"`
	SwProduct    *string `json:"sw_product"`
	SwRevision   *string `json:"sw_revision"`
	Manufacturer *string `json:"manufacturer"`
	Physical     bool    `json:"physical"`
}

type UpdateEntityPhyIndexParams

type UpdateEntityPhyIndexParams struct {
	EiID     int64  `json:"ei_id"`
	EntID    int64  `json:"ent_id"`
	PhyIndex int64  `json:"phy_index"`
	Descr    string `json:"descr"`
}

type UpdateIntBwStatParams

type UpdateIntBwStatParams struct {
	BwID     int64  `json:"bw_id"`
	IfID     int64  `json:"if_id"`
	To50in   *int16 `json:"to50in"`
	To75in   *int16 `json:"to75in"`
	To90in   *int16 `json:"to90in"`
	To100in  *int16 `json:"to100in"`
	To50out  *int16 `json:"to50out"`
	To75out  *int16 `json:"to75out"`
	To90out  *int16 `json:"to90out"`
	To100out *int16 `json:"to100out"`
	IfGroup  string `json:"if_group"`
}

type UpdateInterfaceParams

type UpdateInterfaceParams struct {
	IfID       int64          `json:"if_id"`
	ConID      *int64         `json:"con_id"`
	Parent     *int64         `json:"parent"`
	OtnIfID    *int64         `json:"otn_if_id"`
	DevID      int64          `json:"dev_id"`
	EntID      *int64         `json:"ent_id"`
	Ifindex    *int64         `json:"ifindex"`
	Descr      string         `json:"descr"`
	Alias      *string        `json:"alias"`
	Oper       *int16         `json:"oper"`
	Adm        *int16         `json:"adm"`
	Speed      *int64         `json:"speed"`
	Minspeed   *int64         `json:"minspeed"`
	TypeEnum   *int16         `json:"type_enum"`
	Mac        pgtype.Macaddr `json:"mac"`
	Monstatus  int16          `json:"monstatus"`
	Monerrors  int16          `json:"monerrors"`
	Monload    int16          `json:"monload"`
	Montraffic int16          `json:"montraffic"`
}

type UpdateInterfaceRelationParams

type UpdateInterfaceRelationParams struct {
	IrID     int64  `json:"ir_id"`
	IfID     int64  `json:"if_id"`
	IfIDUp   *int64 `json:"if_id_up"`
	IfIDDown *int64 `json:"if_id_down"`
}

type UpdateIpInterfaceParams

type UpdateIpInterfaceParams struct {
	IpID    int64       `json:"ip_id"`
	DevID   int64       `json:"dev_id"`
	Ifindex *int64      `json:"ifindex"`
	IpAddr  pgtype.Inet `json:"ip_addr"`
	Descr   *string     `json:"descr"`
	Alias   *string     `json:"alias"`
}

type UpdateOspfNbrParams

type UpdateOspfNbrParams struct {
	NbrID     int64       `json:"nbr_id"`
	DevID     int64       `json:"dev_id"`
	NbrIp     pgtype.Inet `json:"nbr_ip"`
	Condition *string     `json:"condition"`
}

type UpdateRlNbrParams

type UpdateRlNbrParams struct {
	NbrID      int64  `json:"nbr_id"`
	DevID      int64  `json:"dev_id"`
	NbrEntID   *int64 `json:"nbr_ent_id"`
	NbrSysname string `json:"nbr_sysname"`
}

type UpdateSiteParams

type UpdateSiteParams struct {
	SiteID    int64    `json:"site_id"`
	CountryID int64    `json:"country_id"`
	Uident    *string  `json:"uident"`
	Descr     string   `json:"descr"`
	Latitude  *float32 `json:"latitude"`
	Longitude *float32 `json:"longitude"`
	Area      *string  `json:"area"`
	Addr      *string  `json:"addr"`
	Notes     *string  `json:"notes"`
	ExtID     *int64   `json:"ext_id"`
	ExtName   *string  `json:"ext_name"`
}

type UpdateSnmpCredentialParams

type UpdateSnmpCredentialParams struct {
	SnmpCredID int64             `json:"snmp_cred_id"`
	Label      string            `json:"label"`
	Variant    int32             `json:"variant"`
	AuthName   string            `json:"auth_name"`
	AuthProto  NullSnmpAuthProto `json:"auth_proto"`
	AuthPass   *string           `json:"auth_pass"`
	SecLevel   NullSnmpSecLevel  `json:"sec_level"`
	PrivProto  NullSnmpPrivProto `json:"priv_proto"`
	PrivPass   *string           `json:"priv_pass"`
}

type UpdateSubinterfaceParams

type UpdateSubinterfaceParams struct {
	SifID    int64          `json:"sif_id"`
	IfID     *int64         `json:"if_id"`
	Ifindex  *int64         `json:"ifindex"`
	Descr    string         `json:"descr"`
	Alias    *string        `json:"alias"`
	Oper     *int16         `json:"oper"`
	Adm      *int16         `json:"adm"`
	Speed    *int64         `json:"speed"`
	TypeEnum *string        `json:"type_enum"`
	Mac      pgtype.Macaddr `json:"mac"`
	Notes    *string        `json:"notes"`
}

type UpdateUserAuthzParams

type UpdateUserAuthzParams struct {
	Username  string `json:"username"`
	DomID     int64  `json:"dom_id"`
	Userlevel int16  `json:"userlevel"`
}

type UpdateUserGraphParams

type UpdateUserGraphParams struct {
	GraphID  int64  `json:"graph_id"`
	Username string `json:"username"`
	Uri      string `json:"uri"`
	Descr    string `json:"descr"`
	Shared   bool   `json:"shared"`
}

type UpdateUserParams

type UpdateUserParams struct {
	Username  string  `json:"username"`
	Userlevel int16   `json:"userlevel"`
	Notes     *string `json:"notes"`
}

type UpdateVarParams

type UpdateVarParams struct {
	Descr   string  `json:"descr"`
	Content *string `json:"content"`
	Notes   *string `json:"notes"`
}

type UpdateVlanParams

type UpdateVlanParams struct {
	VID   int64   `json:"v_id"`
	DevID int64   `json:"dev_id"`
	Vlan  int64   `json:"vlan"`
	Descr *string `json:"descr"`
}

type UpdateXconnectParams

type UpdateXconnectParams struct {
	XcID        int64       `json:"xc_id"`
	DevID       int64       `json:"dev_id"`
	PeerDevID   *int64      `json:"peer_dev_id"`
	IfID        *int64      `json:"if_id"`
	VcIdx       int64       `json:"vc_idx"`
	VcID        int64       `json:"vc_id"`
	PeerIp      pgtype.Inet `json:"peer_ip"`
	PeerIfalias *string     `json:"peer_ifalias"`
	Xname       *string     `json:"xname"`
	Descr       *string     `json:"descr"`
	OpStat      *string     `json:"op_stat"`
	OpStatIn    *string     `json:"op_stat_in"`
	OpStatOut   *string     `json:"op_stat_out"`
}

type User

type User struct {
	Username string `json:"username"`
	// Global level for user
	Userlevel int16     `json:"userlevel"`
	Notes     *string   `json:"notes"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type UserAuthz

type UserAuthz struct {
	Username string `json:"username"`
	DomID    int64  `json:"dom_id"`
	// Domain level for user
	Userlevel int16     `json:"userlevel"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type UserGraph

type UserGraph struct {
	GraphID   int64     `json:"graph_id"`
	Username  string    `json:"username"`
	Uri       string    `json:"uri"`
	Descr     string    `json:"descr"`
	Shared    bool      `json:"shared"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type Var

type Var struct {
	Descr     string    `json:"descr"`
	Content   *string   `json:"content"`
	Notes     *string   `json:"notes"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type Vlan

type Vlan struct {
	VID       int64     `json:"v_id"`
	DevID     int64     `json:"dev_id"`
	Vlan      int64     `json:"vlan"`
	Descr     *string   `json:"descr"`
	UpdatedOn time.Time `json:"updated_on"`
	CreatedOn time.Time `json:"created_on"`
}

type Xconnect

type Xconnect struct {
	XcID        int64       `json:"xc_id"`
	DevID       int64       `json:"dev_id"`
	PeerDevID   *int64      `json:"peer_dev_id"`
	IfID        *int64      `json:"if_id"`
	VcIdx       int64       `json:"vc_idx"`
	VcID        int64       `json:"vc_id"`
	PeerIp      pgtype.Inet `json:"peer_ip"`
	PeerIfalias *string     `json:"peer_ifalias"`
	Xname       *string     `json:"xname"`
	Descr       *string     `json:"descr"`
	OpStat      *string     `json:"op_stat"`
	OpStatIn    *string     `json:"op_stat_in"`
	OpStatOut   *string     `json:"op_stat_out"`
	UpdatedOn   time.Time   `json:"updated_on"`
	CreatedOn   time.Time   `json:"created_on"`
}

Jump to

Keyboard shortcuts

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