vlan

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

View Source
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"}
)
View Source
var Columns = []string{
	FieldID,
	FieldVlanID,
}

Columns holds all SQL columns for vlan fields.

View Source
var (
	// VlanIDValidator is a validator for the "vlan_id" field. It is called by the builders before save.
	VlanIDValidator func(int) error
)

Functions

func And

func And(predicates ...predicate.Vlan) predicate.Vlan

And groups predicates with the AND operator between them.

func HasNativeVlan

func HasNativeVlan() predicate.Vlan

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

func HasOnDevice() predicate.Vlan

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

func HasOnDeviceWith

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

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

func HasPoNativeVlan added in v0.2.0

func HasPoNativeVlan() predicate.Vlan

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

func HasPoVlans() predicate.Vlan

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 HasVlans

func HasVlans() predicate.Vlan

HasVlans applies the HasEdge predicate on the "vlans" edge.

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 ID

func ID(id int) predicate.Vlan

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Vlan

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Vlan

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Vlan

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Vlan

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Vlan

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Vlan

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Vlan) predicate.Vlan

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).

func VlanID

func VlanID(v int) predicate.Vlan

VlanID applies equality check predicate on the "vlan_id" field. It's identical to VlanIDEQ.

func VlanIDEQ

func VlanIDEQ(v int) predicate.Vlan

VlanIDEQ applies the EQ predicate on the "vlan_id" field.

func VlanIDGT

func VlanIDGT(v int) predicate.Vlan

VlanIDGT applies the GT predicate on the "vlan_id" field.

func VlanIDGTE

func VlanIDGTE(v int) predicate.Vlan

VlanIDGTE applies the GTE predicate on the "vlan_id" field.

func VlanIDIn

func VlanIDIn(vs ...int) predicate.Vlan

VlanIDIn applies the In predicate on the "vlan_id" field.

func VlanIDLT

func VlanIDLT(v int) predicate.Vlan

VlanIDLT applies the LT predicate on the "vlan_id" field.

func VlanIDLTE

func VlanIDLTE(v int) predicate.Vlan

VlanIDLTE applies the LTE predicate on the "vlan_id" field.

func VlanIDNEQ

func VlanIDNEQ(v int) predicate.Vlan

VlanIDNEQ applies the NEQ predicate on the "vlan_id" field.

func VlanIDNotIn

func VlanIDNotIn(vs ...int) predicate.Vlan

VlanIDNotIn applies the NotIn predicate on the "vlan_id" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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