Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Vlan) predicate.Vlan
- func HasNativeVlan() predicate.Vlan
- func HasNativeVlanWith(preds ...predicate.NetInterface) predicate.Vlan
- func HasOnDevice() predicate.Vlan
- func HasOnDeviceWith(preds ...predicate.Device) predicate.Vlan
- func HasPoNativeVlan() predicate.Vlan
- func HasPoNativeVlanWith(preds ...predicate.PortChannelInterface) predicate.Vlan
- func HasPoVlans() predicate.Vlan
- func HasPoVlansWith(preds ...predicate.PortChannelInterface) predicate.Vlan
- func HasVlans() predicate.Vlan
- func HasVlansWith(preds ...predicate.NetInterface) predicate.Vlan
- func ID(id int) predicate.Vlan
- func IDEQ(id int) predicate.Vlan
- func IDGT(id int) predicate.Vlan
- func IDGTE(id int) predicate.Vlan
- func IDIn(ids ...int) predicate.Vlan
- func IDLT(id int) predicate.Vlan
- func IDLTE(id int) predicate.Vlan
- func IDNEQ(id int) predicate.Vlan
- func IDNotIn(ids ...int) predicate.Vlan
- func Not(p predicate.Vlan) predicate.Vlan
- func Or(predicates ...predicate.Vlan) predicate.Vlan
- func ValidColumn(column string) bool
- func VlanID(v int) predicate.Vlan
- func VlanIDEQ(v int) predicate.Vlan
- func VlanIDGT(v int) predicate.Vlan
- func VlanIDGTE(v int) predicate.Vlan
- func VlanIDIn(vs ...int) predicate.Vlan
- func VlanIDLT(v int) predicate.Vlan
- func VlanIDLTE(v int) predicate.Vlan
- func VlanIDNEQ(v int) predicate.Vlan
- func VlanIDNotIn(vs ...int) predicate.Vlan
Constants ¶
const ( // Label holds the string label denoting the vlan type in the database. Label = "vlan" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVlanID holds the string denoting the vlan_id field in the database. FieldVlanID = "vlan_id" // EdgeVlans holds the string denoting the vlans edge name in mutations. EdgeVlans = "vlans" // EdgeNativeVlan holds the string denoting the native_vlan edge name in mutations. EdgeNativeVlan = "native_vlan" // EdgePoVlans holds the string denoting the po_vlans edge name in mutations. EdgePoVlans = "po_vlans" // EdgePoNativeVlan holds the string denoting the po_native_vlan edge name in mutations. EdgePoNativeVlan = "po_native_vlan" // EdgeOnDevice holds the string denoting the on_device edge name in mutations. EdgeOnDevice = "on_device" // Table holds the table name of the vlan in the database. Table = "vlans" // VlansTable is the table the holds the vlans relation/edge. The primary key declared below. VlansTable = "vlan_vlans" // VlansInverseTable is the table name for the NetInterface entity. // It exists in this package in order to avoid circular dependency with the "netinterface" package. VlansInverseTable = "net_interfaces" // NativeVlanTable is the table the holds the native_vlan relation/edge. NativeVlanTable = "net_interfaces" // NativeVlanInverseTable is the table name for the NetInterface entity. // It exists in this package in order to avoid circular dependency with the "netinterface" package. NativeVlanInverseTable = "net_interfaces" // NativeVlanColumn is the table column denoting the native_vlan relation/edge. NativeVlanColumn = "vlan_native_vlan" // PoVlansTable is the table the holds the po_vlans relation/edge. The primary key declared below. PoVlansTable = "vlan_po_vlans" // PoVlansInverseTable is the table name for the PortChannelInterface entity. // It exists in this package in order to avoid circular dependency with the "portchannelinterface" package. PoVlansInverseTable = "port_channel_interfaces" // PoNativeVlanTable is the table the holds the po_native_vlan relation/edge. PoNativeVlanTable = "port_channel_interfaces" // PoNativeVlanInverseTable is the table name for the PortChannelInterface entity. // It exists in this package in order to avoid circular dependency with the "portchannelinterface" package. PoNativeVlanInverseTable = "port_channel_interfaces" // PoNativeVlanColumn is the table column denoting the po_native_vlan relation/edge. PoNativeVlanColumn = "vlan_po_native_vlan" // OnDeviceTable is the table the holds the on_device relation/edge. The primary key declared below. OnDeviceTable = "device_store_vlans" // OnDeviceInverseTable is the table name for the Device entity. // It exists in this package in order to avoid circular dependency with the "device" package. OnDeviceInverseTable = "devices" )
Variables ¶
var ( // VlansPrimaryKey and VlansColumn2 are the table columns denoting the // primary key for the vlans relation (M2M). VlansPrimaryKey = []string{"vlan_id", "net_interface_id"} // PoVlansPrimaryKey and PoVlansColumn2 are the table columns denoting the // primary key for the po_vlans relation (M2M). PoVlansPrimaryKey = []string{"vlan_id", "port_channel_interface_id"} // OnDevicePrimaryKey and OnDeviceColumn2 are the table columns denoting the // primary key for the on_device relation (M2M). OnDevicePrimaryKey = []string{"device_id", "vlan_id"} )
var Columns = []string{ FieldID, FieldVlanID, }
Columns holds all SQL columns for vlan fields.
var ( // VlanIDValidator is a validator for the "vlan_id" field. It is called by the builders before save. VlanIDValidator func(int) error )
Functions ¶
func HasNativeVlan ¶
HasNativeVlan applies the HasEdge predicate on the "native_vlan" edge.
func HasNativeVlanWith ¶
func HasNativeVlanWith(preds ...predicate.NetInterface) predicate.Vlan
HasNativeVlanWith applies the HasEdge predicate on the "native_vlan" edge with a given conditions (other predicates).
func HasOnDevice ¶
HasOnDevice applies the HasEdge predicate on the "on_device" edge.
func HasOnDeviceWith ¶
HasOnDeviceWith applies the HasEdge predicate on the "on_device" edge with a given conditions (other predicates).
func HasPoNativeVlan ¶ added in v0.2.0
HasPoNativeVlan applies the HasEdge predicate on the "po_native_vlan" edge.
func HasPoNativeVlanWith ¶ added in v0.2.0
func HasPoNativeVlanWith(preds ...predicate.PortChannelInterface) predicate.Vlan
HasPoNativeVlanWith applies the HasEdge predicate on the "po_native_vlan" edge with a given conditions (other predicates).
func HasPoVlans ¶ added in v0.2.0
HasPoVlans applies the HasEdge predicate on the "po_vlans" edge.
func HasPoVlansWith ¶ added in v0.2.0
func HasPoVlansWith(preds ...predicate.PortChannelInterface) predicate.Vlan
HasPoVlansWith applies the HasEdge predicate on the "po_vlans" edge with a given conditions (other predicates).
func HasVlansWith ¶
func HasVlansWith(preds ...predicate.NetInterface) predicate.Vlan
HasVlansWith applies the HasEdge predicate on the "vlans" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VlanID ¶
VlanID applies equality check predicate on the "vlan_id" field. It's identical to VlanIDEQ.
func VlanIDNotIn ¶
VlanIDNotIn applies the NotIn predicate on the "vlan_id" field.
Types ¶
This section is empty.