netinterface

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 netinterface type in the database.
	Label = "net_interface"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldInterfaceName holds the string denoting the interface_name field in the database.
	FieldInterfaceName = "interface_name"
	// FieldInterfaceShutdown holds the string denoting the interface_shutdown field in the database.
	FieldInterfaceShutdown = "interface_shutdown"
	// EdgeOnDevice holds the string denoting the on_device edge name in mutations.
	EdgeOnDevice = "on_device"
	// EdgeOnPoInterface holds the string denoting the on_po_interface edge name in mutations.
	EdgeOnPoInterface = "on_po_interface"
	// EdgeOnIPAddress holds the string denoting the on_ip_address edge name in mutations.
	EdgeOnIPAddress = "on_ip_address"
	// EdgeIPStaticRouting holds the string denoting the ip_static_routing edge name in mutations.
	EdgeIPStaticRouting = "ip_static_routing"
	// 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"
	// Table holds the table name of the netinterface in the database.
	Table = "net_interfaces"
	// OnDeviceTable is the table the holds the on_device relation/edge.
	OnDeviceTable = "net_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_interfaces"
	// OnPoInterfaceTable is the table the holds the on_po_interface relation/edge.
	OnPoInterfaceTable = "net_interfaces"
	// OnPoInterfaceInverseTable is the table name for the PortChannelInterface entity.
	// It exists in this package in order to avoid circular dependency with the "portchannelinterface" package.
	OnPoInterfaceInverseTable = "port_channel_interfaces"
	// OnPoInterfaceColumn is the table column denoting the on_po_interface relation/edge.
	OnPoInterfaceColumn = "port_channel_interface_interfaces"
	// OnIPAddressTable is the table the holds the on_ip_address relation/edge.
	OnIPAddressTable = "net_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_interfaces"
	// IPStaticRoutingTable is the table the holds the ip_static_routing relation/edge.
	IPStaticRoutingTable = "ip_static_routing_tables"
	// IPStaticRoutingInverseTable is the table name for the IPStaticRoutingTable entity.
	// It exists in this package in order to avoid circular dependency with the "ipstaticroutingtable" package.
	IPStaticRoutingInverseTable = "ip_static_routing_tables"
	// IPStaticRoutingColumn is the table column denoting the ip_static_routing relation/edge.
	IPStaticRoutingColumn = "net_interface_ip_static_routing"
	// ModeTable is the table the holds the mode relation/edge.
	ModeTable = "net_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_modes"
	// OnLayerTable is the table the holds the on_layer relation/edge.
	OnLayerTable = "net_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_layers"
	// HaveVlansTable is the table the holds the have_vlans relation/edge. The primary key declared below.
	HaveVlansTable = "vlan_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 = "net_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_native_vlan"
)

Variables

View Source
var (
	// InterfaceNameValidator is a validator for the "interface_name" field. It is called by the builders before save.
	InterfaceNameValidator func(string) error
	// DefaultInterfaceShutdown holds the default value on creation for the "interface_shutdown" field.
	DefaultInterfaceShutdown bool
)

Columns holds all SQL columns for netinterface fields.

View Source
var ForeignKeys = []string{
	"device_interfaces",
	"ip_address_interfaces",
	"net_interface_layer_layers",
	"net_interface_mode_modes",
	"port_channel_interface_interfaces",
	"vlan_native_vlan",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "net_interfaces" table and are not defined as standalone fields in the schema.

View Source
var (
	// HaveVlansPrimaryKey and HaveVlansColumn2 are the table columns denoting the
	// primary key for the have_vlans relation (M2M).
	HaveVlansPrimaryKey = []string{"vlan_id", "net_interface_id"}
)

Functions

func And

func And(predicates ...predicate.NetInterface) predicate.NetInterface

And groups predicates with the AND operator between them.

func HasHaveVlans

func HasHaveVlans() predicate.NetInterface

HasHaveVlans applies the HasEdge predicate on the "have_vlans" edge.

func HasHaveVlansWith

func HasHaveVlansWith(preds ...predicate.Vlan) predicate.NetInterface

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

func HasIPStaticRouting added in v0.2.0

func HasIPStaticRouting() predicate.NetInterface

HasIPStaticRouting applies the HasEdge predicate on the "ip_static_routing" edge.

func HasIPStaticRoutingWith added in v0.2.0

func HasIPStaticRoutingWith(preds ...predicate.IPStaticRoutingTable) predicate.NetInterface

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

func HasMode

func HasMode() predicate.NetInterface

HasMode applies the HasEdge predicate on the "mode" edge.

func HasModeWith

func HasModeWith(preds ...predicate.NetInterfaceMode) predicate.NetInterface

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

func HasNativeOnVlan

func HasNativeOnVlan() predicate.NetInterface

HasNativeOnVlan applies the HasEdge predicate on the "native_on_vlan" edge.

func HasNativeOnVlanWith

func HasNativeOnVlanWith(preds ...predicate.Vlan) predicate.NetInterface

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

func HasOnDevice

func HasOnDevice() predicate.NetInterface

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

func HasOnDeviceWith

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

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

func HasOnIPAddress added in v0.2.0

func HasOnIPAddress() predicate.NetInterface

HasOnIPAddress applies the HasEdge predicate on the "on_ip_address" edge.

func HasOnIPAddressWith added in v0.2.0

func HasOnIPAddressWith(preds ...predicate.IPAddress) predicate.NetInterface

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

func HasOnLayer added in v0.2.0

func HasOnLayer() predicate.NetInterface

HasOnLayer applies the HasEdge predicate on the "on_layer" edge.

func HasOnLayerWith added in v0.2.0

func HasOnLayerWith(preds ...predicate.NetInterfaceLayer) predicate.NetInterface

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

func HasOnPoInterface added in v0.2.0

func HasOnPoInterface() predicate.NetInterface

HasOnPoInterface applies the HasEdge predicate on the "on_po_interface" edge.

func HasOnPoInterfaceWith added in v0.2.0

func HasOnPoInterfaceWith(preds ...predicate.PortChannelInterface) predicate.NetInterface

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

func ID

func ID(id int) predicate.NetInterface

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.NetInterface

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.NetInterface

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.NetInterface

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.NetInterface

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.NetInterface

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.NetInterface

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InterfaceName

func InterfaceName(v string) predicate.NetInterface

InterfaceName applies equality check predicate on the "interface_name" field. It's identical to InterfaceNameEQ.

func InterfaceNameContains

func InterfaceNameContains(v string) predicate.NetInterface

InterfaceNameContains applies the Contains predicate on the "interface_name" field.

func InterfaceNameContainsFold

func InterfaceNameContainsFold(v string) predicate.NetInterface

InterfaceNameContainsFold applies the ContainsFold predicate on the "interface_name" field.

func InterfaceNameEQ

func InterfaceNameEQ(v string) predicate.NetInterface

InterfaceNameEQ applies the EQ predicate on the "interface_name" field.

func InterfaceNameEqualFold

func InterfaceNameEqualFold(v string) predicate.NetInterface

InterfaceNameEqualFold applies the EqualFold predicate on the "interface_name" field.

func InterfaceNameGT

func InterfaceNameGT(v string) predicate.NetInterface

InterfaceNameGT applies the GT predicate on the "interface_name" field.

func InterfaceNameGTE

func InterfaceNameGTE(v string) predicate.NetInterface

InterfaceNameGTE applies the GTE predicate on the "interface_name" field.

func InterfaceNameHasPrefix

func InterfaceNameHasPrefix(v string) predicate.NetInterface

InterfaceNameHasPrefix applies the HasPrefix predicate on the "interface_name" field.

func InterfaceNameHasSuffix

func InterfaceNameHasSuffix(v string) predicate.NetInterface

InterfaceNameHasSuffix applies the HasSuffix predicate on the "interface_name" field.

func InterfaceNameIn

func InterfaceNameIn(vs ...string) predicate.NetInterface

InterfaceNameIn applies the In predicate on the "interface_name" field.

func InterfaceNameLT

func InterfaceNameLT(v string) predicate.NetInterface

InterfaceNameLT applies the LT predicate on the "interface_name" field.

func InterfaceNameLTE

func InterfaceNameLTE(v string) predicate.NetInterface

InterfaceNameLTE applies the LTE predicate on the "interface_name" field.

func InterfaceNameNEQ

func InterfaceNameNEQ(v string) predicate.NetInterface

InterfaceNameNEQ applies the NEQ predicate on the "interface_name" field.

func InterfaceNameNotIn

func InterfaceNameNotIn(vs ...string) predicate.NetInterface

InterfaceNameNotIn applies the NotIn predicate on the "interface_name" field.

func InterfaceShutdown

func InterfaceShutdown(v bool) predicate.NetInterface

InterfaceShutdown applies equality check predicate on the "interface_shutdown" field. It's identical to InterfaceShutdownEQ.

func InterfaceShutdownEQ

func InterfaceShutdownEQ(v bool) predicate.NetInterface

InterfaceShutdownEQ applies the EQ predicate on the "interface_shutdown" field.

func InterfaceShutdownNEQ

func InterfaceShutdownNEQ(v bool) predicate.NetInterface

InterfaceShutdownNEQ applies the NEQ predicate on the "interface_shutdown" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.NetInterface) predicate.NetInterface

Or groups predicates with the OR operator between them.

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