netinterfacemode

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 netinterfacemode type in the database.
	Label = "net_interface_mode"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldInterfaceMode holds the string denoting the interface_mode field in the database.
	FieldInterfaceMode = "interface_mode"
	// EdgeModes holds the string denoting the modes edge name in mutations.
	EdgeModes = "modes"
	// EdgePoModes holds the string denoting the po_modes edge name in mutations.
	EdgePoModes = "po_modes"
	// Table holds the table name of the netinterfacemode in the database.
	Table = "net_interface_modes"
	// ModesTable is the table the holds the modes relation/edge.
	ModesTable = "net_interfaces"
	// ModesInverseTable is the table name for the NetInterface entity.
	// It exists in this package in order to avoid circular dependency with the "netinterface" package.
	ModesInverseTable = "net_interfaces"
	// ModesColumn is the table column denoting the modes relation/edge.
	ModesColumn = "net_interface_mode_modes"
	// PoModesTable is the table the holds the po_modes relation/edge.
	PoModesTable = "port_channel_interfaces"
	// PoModesInverseTable is the table name for the PortChannelInterface entity.
	// It exists in this package in order to avoid circular dependency with the "portchannelinterface" package.
	PoModesInverseTable = "port_channel_interfaces"
	// PoModesColumn is the table column denoting the po_modes relation/edge.
	PoModesColumn = "net_interface_mode_po_modes"
)

Variables

Columns holds all SQL columns for netinterfacemode fields.

View Source
var (
	// InterfaceModeValidator is a validator for the "interface_mode" field. It is called by the builders before save.
	InterfaceModeValidator func(string) error
)

Functions

func And

And groups predicates with the AND operator between them.

func HasModes

func HasModes() predicate.NetInterfaceMode

HasModes applies the HasEdge predicate on the "modes" edge.

func HasModesWith

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

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

func HasPoModes added in v0.2.0

func HasPoModes() predicate.NetInterfaceMode

HasPoModes applies the HasEdge predicate on the "po_modes" edge.

func HasPoModesWith added in v0.2.0

HasPoModesWith applies the HasEdge predicate on the "po_modes" 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

func IDGTE(id int) predicate.NetInterfaceMode

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.NetInterfaceMode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.NetInterfaceMode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InterfaceMode

func InterfaceMode(v string) predicate.NetInterfaceMode

InterfaceMode applies equality check predicate on the "interface_mode" field. It's identical to InterfaceModeEQ.

func InterfaceModeContains

func InterfaceModeContains(v string) predicate.NetInterfaceMode

InterfaceModeContains applies the Contains predicate on the "interface_mode" field.

func InterfaceModeContainsFold

func InterfaceModeContainsFold(v string) predicate.NetInterfaceMode

InterfaceModeContainsFold applies the ContainsFold predicate on the "interface_mode" field.

func InterfaceModeEQ

func InterfaceModeEQ(v string) predicate.NetInterfaceMode

InterfaceModeEQ applies the EQ predicate on the "interface_mode" field.

func InterfaceModeEqualFold

func InterfaceModeEqualFold(v string) predicate.NetInterfaceMode

InterfaceModeEqualFold applies the EqualFold predicate on the "interface_mode" field.

func InterfaceModeGT

func InterfaceModeGT(v string) predicate.NetInterfaceMode

InterfaceModeGT applies the GT predicate on the "interface_mode" field.

func InterfaceModeGTE

func InterfaceModeGTE(v string) predicate.NetInterfaceMode

InterfaceModeGTE applies the GTE predicate on the "interface_mode" field.

func InterfaceModeHasPrefix

func InterfaceModeHasPrefix(v string) predicate.NetInterfaceMode

InterfaceModeHasPrefix applies the HasPrefix predicate on the "interface_mode" field.

func InterfaceModeHasSuffix

func InterfaceModeHasSuffix(v string) predicate.NetInterfaceMode

InterfaceModeHasSuffix applies the HasSuffix predicate on the "interface_mode" field.

func InterfaceModeIn

func InterfaceModeIn(vs ...string) predicate.NetInterfaceMode

InterfaceModeIn applies the In predicate on the "interface_mode" field.

func InterfaceModeLT

func InterfaceModeLT(v string) predicate.NetInterfaceMode

InterfaceModeLT applies the LT predicate on the "interface_mode" field.

func InterfaceModeLTE

func InterfaceModeLTE(v string) predicate.NetInterfaceMode

InterfaceModeLTE applies the LTE predicate on the "interface_mode" field.

func InterfaceModeNEQ

func InterfaceModeNEQ(v string) predicate.NetInterfaceMode

InterfaceModeNEQ applies the NEQ predicate on the "interface_mode" field.

func InterfaceModeNotIn

func InterfaceModeNotIn(vs ...string) predicate.NetInterfaceMode

InterfaceModeNotIn applies the NotIn predicate on the "interface_mode" field.

func Not

Not applies the not operator on the given predicate.

func Or

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