model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const TableNameCircuitsCircuit = "circuits_circuit"
View Source
const TableNameCircuitsCircuittermination = "circuits_circuittermination"
View Source
const TableNameCircuitsCircuittype = "circuits_circuittype"
View Source
const TableNameCircuitsProvider = "circuits_provider"
View Source
const TableNameDcimCable = "dcim_cable"
View Source
const TableNameDcimCabletermination = "dcim_cabletermination"
View Source
const TableNameDcimDevice = "dcim_device"
View Source
const TableNameDcimDevicerole = "dcim_devicerole"
View Source
const TableNameDcimDevicetype = "dcim_devicetype"
View Source
const TableNameDcimFrontport = "dcim_frontport"
View Source
const TableNameDcimInterface = "dcim_interface"
View Source
const TableNameDcimManufacturer = "dcim_manufacturer"
View Source
const TableNameDcimPlatform = "dcim_platform"
View Source
const TableNameDcimRearport = "dcim_rearport"
View Source
const TableNameDcimSite = "dcim_site"
View Source
const TableNameDjangoContentType = "django_content_type"
View Source
const TableNameExtrasTag = "extras_tag"
View Source
const TableNameExtrasTaggeditem = "extras_taggeditem"
View Source
const TableNameIpamIpaddress = "ipam_ipaddress"
View Source
const TableNameIpamPrefix = "ipam_prefix"

Variables

This section is empty.

Functions

This section is empty.

Types

type CircuitsCircuit

type CircuitsCircuit struct {
	ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	// Created           time.Time `gorm:"column:created" json:"created"`
	// LastUpdated       time.Time `gorm:"column:last_updated" json:"last_updated"`
	Cid string `gorm:"column:cid;not null" json:"cid"`
	// InstallDate       time.Time `gorm:"column:install_date" json:"install_date"`
	// CommitRate        int32     `gorm:"column:commit_rate" json:"commit_rate"`
	// Comments          string    `gorm:"column:comments;not null" json:"comments"`
	ProviderID int64 `gorm:"column:provider_id;not null" json:"provider_id"`
	TypeID     int64 `gorm:"column:type_id;not null" json:"type_id"`
	TenantID   int64 `gorm:"column:tenant_id" json:"tenant_id"`
	// Description       string    `gorm:"column:description;not null" json:"description"`
	Status string `gorm:"column:status;not null" json:"status"`
	// CustomFieldData   string    `gorm:"column:custom_field_data;not null" json:"custom_field_data"`
	TerminationAID int64 `gorm:"column:termination_a_id" json:"termination_a_id" sql:"termination_a_id"`
	TerminationZID int64 `gorm:"column:termination_z_id" json:"termination_z_id" sql:"termination_z_id"`
	// TerminationDate   time.Time `gorm:"column:termination_date" json:"termination_date"`
	// ProviderAccountID int64     `gorm:"column:provider_account_id" json:"provider_account_id"`
	Tags     []string            `sql:"-"`
	Provider CircuitsProvider    `pg:"fk:provider_id"`
	Type     CircuitsCircuittype `pg:"fk:type_id"`
}

CircuitsCircuit mapped from table <circuits_circuit>

func (*CircuitsCircuit) TableName

func (*CircuitsCircuit) TableName() string

TableName CircuitsCircuit's table name

type CircuitsCircuittermination

type CircuitsCircuittermination struct {
	ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	// TermSide          string    `gorm:"column:term_side;not null" json:"term_side"`
	// PortSpeed         int32     `gorm:"column:port_speed" json:"port_speed"`
	// UpstreamSpeed     int32     `gorm:"column:upstream_speed" json:"upstream_speed"`
	// XconnectID        string    `gorm:"column:xconnect_id;not null" json:"xconnect_id"`
	// PpInfo            string    `gorm:"column:pp_info;not null" json:"pp_info"`
	CircuitID int64 `gorm:"column:circuit_id;not null" json:"circuit_id"`
}

CircuitsCircuittermination mapped from table <circuits_circuittermination>

func (*CircuitsCircuittermination) TableName

func (*CircuitsCircuittermination) TableName() string

TableName CircuitsCircuittermination's table name

type CircuitsCircuittype

type CircuitsCircuittype struct {
	ID   int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name string `gorm:"column:name;not null" json:"name"`
	Slug string `gorm:"column:slug;not null" json:"slug"`
}

CircuitsCircuittype mapped from table <circuits_circuittype>

func (*CircuitsCircuittype) TableName

func (*CircuitsCircuittype) TableName() string

TableName CircuitsCircuittype's table name

type CircuitsProvider

type CircuitsProvider struct {
	ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	// Created         time.Time `gorm:"column:created" json:"created"`
	// LastUpdated     time.Time `gorm:"column:last_updated" json:"last_updated"`
	Name string `gorm:"column:name;not null" json:"name"`
	Slug string `gorm:"column:slug;not null" json:"slug"`
}

CircuitsProvider mapped from table <circuits_provider>

func (*CircuitsProvider) TableName

func (*CircuitsProvider) TableName() string

TableName CircuitsProvider's table name

type DcimCable

type DcimCable struct {
	ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	// Created         time.Time `gorm:"column:created" json:"created"`
	// LastUpdated     time.Time `gorm:"column:last_updated" json:"last_updated"`
	Type   string `gorm:"column:type;not null" json:"type"`
	Status string `gorm:"column:status;not null" json:"status"`
	// Label           string    `gorm:"column:label;not null" json:"label"`
	// Color           string    `gorm:"column:color;not null" json:"color"`
	// Length          float64   `gorm:"column:length" json:"length"`
	// LengthUnit      string    `gorm:"column:length_unit;not null" json:"length_unit"`
	// AbsLength       float64   `gorm:"column:_abs_length" json:"_abs_length"`
	// CustomFieldData string    `gorm:"column:custom_field_data;not null" json:"custom_field_data"`
	TenantID int64 `gorm:"column:tenant_id" json:"tenant_id"`
	// Comments        string    `gorm:"column:comments;not null" json:"comments"`
	// Description     string    `gorm:"column:description;not null" json:"description"“
	Terminations []*DcimCabletermination `pg:"fk:cable_id"`
}

DcimCable mapped from table <dcim_cable>

func (*DcimCable) TableName

func (*DcimCable) TableName() string

TableName DcimCable's table name

type DcimCabletermination added in v0.2.0

type DcimCabletermination struct {
	ID                int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	CableEnd          string `gorm:"column:cable_end;not null" json:"cable_end"`
	TerminationID     int64  `gorm:"column:termination_id;not null" json:"termination_id"`
	CableID           int64  `gorm:"column:cable_id;not null" json:"cable_id"`
	TerminationTypeID int32  `gorm:"column:termination_type_id;not null" json:"termination_type_id"`
}

DcimCabletermination mapped from table <dcim_cabletermination>

func (*DcimCabletermination) TableName added in v0.2.0

func (*DcimCabletermination) TableName() string

TableName DcimCabletermination's table name

type DcimDevice

type DcimDevice struct {
	ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	// Created          time.Time `gorm:"column:created" json:"created"`
	// LastUpdated      time.Time `gorm:"column:last_updated" json:"last_updated"`
	Name     string  `gorm:"column:name" json:"name"`
	Serial   string  `gorm:"column:serial;not null" json:"serial"`
	Position float64 `gorm:"column:position" json:"position"`
	// Face             string  `gorm:"column:face;not null" json:"face"`
	Status       string `gorm:"column:status;not null" json:"status"`
	Comments     string `gorm:"column:comments;not null" json:"comments"`
	RoleID       int64  `gorm:"column:role_id;not null" json:"role_id"`
	DeviceTypeID int64  `gorm:"column:device_type_id;not null" json:"device_type_id"`
	PlatformID   int64  `gorm:"column:platform_id" json:"platform_id"`
	RackID       int64  `gorm:"column:rack_id" json:"rack_id"`
	PrimaryIp4ID int64  `gorm:"column:primary_ip4_id" json:"primary_ip4_id" sql:"primary_ip4_id"`
	PrimaryIp6ID int64  `gorm:"column:primary_ip6_id" json:"primary_ip6_id" sql:"primary_ip6_id"`
	TenantID     int64  `gorm:"column:tenant_id" json:"tenant_id"`
	AssetTag     string `gorm:"column:asset_tag" json:"asset_tag"`
	SiteID       int64  `gorm:"column:site_id;not null" json:"site_id"`
	// ClusterID    int64  `gorm:"column:cluster_id" json:"cluster_id"`
	// VirtualChassisID int64  `gorm:"column:virtual_chassis_id" json:"virtual_chassis_id"`
	// VcPosition       int16  `gorm:"column:vc_position" json:"vc_position"`
	// VcPriority       int16  `gorm:"column:vc_priority" json:"vc_priority"`
	// LocalContextData string `gorm:"column:local_context_data" json:"local_context_data"`
	// Name             string    `gorm:"column:_name" json:"_name"`
	//CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"`
	LocationID int64 `gorm:"column:location_id" json:"location_id"`
	// Airflow          string `gorm:"column:airflow;not null" json:"airflow"`
	// Description      string         `gorm:"column:description;not null" json:"description"`
	// ConfigTemplateID int64          `gorm:"column:config_template_id" json:"config_template_id"`
	DeviceRole DcimDevicerole `pg:"fk:role_id"`
	DeviceType DcimDevicetype `pg:"fk:device_type_id"`
	Site       DcimSite       `pg:"fk:site_id"`
	Tags       []string       `sql:"-"`
}

DcimDevice mapped from table <dcim_device>

func (*DcimDevice) TableName

func (*DcimDevice) TableName() string

TableName DcimDevice's table name

type DcimDevicerole

type DcimDevicerole struct {
	ID   int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name string `gorm:"column:name;not null" json:"name"`
	Slug string `gorm:"column:slug;not null" json:"slug"`
}

DcimDevicerole mapped from table <dcim_devicerole>

func (*DcimDevicerole) TableName

func (*DcimDevicerole) TableName() string

TableName DcimDevicerole's table name

type DcimDevicetype

type DcimDevicetype struct {
	ID    int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Model string `gorm:"column:model;not null" json:"model"`
	Slug  string `gorm:"column:slug;not null" json:"slug"`
	//	UHeight           float64   `gorm:"column:u_height;not null" json:"u_height"`
	//	IsFullDepth       bool      `gorm:"column:is_full_depth;not null" json:"is_full_depth"`
	ManufacturerID int64 `gorm:"column:manufacturer_id;not null" json:"manufacturer_id"`
}

DcimDevicetype mapped from table <dcim_devicetype>

func (*DcimDevicetype) TableName

func (*DcimDevicetype) TableName() string

TableName DcimDevicetype's table name

type DcimFrontport

type DcimFrontport struct {
	ID   int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name string `gorm:"column:name;not null" json:"name"`
	// Type             string    `gorm:"column:type;not null" json:"type"`
	RearPortPosition int16 `gorm:"column:rear_port_position;not null" json:"rear_port_position"`
	// Description      string    `gorm:"column:description;not null" json:"description"`
	DeviceID   int64 `gorm:"column:device_id;not null" json:"device_id"`
	RearPortID int64 `gorm:"column:rear_port_id;not null" json:"rear_port_id"`
}

DcimFrontport mapped from table <dcim_frontport>

func (*DcimFrontport) TableName

func (*DcimFrontport) TableName() string

TableName DcimFrontport's table name

type DcimInterface

type DcimInterface struct {
	ID       int64  `gorm:"column:id;not null" json:"id"`
	Name     string `gorm:"column:name;not null" json:"name"`
	Type     string `gorm:"column:type;not null" json:"type"`
	MgmtOnly bool   `gorm:"column:mgmt_only;not null" json:"mgmt_only"`
	// Description        string    `gorm:"column:description;not null" json:"description"`
	DeviceID   int64  `gorm:"column:device_id;not null" json:"device_id"`
	MacAddress string `gorm:"column:mac_address" json:"mac_address"`
	LagID      int64  `gorm:"column:lag_id" json:"lag_id"`
	// Enabled            bool      `gorm:"column:enabled;not null" json:"enabled"`
	// Mtu                int32     `gorm:"column:mtu" json:"mtu"`
	// Mode               string    `gorm:"column:mode;not null" json:"mode"`
	// UntaggedVlanID     int64     `gorm:"column:untagged_vlan_id" json:"untagged_vlan_id"`
	CableID int64 `gorm:"column:cable_id" json:"cable_id"`
	//Name               string    `gorm:"column:_name;not null" json:"_name"`
	// Label              string    `gorm:"column:label;not null" json:"label"`
	//PathID             int64     `gorm:"column:_path_id" json:"_path_id"`
	// Created            time.Time `gorm:"column:created" json:"created"`
	// CustomFieldData    string    `gorm:"column:custom_field_data;not null" json:"custom_field_data"`
	// LastUpdated        time.Time `gorm:"column:last_updated" json:"last_updated"`
	// MarkConnected      bool      `gorm:"column:mark_connected;not null" json:"mark_connected"`
	ParentID int64 `gorm:"column:parent_id" json:"parent_id"`
	// Wwn                string    `gorm:"column:wwn" json:"wwn"`
	// BridgeID           int64     `gorm:"column:bridge_id" json:"bridge_id"`
	// RfRole             string    `gorm:"column:rf_role;not null" json:"rf_role"`
	// RfChannel          string    `gorm:"column:rf_channel;not null" json:"rf_channel"`
	// RfChannelFrequency float64   `gorm:"column:rf_channel_frequency" json:"rf_channel_frequency"`
	// RfChannelWidth     float64   `gorm:"column:rf_channel_width" json:"rf_channel_width"`
	// TxPower            int16     `gorm:"column:tx_power" json:"tx_power"`
	// WirelessLinkID     int64     `gorm:"column:wireless_link_id" json:"wireless_link_id"`
	// ModuleID           int64     `gorm:"column:module_id" json:"module_id"`
	// VrfID              int64     `gorm:"column:vrf_id" json:"vrf_id"`
	// Duplex             string    `gorm:"column:duplex" json:"duplex"`
	Speed int32 `gorm:"column:speed" json:"speed"`
	// PoeMode            string    `gorm:"column:poe_mode;not null" json:"poe_mode"`
	// PoeType            string    `gorm:"column:poe_type;not null" json:"poe_type"`
	// CableEnd           string    `gorm:"column:cable_end;not null" json:"cable_end"`
	Parent *DcimInterface `pg:"fk:parent_id"`
	Device DcimDevice     `pg:"fk:device_id"`
	LAG    *DcimInterface `pg:"fk:lag_id"`
	Tags   []string       `sql:"-"`
}

DcimInterface mapped from table <dcim_interface>

func (*DcimInterface) TableName

func (*DcimInterface) TableName() string

TableName DcimInterface's table name

type DcimManufacturer

type DcimManufacturer struct {
	ID   int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name string `gorm:"column:name;not null" json:"name"`
	Slug string `gorm:"column:slug;not null" json:"slug"`
}

DcimManufacturer mapped from table <dcim_manufacturer>

func (*DcimManufacturer) TableName

func (*DcimManufacturer) TableName() string

TableName DcimManufacturer's table name

type DcimPlatform

type DcimPlatform struct {
	ID   int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name string `gorm:"column:name;not null" json:"name"`
	Slug string `gorm:"column:slug;not null" json:"slug"`
	// NapalmDriver     string    `gorm:"column:napalm_driver;not null" json:"napalm_driver"`
	ManufacturerID int64 `gorm:"column:manufacturer_id" json:"manufacturer_id"`
}

DcimPlatform mapped from table <dcim_platform>

func (*DcimPlatform) TableName

func (*DcimPlatform) TableName() string

TableName DcimPlatform's table name

type DcimRearport

type DcimRearport struct {
	ID        int64  `gorm:"column:id;not null" json:"id"`
	Name      string `gorm:"column:name;not null" json:"name"`
	Type      string `gorm:"column:type;not null" json:"type"`
	Positions int16  `gorm:"column:positions;not null" json:"positions"`
	// Description     string    `gorm:"column:description;not null" json:"description"`
	DeviceID int64 `gorm:"column:device_id;not null" json:"device_id"`
}

DcimRearport mapped from table <dcim_rearport>

func (*DcimRearport) TableName

func (*DcimRearport) TableName() string

TableName DcimRearport's table name

type DcimSite

type DcimSite struct {
	ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	// Created         time.Time `gorm:"column:created" json:"created"`
	// LastUpdated     time.Time `gorm:"column:last_updated" json:"last_updated"`
	Name string `gorm:"column:name;not null" json:"name"`
	Slug string `gorm:"column:slug;not null" json:"slug"`
	// Facility        string    `gorm:"column:facility;not null" json:"facility"`
	// PhysicalAddress string    `gorm:"column:physical_address;not null" json:"physical_address"`
	// ShippingAddress string    `gorm:"column:shipping_address;not null" json:"shipping_address"`
	// Comments        string    `gorm:"column:comments;not null" json:"comments"`
	// TenantID        int64     `gorm:"column:tenant_id" json:"tenant_id"`
	RegionID int64 `gorm:"column:region_id" json:"region_id"`
	// Description     string    `gorm:"column:description;not null" json:"description"`
	Status string `gorm:"column:status;not null" json:"status"`
	// TimeZone        string    `gorm:"column:time_zone;not null" json:"time_zone"`
	// Latitude        float64   `gorm:"column:latitude" json:"latitude"`
	// Longitude       float64   `gorm:"column:longitude" json:"longitude"`
	// Name            string    `gorm:"column:_name;not null" json:"_name"`
	CustomFieldData string `gorm:"column:custom_field_data;not null" json:"custom_field_data"`
	GroupID         int64  `gorm:"column:group_id" json:"group_id"`
}

DcimSite mapped from table <dcim_site>

func (*DcimSite) TableName

func (*DcimSite) TableName() string

TableName DcimSite's table name

type DjangoContentType

type DjangoContentType struct {
	ID       int32  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	AppLabel string `gorm:"column:app_label;not null" json:"app_label"`
	Model    string `gorm:"column:model;not null" json:"model"`
}

DjangoContentType mapped from table <django_content_type>

func (*DjangoContentType) TableName

func (*DjangoContentType) TableName() string

TableName DjangoContentType's table name

type ExtrasTag

type ExtrasTag struct {
	ID   int64  `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	Name string `gorm:"column:name;not null" json:"name"`
	Slug string `gorm:"column:slug;not null" json:"slug"`
}

ExtrasTag mapped from table <extras_tag>

func (*ExtrasTag) TableName

func (*ExtrasTag) TableName() string

TableName ExtrasTag's table name

type ExtrasTaggeditem

type ExtrasTaggeditem struct {
	ID            int64     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	ObjectID      int32     `gorm:"column:object_id;not null" json:"object_id"`
	ContentTypeID int32     `gorm:"column:content_type_id;not null" json:"content_type_id"`
	TagID         int64     `gorm:"column:tag_id;not null" json:"tag_id"`
	Tag           ExtrasTag `pg:"fk:tag_id"`
}

ExtrasTaggeditem mapped from table <extras_taggeditem>

func (*ExtrasTaggeditem) TableName

func (*ExtrasTaggeditem) TableName() string

TableName ExtrasTaggeditem's table name

type IpamIpaddress

type IpamIpaddress struct {
	ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	// Created              time.Time `gorm:"column:created" json:"created"`
	// LastUpdated          time.Time `gorm:"column:last_updated" json:"last_updated"`
	Address string `gorm:"column:address;not null" json:"address"`
	// Description          string    `gorm:"column:description;not null" json:"description"`
	AssignedObjectID int64 `gorm:"column:assigned_object_id" json:"assigned_object_id"`
	// NatInsideID          int64     `gorm:"column:nat_inside_id" json:"nat_inside_id"`
	// VrfID                int64     `gorm:"column:vrf_id" json:"vrf_id"`
	// TenantID             int64     `gorm:"column:tenant_id" json:"tenant_id"`
	// Status               string    `gorm:"column:status;not null" json:"status"`
	// Role                 string    `gorm:"column:role;not null" json:"role"`
	// DNSName              string    `gorm:"column:dns_name;not null" json:"dns_name"`
	AssignedObjectTypeID int32  `gorm:"column:assigned_object_type_id" json:"assigned_object_type_id"`
	CustomFieldData      string `gorm:"column:custom_field_data;not null" json:"custom_field_data"`
}

IpamIpaddress mapped from table <ipam_ipaddress>

func (*IpamIpaddress) TableName

func (*IpamIpaddress) TableName() string

TableName IpamIpaddress's table name

type IpamPrefix

type IpamPrefix struct {
	ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	// Created         time.Time `gorm:"column:created" json:"created"`
	// LastUpdated     time.Time `gorm:"column:last_updated" json:"last_updated"`
	Prefix string `gorm:"column:prefix;not null" json:"prefix"`
	// Status          string    `gorm:"column:status;not null" json:"status"`
	// Description     string    `gorm:"column:description;not null" json:"description"`
	// RoleID          int64     `gorm:"column:role_id" json:"role_id"`
	// SiteID          int64     `gorm:"column:site_id" json:"site_id"`
	// VlanID          int64     `gorm:"column:vlan_id" json:"vlan_id"`
	// VrfID           int64     `gorm:"column:vrf_id" json:"vrf_id"`
	// TenantID        int64     `gorm:"column:tenant_id" json:"tenant_id"`
	// IsPool          bool      `gorm:"column:is_pool;not null" json:"is_pool"`
	// CustomFieldData string    `gorm:"column:custom_field_data;not null" json:"custom_field_data"`
	// Children        int64     `gorm:"column:_children;not null" json:"_children"`
	// Depth           int16     `gorm:"column:_depth;not null" json:"_depth"`
	// MarkUtilized    bool      `gorm:"column:mark_utilized;not null" json:"mark_utilized"`
	// Comments        string    `gorm:"column:comments;not null" json:"comments"`
	Tags []string `sql:"-"`
}

IpamPrefix mapped from table <ipam_prefix>

func (*IpamPrefix) TableName

func (*IpamPrefix) TableName() string

TableName IpamPrefix's table name

Jump to

Keyboard shortcuts

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