Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.PortChannelInterface) predicate.PortChannelInterface
- func HasHaveVlans() predicate.PortChannelInterface
- func HasHaveVlansWith(preds ...predicate.Vlan) predicate.PortChannelInterface
- func HasInterfaces() predicate.PortChannelInterface
- func HasInterfacesWith(preds ...predicate.NetInterface) predicate.PortChannelInterface
- func HasMode() predicate.PortChannelInterface
- func HasModeWith(preds ...predicate.NetInterfaceMode) predicate.PortChannelInterface
- func HasNativeOnVlan() predicate.PortChannelInterface
- func HasNativeOnVlanWith(preds ...predicate.Vlan) predicate.PortChannelInterface
- func HasOnDevice() predicate.PortChannelInterface
- func HasOnDeviceWith(preds ...predicate.Device) predicate.PortChannelInterface
- func HasOnIPAddress() predicate.PortChannelInterface
- func HasOnIPAddressWith(preds ...predicate.IPAddress) predicate.PortChannelInterface
- func HasOnLayer() predicate.PortChannelInterface
- func HasOnLayerWith(preds ...predicate.NetInterfaceLayer) predicate.PortChannelInterface
- func ID(id int) predicate.PortChannelInterface
- func IDEQ(id int) predicate.PortChannelInterface
- func IDGT(id int) predicate.PortChannelInterface
- func IDGTE(id int) predicate.PortChannelInterface
- func IDIn(ids ...int) predicate.PortChannelInterface
- func IDLT(id int) predicate.PortChannelInterface
- func IDLTE(id int) predicate.PortChannelInterface
- func IDNEQ(id int) predicate.PortChannelInterface
- func IDNotIn(ids ...int) predicate.PortChannelInterface
- func Not(p predicate.PortChannelInterface) predicate.PortChannelInterface
- func Or(predicates ...predicate.PortChannelInterface) predicate.PortChannelInterface
- func PoInterfaceID(v int) predicate.PortChannelInterface
- func PoInterfaceIDEQ(v int) predicate.PortChannelInterface
- func PoInterfaceIDGT(v int) predicate.PortChannelInterface
- func PoInterfaceIDGTE(v int) predicate.PortChannelInterface
- func PoInterfaceIDIn(vs ...int) predicate.PortChannelInterface
- func PoInterfaceIDLT(v int) predicate.PortChannelInterface
- func PoInterfaceIDLTE(v int) predicate.PortChannelInterface
- func PoInterfaceIDNEQ(v int) predicate.PortChannelInterface
- func PoInterfaceIDNotIn(vs ...int) predicate.PortChannelInterface
- func PoInterfaceShutdown(v bool) predicate.PortChannelInterface
- func PoInterfaceShutdownEQ(v bool) predicate.PortChannelInterface
- func PoInterfaceShutdownNEQ(v bool) predicate.PortChannelInterface
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the portchannelinterface type in the database. Label = "port_channel_interface" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPoInterfaceID holds the string denoting the po_interface_id field in the database. FieldPoInterfaceID = "po_interface_id" // FieldPoInterfaceShutdown holds the string denoting the po_interface_shutdown field in the database. FieldPoInterfaceShutdown = "po_interface_shutdown" // EdgeMode holds the string denoting the mode edge name in mutations. EdgeMode = "mode" // EdgeOnLayer holds the string denoting the on_layer edge name in mutations. EdgeOnLayer = "on_layer" // EdgeHaveVlans holds the string denoting the have_vlans edge name in mutations. EdgeHaveVlans = "have_vlans" // EdgeNativeOnVlan holds the string denoting the native_on_vlan edge name in mutations. EdgeNativeOnVlan = "native_on_vlan" // EdgeOnDevice holds the string denoting the on_device edge name in mutations. EdgeOnDevice = "on_device" // EdgeOnIPAddress holds the string denoting the on_ip_address edge name in mutations. EdgeOnIPAddress = "on_ip_address" // EdgeInterfaces holds the string denoting the interfaces edge name in mutations. EdgeInterfaces = "interfaces" // Table holds the table name of the portchannelinterface in the database. Table = "port_channel_interfaces" // ModeTable is the table the holds the mode relation/edge. ModeTable = "port_channel_interfaces" // ModeInverseTable is the table name for the NetInterfaceMode entity. // It exists in this package in order to avoid circular dependency with the "netinterfacemode" package. ModeInverseTable = "net_interface_modes" // ModeColumn is the table column denoting the mode relation/edge. ModeColumn = "net_interface_mode_po_modes" // OnLayerTable is the table the holds the on_layer relation/edge. OnLayerTable = "port_channel_interfaces" // OnLayerInverseTable is the table name for the NetInterfaceLayer entity. // It exists in this package in order to avoid circular dependency with the "netinterfacelayer" package. OnLayerInverseTable = "net_interface_layers" // OnLayerColumn is the table column denoting the on_layer relation/edge. OnLayerColumn = "net_interface_layer_po_layers" // HaveVlansTable is the table the holds the have_vlans relation/edge. The primary key declared below. HaveVlansTable = "vlan_po_vlans" // HaveVlansInverseTable is the table name for the Vlan entity. // It exists in this package in order to avoid circular dependency with the "vlan" package. HaveVlansInverseTable = "vlans" // NativeOnVlanTable is the table the holds the native_on_vlan relation/edge. NativeOnVlanTable = "port_channel_interfaces" // NativeOnVlanInverseTable is the table name for the Vlan entity. // It exists in this package in order to avoid circular dependency with the "vlan" package. NativeOnVlanInverseTable = "vlans" // NativeOnVlanColumn is the table column denoting the native_on_vlan relation/edge. NativeOnVlanColumn = "vlan_po_native_vlan" // OnDeviceTable is the table the holds the on_device relation/edge. OnDeviceTable = "port_channel_interfaces" // 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" // OnDeviceColumn is the table column denoting the on_device relation/edge. OnDeviceColumn = "device_po_interfaces" // OnIPAddressTable is the table the holds the on_ip_address relation/edge. OnIPAddressTable = "port_channel_interfaces" // OnIPAddressInverseTable is the table name for the IPAddress entity. // It exists in this package in order to avoid circular dependency with the "ipaddress" package. OnIPAddressInverseTable = "ip_addresses" // OnIPAddressColumn is the table column denoting the on_ip_address relation/edge. OnIPAddressColumn = "ip_address_po_interfaces" // InterfacesTable is the table the holds the interfaces relation/edge. InterfacesTable = "net_interfaces" // InterfacesInverseTable is the table name for the NetInterface entity. // It exists in this package in order to avoid circular dependency with the "netinterface" package. InterfacesInverseTable = "net_interfaces" // InterfacesColumn is the table column denoting the interfaces relation/edge. InterfacesColumn = "port_channel_interface_interfaces" )
Variables ¶
var ( // PoInterfaceIDValidator is a validator for the "po_interface_id" field. It is called by the builders before save. PoInterfaceIDValidator func(int) error // DefaultPoInterfaceShutdown holds the default value on creation for the "po_interface_shutdown" field. DefaultPoInterfaceShutdown bool )
var Columns = []string{ FieldID, FieldPoInterfaceID, FieldPoInterfaceShutdown, }
Columns holds all SQL columns for portchannelinterface fields.
var ForeignKeys = []string{
"device_po_interfaces",
"ip_address_po_interfaces",
"net_interface_layer_po_layers",
"net_interface_mode_po_modes",
"vlan_po_native_vlan",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "port_channel_interfaces" table and are not defined as standalone fields in the schema.
var ( // HaveVlansPrimaryKey and HaveVlansColumn2 are the table columns denoting the // primary key for the have_vlans relation (M2M). HaveVlansPrimaryKey = []string{"vlan_id", "port_channel_interface_id"} )
Functions ¶
func And ¶
func And(predicates ...predicate.PortChannelInterface) predicate.PortChannelInterface
And groups predicates with the AND operator between them.
func HasHaveVlans ¶
func HasHaveVlans() predicate.PortChannelInterface
HasHaveVlans applies the HasEdge predicate on the "have_vlans" edge.
func HasHaveVlansWith ¶
func HasHaveVlansWith(preds ...predicate.Vlan) predicate.PortChannelInterface
HasHaveVlansWith applies the HasEdge predicate on the "have_vlans" edge with a given conditions (other predicates).
func HasInterfaces ¶
func HasInterfaces() predicate.PortChannelInterface
HasInterfaces applies the HasEdge predicate on the "interfaces" edge.
func HasInterfacesWith ¶
func HasInterfacesWith(preds ...predicate.NetInterface) predicate.PortChannelInterface
HasInterfacesWith applies the HasEdge predicate on the "interfaces" edge with a given conditions (other predicates).
func HasMode ¶
func HasMode() predicate.PortChannelInterface
HasMode applies the HasEdge predicate on the "mode" edge.
func HasModeWith ¶
func HasModeWith(preds ...predicate.NetInterfaceMode) predicate.PortChannelInterface
HasModeWith applies the HasEdge predicate on the "mode" edge with a given conditions (other predicates).
func HasNativeOnVlan ¶
func HasNativeOnVlan() predicate.PortChannelInterface
HasNativeOnVlan applies the HasEdge predicate on the "native_on_vlan" edge.
func HasNativeOnVlanWith ¶
func HasNativeOnVlanWith(preds ...predicate.Vlan) predicate.PortChannelInterface
HasNativeOnVlanWith applies the HasEdge predicate on the "native_on_vlan" edge with a given conditions (other predicates).
func HasOnDevice ¶
func HasOnDevice() predicate.PortChannelInterface
HasOnDevice applies the HasEdge predicate on the "on_device" edge.
func HasOnDeviceWith ¶
func HasOnDeviceWith(preds ...predicate.Device) predicate.PortChannelInterface
HasOnDeviceWith applies the HasEdge predicate on the "on_device" edge with a given conditions (other predicates).
func HasOnIPAddress ¶
func HasOnIPAddress() predicate.PortChannelInterface
HasOnIPAddress applies the HasEdge predicate on the "on_ip_address" edge.
func HasOnIPAddressWith ¶
func HasOnIPAddressWith(preds ...predicate.IPAddress) predicate.PortChannelInterface
HasOnIPAddressWith applies the HasEdge predicate on the "on_ip_address" edge with a given conditions (other predicates).
func HasOnLayer ¶
func HasOnLayer() predicate.PortChannelInterface
HasOnLayer applies the HasEdge predicate on the "on_layer" edge.
func HasOnLayerWith ¶
func HasOnLayerWith(preds ...predicate.NetInterfaceLayer) predicate.PortChannelInterface
HasOnLayerWith applies the HasEdge predicate on the "on_layer" edge with a given conditions (other predicates).
func ID ¶
func ID(id int) predicate.PortChannelInterface
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int) predicate.PortChannelInterface
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.PortChannelInterface
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.PortChannelInterface
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.PortChannelInterface
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.PortChannelInterface
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.PortChannelInterface
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.PortChannelInterface
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.PortChannelInterface
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.PortChannelInterface) predicate.PortChannelInterface
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.PortChannelInterface) predicate.PortChannelInterface
Or groups predicates with the OR operator between them.
func PoInterfaceID ¶
func PoInterfaceID(v int) predicate.PortChannelInterface
PoInterfaceID applies equality check predicate on the "po_interface_id" field. It's identical to PoInterfaceIDEQ.
func PoInterfaceIDEQ ¶
func PoInterfaceIDEQ(v int) predicate.PortChannelInterface
PoInterfaceIDEQ applies the EQ predicate on the "po_interface_id" field.
func PoInterfaceIDGT ¶
func PoInterfaceIDGT(v int) predicate.PortChannelInterface
PoInterfaceIDGT applies the GT predicate on the "po_interface_id" field.
func PoInterfaceIDGTE ¶
func PoInterfaceIDGTE(v int) predicate.PortChannelInterface
PoInterfaceIDGTE applies the GTE predicate on the "po_interface_id" field.
func PoInterfaceIDIn ¶
func PoInterfaceIDIn(vs ...int) predicate.PortChannelInterface
PoInterfaceIDIn applies the In predicate on the "po_interface_id" field.
func PoInterfaceIDLT ¶
func PoInterfaceIDLT(v int) predicate.PortChannelInterface
PoInterfaceIDLT applies the LT predicate on the "po_interface_id" field.
func PoInterfaceIDLTE ¶
func PoInterfaceIDLTE(v int) predicate.PortChannelInterface
PoInterfaceIDLTE applies the LTE predicate on the "po_interface_id" field.
func PoInterfaceIDNEQ ¶
func PoInterfaceIDNEQ(v int) predicate.PortChannelInterface
PoInterfaceIDNEQ applies the NEQ predicate on the "po_interface_id" field.
func PoInterfaceIDNotIn ¶
func PoInterfaceIDNotIn(vs ...int) predicate.PortChannelInterface
PoInterfaceIDNotIn applies the NotIn predicate on the "po_interface_id" field.
func PoInterfaceShutdown ¶
func PoInterfaceShutdown(v bool) predicate.PortChannelInterface
PoInterfaceShutdown applies equality check predicate on the "po_interface_shutdown" field. It's identical to PoInterfaceShutdownEQ.
func PoInterfaceShutdownEQ ¶
func PoInterfaceShutdownEQ(v bool) predicate.PortChannelInterface
PoInterfaceShutdownEQ applies the EQ predicate on the "po_interface_shutdown" field.
func PoInterfaceShutdownNEQ ¶
func PoInterfaceShutdownNEQ(v bool) predicate.PortChannelInterface
PoInterfaceShutdownNEQ applies the NEQ predicate on the "po_interface_shutdown" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.