portchannelinterface

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

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

Columns holds all SQL columns for portchannelinterface fields.

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

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

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

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

func HasModeWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

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

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

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

Not applies the not operator on the given predicate.

func Or

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

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