Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.IPAddress) predicate.IPAddress
- func HasInterfaces() predicate.IPAddress
- func HasInterfacesWith(preds ...predicate.NetInterface) predicate.IPAddress
- func HasOnDevice() predicate.IPAddress
- func HasOnDeviceWith(preds ...predicate.Device) predicate.IPAddress
- func HasPoInterfaces() predicate.IPAddress
- func HasPoInterfacesWith(preds ...predicate.PortChannelInterface) predicate.IPAddress
- func ID(id int) predicate.IPAddress
- func IDEQ(id int) predicate.IPAddress
- func IDGT(id int) predicate.IPAddress
- func IDGTE(id int) predicate.IPAddress
- func IDIn(ids ...int) predicate.IPAddress
- func IDLT(id int) predicate.IPAddress
- func IDLTE(id int) predicate.IPAddress
- func IDNEQ(id int) predicate.IPAddress
- func IDNotIn(ids ...int) predicate.IPAddress
- func IPAddress(v string) predicate.IPAddress
- func IPAddressContains(v string) predicate.IPAddress
- func IPAddressContainsFold(v string) predicate.IPAddress
- func IPAddressEQ(v string) predicate.IPAddress
- func IPAddressEqualFold(v string) predicate.IPAddress
- func IPAddressGT(v string) predicate.IPAddress
- func IPAddressGTE(v string) predicate.IPAddress
- func IPAddressHasPrefix(v string) predicate.IPAddress
- func IPAddressHasSuffix(v string) predicate.IPAddress
- func IPAddressIn(vs ...string) predicate.IPAddress
- func IPAddressLT(v string) predicate.IPAddress
- func IPAddressLTE(v string) predicate.IPAddress
- func IPAddressNEQ(v string) predicate.IPAddress
- func IPAddressNotIn(vs ...string) predicate.IPAddress
- func Not(p predicate.IPAddress) predicate.IPAddress
- func Or(predicates ...predicate.IPAddress) predicate.IPAddress
- func SubnetMask(v string) predicate.IPAddress
- func SubnetMaskContains(v string) predicate.IPAddress
- func SubnetMaskContainsFold(v string) predicate.IPAddress
- func SubnetMaskEQ(v string) predicate.IPAddress
- func SubnetMaskEqualFold(v string) predicate.IPAddress
- func SubnetMaskGT(v string) predicate.IPAddress
- func SubnetMaskGTE(v string) predicate.IPAddress
- func SubnetMaskHasPrefix(v string) predicate.IPAddress
- func SubnetMaskHasSuffix(v string) predicate.IPAddress
- func SubnetMaskIn(vs ...string) predicate.IPAddress
- func SubnetMaskLT(v string) predicate.IPAddress
- func SubnetMaskLTE(v string) predicate.IPAddress
- func SubnetMaskNEQ(v string) predicate.IPAddress
- func SubnetMaskNotIn(vs ...string) predicate.IPAddress
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the ipaddress type in the database. Label = "ip_address" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIPAddress holds the string denoting the ip_address field in the database. FieldIPAddress = "ip_address" // FieldSubnetMask holds the string denoting the subnet_mask field in the database. FieldSubnetMask = "subnet_mask" // EdgeOnDevice holds the string denoting the on_device edge name in mutations. EdgeOnDevice = "on_device" // EdgeInterfaces holds the string denoting the interfaces edge name in mutations. EdgeInterfaces = "interfaces" // EdgePoInterfaces holds the string denoting the po_interfaces edge name in mutations. EdgePoInterfaces = "po_interfaces" // Table holds the table name of the ipaddress in the database. Table = "ip_addresses" // OnDeviceTable is the table the holds the on_device relation/edge. OnDeviceTable = "ip_addresses" // 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_have_ip_addresses" // 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 = "ip_address_interfaces" // PoInterfacesTable is the table the holds the po_interfaces relation/edge. PoInterfacesTable = "port_channel_interfaces" // PoInterfacesInverseTable is the table name for the PortChannelInterface entity. // It exists in this package in order to avoid circular dependency with the "portchannelinterface" package. PoInterfacesInverseTable = "port_channel_interfaces" // PoInterfacesColumn is the table column denoting the po_interfaces relation/edge. PoInterfacesColumn = "ip_address_po_interfaces" )
Variables ¶
var ( // IPAddressValidator is a validator for the "ip_address" field. It is called by the builders before save. IPAddressValidator func(string) error // SubnetMaskValidator is a validator for the "subnet_mask" field. It is called by the builders before save. SubnetMaskValidator func(string) error )
var Columns = []string{ FieldID, FieldIPAddress, FieldSubnetMask, }
Columns holds all SQL columns for ipaddress fields.
var ForeignKeys = []string{
"device_have_ip_addresses",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "ip_addresses" table and are not defined as standalone fields in the schema.
Functions ¶
func HasInterfaces ¶
HasInterfaces applies the HasEdge predicate on the "interfaces" edge.
func HasInterfacesWith ¶
func HasInterfacesWith(preds ...predicate.NetInterface) predicate.IPAddress
HasInterfacesWith applies the HasEdge predicate on the "interfaces" 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 HasPoInterfaces ¶
HasPoInterfaces applies the HasEdge predicate on the "po_interfaces" edge.
func HasPoInterfacesWith ¶
func HasPoInterfacesWith(preds ...predicate.PortChannelInterface) predicate.IPAddress
HasPoInterfacesWith applies the HasEdge predicate on the "po_interfaces" edge with a given conditions (other predicates).
func IPAddress ¶
IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.
func IPAddressContains ¶
IPAddressContains applies the Contains predicate on the "ip_address" field.
func IPAddressContainsFold ¶
IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.
func IPAddressEQ ¶
IPAddressEQ applies the EQ predicate on the "ip_address" field.
func IPAddressEqualFold ¶
IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.
func IPAddressGT ¶
IPAddressGT applies the GT predicate on the "ip_address" field.
func IPAddressGTE ¶
IPAddressGTE applies the GTE predicate on the "ip_address" field.
func IPAddressHasPrefix ¶
IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.
func IPAddressHasSuffix ¶
IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.
func IPAddressIn ¶
IPAddressIn applies the In predicate on the "ip_address" field.
func IPAddressLT ¶
IPAddressLT applies the LT predicate on the "ip_address" field.
func IPAddressLTE ¶
IPAddressLTE applies the LTE predicate on the "ip_address" field.
func IPAddressNEQ ¶
IPAddressNEQ applies the NEQ predicate on the "ip_address" field.
func IPAddressNotIn ¶
IPAddressNotIn applies the NotIn predicate on the "ip_address" field.
func SubnetMask ¶
SubnetMask applies equality check predicate on the "subnet_mask" field. It's identical to SubnetMaskEQ.
func SubnetMaskContains ¶
SubnetMaskContains applies the Contains predicate on the "subnet_mask" field.
func SubnetMaskContainsFold ¶
SubnetMaskContainsFold applies the ContainsFold predicate on the "subnet_mask" field.
func SubnetMaskEQ ¶
SubnetMaskEQ applies the EQ predicate on the "subnet_mask" field.
func SubnetMaskEqualFold ¶
SubnetMaskEqualFold applies the EqualFold predicate on the "subnet_mask" field.
func SubnetMaskGT ¶
SubnetMaskGT applies the GT predicate on the "subnet_mask" field.
func SubnetMaskGTE ¶
SubnetMaskGTE applies the GTE predicate on the "subnet_mask" field.
func SubnetMaskHasPrefix ¶
SubnetMaskHasPrefix applies the HasPrefix predicate on the "subnet_mask" field.
func SubnetMaskHasSuffix ¶
SubnetMaskHasSuffix applies the HasSuffix predicate on the "subnet_mask" field.
func SubnetMaskIn ¶
SubnetMaskIn applies the In predicate on the "subnet_mask" field.
func SubnetMaskLT ¶
SubnetMaskLT applies the LT predicate on the "subnet_mask" field.
func SubnetMaskLTE ¶
SubnetMaskLTE applies the LTE predicate on the "subnet_mask" field.
func SubnetMaskNEQ ¶
SubnetMaskNEQ applies the NEQ predicate on the "subnet_mask" field.
func SubnetMaskNotIn ¶
SubnetMaskNotIn applies the NotIn predicate on the "subnet_mask" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.