ipaddress

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for ipaddress fields.

View Source
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 And

func And(predicates ...predicate.IPAddress) predicate.IPAddress

And groups predicates with the AND operator between them.

func HasInterfaces

func HasInterfaces() predicate.IPAddress

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

func HasOnDevice() predicate.IPAddress

HasOnDevice applies the HasEdge predicate on the "on_device" edge.

func HasOnDeviceWith

func HasOnDeviceWith(preds ...predicate.Device) predicate.IPAddress

HasOnDeviceWith applies the HasEdge predicate on the "on_device" edge with a given conditions (other predicates).

func HasPoInterfaces

func HasPoInterfaces() predicate.IPAddress

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 ID

func ID(id int) predicate.IPAddress

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.IPAddress

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.IPAddress

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.IPAddress

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.IPAddress

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.IPAddress

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.IPAddress

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.IPAddress

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.IPAddress

IDNotIn applies the NotIn predicate on the ID field.

func IPAddress

func IPAddress(v string) predicate.IPAddress

IPAddress applies equality check predicate on the "ip_address" field. It's identical to IPAddressEQ.

func IPAddressContains

func IPAddressContains(v string) predicate.IPAddress

IPAddressContains applies the Contains predicate on the "ip_address" field.

func IPAddressContainsFold

func IPAddressContainsFold(v string) predicate.IPAddress

IPAddressContainsFold applies the ContainsFold predicate on the "ip_address" field.

func IPAddressEQ

func IPAddressEQ(v string) predicate.IPAddress

IPAddressEQ applies the EQ predicate on the "ip_address" field.

func IPAddressEqualFold

func IPAddressEqualFold(v string) predicate.IPAddress

IPAddressEqualFold applies the EqualFold predicate on the "ip_address" field.

func IPAddressGT

func IPAddressGT(v string) predicate.IPAddress

IPAddressGT applies the GT predicate on the "ip_address" field.

func IPAddressGTE

func IPAddressGTE(v string) predicate.IPAddress

IPAddressGTE applies the GTE predicate on the "ip_address" field.

func IPAddressHasPrefix

func IPAddressHasPrefix(v string) predicate.IPAddress

IPAddressHasPrefix applies the HasPrefix predicate on the "ip_address" field.

func IPAddressHasSuffix

func IPAddressHasSuffix(v string) predicate.IPAddress

IPAddressHasSuffix applies the HasSuffix predicate on the "ip_address" field.

func IPAddressIn

func IPAddressIn(vs ...string) predicate.IPAddress

IPAddressIn applies the In predicate on the "ip_address" field.

func IPAddressLT

func IPAddressLT(v string) predicate.IPAddress

IPAddressLT applies the LT predicate on the "ip_address" field.

func IPAddressLTE

func IPAddressLTE(v string) predicate.IPAddress

IPAddressLTE applies the LTE predicate on the "ip_address" field.

func IPAddressNEQ

func IPAddressNEQ(v string) predicate.IPAddress

IPAddressNEQ applies the NEQ predicate on the "ip_address" field.

func IPAddressNotIn

func IPAddressNotIn(vs ...string) predicate.IPAddress

IPAddressNotIn applies the NotIn predicate on the "ip_address" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.IPAddress) predicate.IPAddress

Or groups predicates with the OR operator between them.

func SubnetMask

func SubnetMask(v string) predicate.IPAddress

SubnetMask applies equality check predicate on the "subnet_mask" field. It's identical to SubnetMaskEQ.

func SubnetMaskContains

func SubnetMaskContains(v string) predicate.IPAddress

SubnetMaskContains applies the Contains predicate on the "subnet_mask" field.

func SubnetMaskContainsFold

func SubnetMaskContainsFold(v string) predicate.IPAddress

SubnetMaskContainsFold applies the ContainsFold predicate on the "subnet_mask" field.

func SubnetMaskEQ

func SubnetMaskEQ(v string) predicate.IPAddress

SubnetMaskEQ applies the EQ predicate on the "subnet_mask" field.

func SubnetMaskEqualFold

func SubnetMaskEqualFold(v string) predicate.IPAddress

SubnetMaskEqualFold applies the EqualFold predicate on the "subnet_mask" field.

func SubnetMaskGT

func SubnetMaskGT(v string) predicate.IPAddress

SubnetMaskGT applies the GT predicate on the "subnet_mask" field.

func SubnetMaskGTE

func SubnetMaskGTE(v string) predicate.IPAddress

SubnetMaskGTE applies the GTE predicate on the "subnet_mask" field.

func SubnetMaskHasPrefix

func SubnetMaskHasPrefix(v string) predicate.IPAddress

SubnetMaskHasPrefix applies the HasPrefix predicate on the "subnet_mask" field.

func SubnetMaskHasSuffix

func SubnetMaskHasSuffix(v string) predicate.IPAddress

SubnetMaskHasSuffix applies the HasSuffix predicate on the "subnet_mask" field.

func SubnetMaskIn

func SubnetMaskIn(vs ...string) predicate.IPAddress

SubnetMaskIn applies the In predicate on the "subnet_mask" field.

func SubnetMaskLT

func SubnetMaskLT(v string) predicate.IPAddress

SubnetMaskLT applies the LT predicate on the "subnet_mask" field.

func SubnetMaskLTE

func SubnetMaskLTE(v string) predicate.IPAddress

SubnetMaskLTE applies the LTE predicate on the "subnet_mask" field.

func SubnetMaskNEQ

func SubnetMaskNEQ(v string) predicate.IPAddress

SubnetMaskNEQ applies the NEQ predicate on the "subnet_mask" field.

func SubnetMaskNotIn

func SubnetMaskNotIn(vs ...string) predicate.IPAddress

SubnetMaskNotIn applies the NotIn predicate on the "subnet_mask" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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