device

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 device type in the database.
	Label = "device"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeviceName holds the string denoting the device_name field in the database.
	FieldDeviceName = "device_name"
	// FieldDeviceHostname holds the string denoting the device_hostname field in the database.
	FieldDeviceHostname = "device_hostname"
	// FieldDeviceUsername holds the string denoting the device_username field in the database.
	FieldDeviceUsername = "device_username"
	// FieldDevicePassword holds the string denoting the device_password field in the database.
	FieldDevicePassword = "device_password"
	// FieldDeviceSecret holds the string denoting the device_secret field in the database.
	FieldDeviceSecret = "device_secret"
	// FieldDeviceSSHPort holds the string denoting the device_ssh_port field in the database.
	FieldDeviceSSHPort = "device_ssh_port"
	// FieldDeviceCommitConfig holds the string denoting the device_commit_config field in the database.
	FieldDeviceCommitConfig = "device_commit_config"
	// EdgeInType holds the string denoting the in_type edge name in mutations.
	EdgeInType = "in_type"
	// EdgeInPlatform holds the string denoting the in_platform edge name in mutations.
	EdgeInPlatform = "in_platform"
	// EdgeInterfaces holds the string denoting the interfaces edge name in mutations.
	EdgeInterfaces = "interfaces"
	// EdgeIPStaticRouting holds the string denoting the ip_static_routing edge name in mutations.
	EdgeIPStaticRouting = "ip_static_routing"
	// EdgePoInterfaces holds the string denoting the po_interfaces edge name in mutations.
	EdgePoInterfaces = "po_interfaces"
	// EdgeHaveIPAddresses holds the string denoting the have_ip_addresses edge name in mutations.
	EdgeHaveIPAddresses = "have_ip_addresses"
	// EdgeInTopology holds the string denoting the in_topology edge name in mutations.
	EdgeInTopology = "in_topology"
	// EdgeStoreVlans holds the string denoting the store_vlans edge name in mutations.
	EdgeStoreVlans = "store_vlans"
	// EdgeDeletedVlans holds the string denoting the deleted_vlans edge name in mutations.
	EdgeDeletedVlans = "deleted_vlans"
	// Table holds the table name of the device in the database.
	Table = "devices"
	// InTypeTable is the table the holds the in_type relation/edge.
	InTypeTable = "devices"
	// InTypeInverseTable is the table name for the DeviceType entity.
	// It exists in this package in order to avoid circular dependency with the "devicetype" package.
	InTypeInverseTable = "device_types"
	// InTypeColumn is the table column denoting the in_type relation/edge.
	InTypeColumn = "device_type_types"
	// InPlatformTable is the table the holds the in_platform relation/edge.
	InPlatformTable = "devices"
	// InPlatformInverseTable is the table name for the DevicePlatform entity.
	// It exists in this package in order to avoid circular dependency with the "deviceplatform" package.
	InPlatformInverseTable = "device_platforms"
	// InPlatformColumn is the table column denoting the in_platform relation/edge.
	InPlatformColumn = "device_platform_platforms"
	// 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 = "device_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 = "device_ip_static_routing"
	// 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 = "device_po_interfaces"
	// HaveIPAddressesTable is the table the holds the have_ip_addresses relation/edge.
	HaveIPAddressesTable = "ip_addresses"
	// HaveIPAddressesInverseTable is the table name for the IPAddress entity.
	// It exists in this package in order to avoid circular dependency with the "ipaddress" package.
	HaveIPAddressesInverseTable = "ip_addresses"
	// HaveIPAddressesColumn is the table column denoting the have_ip_addresses relation/edge.
	HaveIPAddressesColumn = "device_have_ip_addresses"
	// InTopologyTable is the table the holds the in_topology relation/edge.
	InTopologyTable = "net_topology_device_maps"
	// InTopologyInverseTable is the table name for the NetTopologyDeviceMap entity.
	// It exists in this package in order to avoid circular dependency with the "nettopologydevicemap" package.
	InTopologyInverseTable = "net_topology_device_maps"
	// InTopologyColumn is the table column denoting the in_topology relation/edge.
	InTopologyColumn = "device_in_topology"
	// StoreVlansTable is the table the holds the store_vlans relation/edge. The primary key declared below.
	StoreVlansTable = "device_store_vlans"
	// StoreVlansInverseTable is the table name for the Vlan entity.
	// It exists in this package in order to avoid circular dependency with the "vlan" package.
	StoreVlansInverseTable = "vlans"
	// DeletedVlansTable is the table the holds the deleted_vlans relation/edge.
	DeletedVlansTable = "deleted_vlan_logs"
	// DeletedVlansInverseTable is the table name for the DeletedVlanLog entity.
	// It exists in this package in order to avoid circular dependency with the "deletedvlanlog" package.
	DeletedVlansInverseTable = "deleted_vlan_logs"
	// DeletedVlansColumn is the table column denoting the deleted_vlans relation/edge.
	DeletedVlansColumn = "device_deleted_vlans"
)

Variables

View Source
var (
	// DeviceNameValidator is a validator for the "device_name" field. It is called by the builders before save.
	DeviceNameValidator func(string) error
	// DeviceHostnameValidator is a validator for the "device_hostname" field. It is called by the builders before save.
	DeviceHostnameValidator func(string) error
	// DefaultDeviceSecret holds the default value on creation for the "device_secret" field.
	DefaultDeviceSecret string
	// DefaultDeviceSSHPort holds the default value on creation for the "device_ssh_port" field.
	DefaultDeviceSSHPort int
	// DeviceSSHPortValidator is a validator for the "device_ssh_port" field. It is called by the builders before save.
	DeviceSSHPortValidator func(int) error
	// DefaultDeviceCommitConfig holds the default value on creation for the "device_commit_config" field.
	DefaultDeviceCommitConfig bool
)

Columns holds all SQL columns for device fields.

View Source
var ForeignKeys = []string{
	"device_platform_platforms",
	"device_type_types",
}

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

View Source
var (
	// StoreVlansPrimaryKey and StoreVlansColumn2 are the table columns denoting the
	// primary key for the store_vlans relation (M2M).
	StoreVlansPrimaryKey = []string{"device_id", "vlan_id"}
)

Functions

func And

func And(predicates ...predicate.Device) predicate.Device

And groups predicates with the AND operator between them.

func DeviceCommitConfig

func DeviceCommitConfig(v bool) predicate.Device

DeviceCommitConfig applies equality check predicate on the "device_commit_config" field. It's identical to DeviceCommitConfigEQ.

func DeviceCommitConfigEQ

func DeviceCommitConfigEQ(v bool) predicate.Device

DeviceCommitConfigEQ applies the EQ predicate on the "device_commit_config" field.

func DeviceCommitConfigNEQ

func DeviceCommitConfigNEQ(v bool) predicate.Device

DeviceCommitConfigNEQ applies the NEQ predicate on the "device_commit_config" field.

func DeviceHostname

func DeviceHostname(v string) predicate.Device

DeviceHostname applies equality check predicate on the "device_hostname" field. It's identical to DeviceHostnameEQ.

func DeviceHostnameContains

func DeviceHostnameContains(v string) predicate.Device

DeviceHostnameContains applies the Contains predicate on the "device_hostname" field.

func DeviceHostnameContainsFold

func DeviceHostnameContainsFold(v string) predicate.Device

DeviceHostnameContainsFold applies the ContainsFold predicate on the "device_hostname" field.

func DeviceHostnameEQ

func DeviceHostnameEQ(v string) predicate.Device

DeviceHostnameEQ applies the EQ predicate on the "device_hostname" field.

func DeviceHostnameEqualFold

func DeviceHostnameEqualFold(v string) predicate.Device

DeviceHostnameEqualFold applies the EqualFold predicate on the "device_hostname" field.

func DeviceHostnameGT

func DeviceHostnameGT(v string) predicate.Device

DeviceHostnameGT applies the GT predicate on the "device_hostname" field.

func DeviceHostnameGTE

func DeviceHostnameGTE(v string) predicate.Device

DeviceHostnameGTE applies the GTE predicate on the "device_hostname" field.

func DeviceHostnameHasPrefix

func DeviceHostnameHasPrefix(v string) predicate.Device

DeviceHostnameHasPrefix applies the HasPrefix predicate on the "device_hostname" field.

func DeviceHostnameHasSuffix

func DeviceHostnameHasSuffix(v string) predicate.Device

DeviceHostnameHasSuffix applies the HasSuffix predicate on the "device_hostname" field.

func DeviceHostnameIn

func DeviceHostnameIn(vs ...string) predicate.Device

DeviceHostnameIn applies the In predicate on the "device_hostname" field.

func DeviceHostnameLT

func DeviceHostnameLT(v string) predicate.Device

DeviceHostnameLT applies the LT predicate on the "device_hostname" field.

func DeviceHostnameLTE

func DeviceHostnameLTE(v string) predicate.Device

DeviceHostnameLTE applies the LTE predicate on the "device_hostname" field.

func DeviceHostnameNEQ

func DeviceHostnameNEQ(v string) predicate.Device

DeviceHostnameNEQ applies the NEQ predicate on the "device_hostname" field.

func DeviceHostnameNotIn

func DeviceHostnameNotIn(vs ...string) predicate.Device

DeviceHostnameNotIn applies the NotIn predicate on the "device_hostname" field.

func DeviceName

func DeviceName(v string) predicate.Device

DeviceName applies equality check predicate on the "device_name" field. It's identical to DeviceNameEQ.

func DeviceNameContains

func DeviceNameContains(v string) predicate.Device

DeviceNameContains applies the Contains predicate on the "device_name" field.

func DeviceNameContainsFold

func DeviceNameContainsFold(v string) predicate.Device

DeviceNameContainsFold applies the ContainsFold predicate on the "device_name" field.

func DeviceNameEQ

func DeviceNameEQ(v string) predicate.Device

DeviceNameEQ applies the EQ predicate on the "device_name" field.

func DeviceNameEqualFold

func DeviceNameEqualFold(v string) predicate.Device

DeviceNameEqualFold applies the EqualFold predicate on the "device_name" field.

func DeviceNameGT

func DeviceNameGT(v string) predicate.Device

DeviceNameGT applies the GT predicate on the "device_name" field.

func DeviceNameGTE

func DeviceNameGTE(v string) predicate.Device

DeviceNameGTE applies the GTE predicate on the "device_name" field.

func DeviceNameHasPrefix

func DeviceNameHasPrefix(v string) predicate.Device

DeviceNameHasPrefix applies the HasPrefix predicate on the "device_name" field.

func DeviceNameHasSuffix

func DeviceNameHasSuffix(v string) predicate.Device

DeviceNameHasSuffix applies the HasSuffix predicate on the "device_name" field.

func DeviceNameIn

func DeviceNameIn(vs ...string) predicate.Device

DeviceNameIn applies the In predicate on the "device_name" field.

func DeviceNameLT

func DeviceNameLT(v string) predicate.Device

DeviceNameLT applies the LT predicate on the "device_name" field.

func DeviceNameLTE

func DeviceNameLTE(v string) predicate.Device

DeviceNameLTE applies the LTE predicate on the "device_name" field.

func DeviceNameNEQ

func DeviceNameNEQ(v string) predicate.Device

DeviceNameNEQ applies the NEQ predicate on the "device_name" field.

func DeviceNameNotIn

func DeviceNameNotIn(vs ...string) predicate.Device

DeviceNameNotIn applies the NotIn predicate on the "device_name" field.

func DevicePassword

func DevicePassword(v string) predicate.Device

DevicePassword applies equality check predicate on the "device_password" field. It's identical to DevicePasswordEQ.

func DevicePasswordContains

func DevicePasswordContains(v string) predicate.Device

DevicePasswordContains applies the Contains predicate on the "device_password" field.

func DevicePasswordContainsFold

func DevicePasswordContainsFold(v string) predicate.Device

DevicePasswordContainsFold applies the ContainsFold predicate on the "device_password" field.

func DevicePasswordEQ

func DevicePasswordEQ(v string) predicate.Device

DevicePasswordEQ applies the EQ predicate on the "device_password" field.

func DevicePasswordEqualFold

func DevicePasswordEqualFold(v string) predicate.Device

DevicePasswordEqualFold applies the EqualFold predicate on the "device_password" field.

func DevicePasswordGT

func DevicePasswordGT(v string) predicate.Device

DevicePasswordGT applies the GT predicate on the "device_password" field.

func DevicePasswordGTE

func DevicePasswordGTE(v string) predicate.Device

DevicePasswordGTE applies the GTE predicate on the "device_password" field.

func DevicePasswordHasPrefix

func DevicePasswordHasPrefix(v string) predicate.Device

DevicePasswordHasPrefix applies the HasPrefix predicate on the "device_password" field.

func DevicePasswordHasSuffix

func DevicePasswordHasSuffix(v string) predicate.Device

DevicePasswordHasSuffix applies the HasSuffix predicate on the "device_password" field.

func DevicePasswordIn

func DevicePasswordIn(vs ...string) predicate.Device

DevicePasswordIn applies the In predicate on the "device_password" field.

func DevicePasswordIsNil

func DevicePasswordIsNil() predicate.Device

DevicePasswordIsNil applies the IsNil predicate on the "device_password" field.

func DevicePasswordLT

func DevicePasswordLT(v string) predicate.Device

DevicePasswordLT applies the LT predicate on the "device_password" field.

func DevicePasswordLTE

func DevicePasswordLTE(v string) predicate.Device

DevicePasswordLTE applies the LTE predicate on the "device_password" field.

func DevicePasswordNEQ

func DevicePasswordNEQ(v string) predicate.Device

DevicePasswordNEQ applies the NEQ predicate on the "device_password" field.

func DevicePasswordNotIn

func DevicePasswordNotIn(vs ...string) predicate.Device

DevicePasswordNotIn applies the NotIn predicate on the "device_password" field.

func DevicePasswordNotNil

func DevicePasswordNotNil() predicate.Device

DevicePasswordNotNil applies the NotNil predicate on the "device_password" field.

func DeviceSSHPort

func DeviceSSHPort(v int) predicate.Device

DeviceSSHPort applies equality check predicate on the "device_ssh_port" field. It's identical to DeviceSSHPortEQ.

func DeviceSSHPortEQ

func DeviceSSHPortEQ(v int) predicate.Device

DeviceSSHPortEQ applies the EQ predicate on the "device_ssh_port" field.

func DeviceSSHPortGT

func DeviceSSHPortGT(v int) predicate.Device

DeviceSSHPortGT applies the GT predicate on the "device_ssh_port" field.

func DeviceSSHPortGTE

func DeviceSSHPortGTE(v int) predicate.Device

DeviceSSHPortGTE applies the GTE predicate on the "device_ssh_port" field.

func DeviceSSHPortIn

func DeviceSSHPortIn(vs ...int) predicate.Device

DeviceSSHPortIn applies the In predicate on the "device_ssh_port" field.

func DeviceSSHPortLT

func DeviceSSHPortLT(v int) predicate.Device

DeviceSSHPortLT applies the LT predicate on the "device_ssh_port" field.

func DeviceSSHPortLTE

func DeviceSSHPortLTE(v int) predicate.Device

DeviceSSHPortLTE applies the LTE predicate on the "device_ssh_port" field.

func DeviceSSHPortNEQ

func DeviceSSHPortNEQ(v int) predicate.Device

DeviceSSHPortNEQ applies the NEQ predicate on the "device_ssh_port" field.

func DeviceSSHPortNotIn

func DeviceSSHPortNotIn(vs ...int) predicate.Device

DeviceSSHPortNotIn applies the NotIn predicate on the "device_ssh_port" field.

func DeviceSecret

func DeviceSecret(v string) predicate.Device

DeviceSecret applies equality check predicate on the "device_secret" field. It's identical to DeviceSecretEQ.

func DeviceSecretContains

func DeviceSecretContains(v string) predicate.Device

DeviceSecretContains applies the Contains predicate on the "device_secret" field.

func DeviceSecretContainsFold

func DeviceSecretContainsFold(v string) predicate.Device

DeviceSecretContainsFold applies the ContainsFold predicate on the "device_secret" field.

func DeviceSecretEQ

func DeviceSecretEQ(v string) predicate.Device

DeviceSecretEQ applies the EQ predicate on the "device_secret" field.

func DeviceSecretEqualFold

func DeviceSecretEqualFold(v string) predicate.Device

DeviceSecretEqualFold applies the EqualFold predicate on the "device_secret" field.

func DeviceSecretGT

func DeviceSecretGT(v string) predicate.Device

DeviceSecretGT applies the GT predicate on the "device_secret" field.

func DeviceSecretGTE

func DeviceSecretGTE(v string) predicate.Device

DeviceSecretGTE applies the GTE predicate on the "device_secret" field.

func DeviceSecretHasPrefix

func DeviceSecretHasPrefix(v string) predicate.Device

DeviceSecretHasPrefix applies the HasPrefix predicate on the "device_secret" field.

func DeviceSecretHasSuffix

func DeviceSecretHasSuffix(v string) predicate.Device

DeviceSecretHasSuffix applies the HasSuffix predicate on the "device_secret" field.

func DeviceSecretIn

func DeviceSecretIn(vs ...string) predicate.Device

DeviceSecretIn applies the In predicate on the "device_secret" field.

func DeviceSecretIsNil

func DeviceSecretIsNil() predicate.Device

DeviceSecretIsNil applies the IsNil predicate on the "device_secret" field.

func DeviceSecretLT

func DeviceSecretLT(v string) predicate.Device

DeviceSecretLT applies the LT predicate on the "device_secret" field.

func DeviceSecretLTE

func DeviceSecretLTE(v string) predicate.Device

DeviceSecretLTE applies the LTE predicate on the "device_secret" field.

func DeviceSecretNEQ

func DeviceSecretNEQ(v string) predicate.Device

DeviceSecretNEQ applies the NEQ predicate on the "device_secret" field.

func DeviceSecretNotIn

func DeviceSecretNotIn(vs ...string) predicate.Device

DeviceSecretNotIn applies the NotIn predicate on the "device_secret" field.

func DeviceSecretNotNil

func DeviceSecretNotNil() predicate.Device

DeviceSecretNotNil applies the NotNil predicate on the "device_secret" field.

func DeviceUsername

func DeviceUsername(v string) predicate.Device

DeviceUsername applies equality check predicate on the "device_username" field. It's identical to DeviceUsernameEQ.

func DeviceUsernameContains

func DeviceUsernameContains(v string) predicate.Device

DeviceUsernameContains applies the Contains predicate on the "device_username" field.

func DeviceUsernameContainsFold

func DeviceUsernameContainsFold(v string) predicate.Device

DeviceUsernameContainsFold applies the ContainsFold predicate on the "device_username" field.

func DeviceUsernameEQ

func DeviceUsernameEQ(v string) predicate.Device

DeviceUsernameEQ applies the EQ predicate on the "device_username" field.

func DeviceUsernameEqualFold

func DeviceUsernameEqualFold(v string) predicate.Device

DeviceUsernameEqualFold applies the EqualFold predicate on the "device_username" field.

func DeviceUsernameGT

func DeviceUsernameGT(v string) predicate.Device

DeviceUsernameGT applies the GT predicate on the "device_username" field.

func DeviceUsernameGTE

func DeviceUsernameGTE(v string) predicate.Device

DeviceUsernameGTE applies the GTE predicate on the "device_username" field.

func DeviceUsernameHasPrefix

func DeviceUsernameHasPrefix(v string) predicate.Device

DeviceUsernameHasPrefix applies the HasPrefix predicate on the "device_username" field.

func DeviceUsernameHasSuffix

func DeviceUsernameHasSuffix(v string) predicate.Device

DeviceUsernameHasSuffix applies the HasSuffix predicate on the "device_username" field.

func DeviceUsernameIn

func DeviceUsernameIn(vs ...string) predicate.Device

DeviceUsernameIn applies the In predicate on the "device_username" field.

func DeviceUsernameIsNil

func DeviceUsernameIsNil() predicate.Device

DeviceUsernameIsNil applies the IsNil predicate on the "device_username" field.

func DeviceUsernameLT

func DeviceUsernameLT(v string) predicate.Device

DeviceUsernameLT applies the LT predicate on the "device_username" field.

func DeviceUsernameLTE

func DeviceUsernameLTE(v string) predicate.Device

DeviceUsernameLTE applies the LTE predicate on the "device_username" field.

func DeviceUsernameNEQ

func DeviceUsernameNEQ(v string) predicate.Device

DeviceUsernameNEQ applies the NEQ predicate on the "device_username" field.

func DeviceUsernameNotIn

func DeviceUsernameNotIn(vs ...string) predicate.Device

DeviceUsernameNotIn applies the NotIn predicate on the "device_username" field.

func DeviceUsernameNotNil

func DeviceUsernameNotNil() predicate.Device

DeviceUsernameNotNil applies the NotNil predicate on the "device_username" field.

func HasDeletedVlans

func HasDeletedVlans() predicate.Device

HasDeletedVlans applies the HasEdge predicate on the "deleted_vlans" edge.

func HasDeletedVlansWith

func HasDeletedVlansWith(preds ...predicate.DeletedVlanLog) predicate.Device

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

func HasHaveIPAddresses added in v0.2.0

func HasHaveIPAddresses() predicate.Device

HasHaveIPAddresses applies the HasEdge predicate on the "have_ip_addresses" edge.

func HasHaveIPAddressesWith added in v0.2.0

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

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

func HasIPStaticRouting added in v0.2.0

func HasIPStaticRouting() predicate.Device

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

func HasIPStaticRoutingWith added in v0.2.0

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

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

func HasInPlatform

func HasInPlatform() predicate.Device

HasInPlatform applies the HasEdge predicate on the "in_platform" edge.

func HasInPlatformWith

func HasInPlatformWith(preds ...predicate.DevicePlatform) predicate.Device

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

func HasInTopology

func HasInTopology() predicate.Device

HasInTopology applies the HasEdge predicate on the "in_topology" edge.

func HasInTopologyWith

func HasInTopologyWith(preds ...predicate.NetTopologyDeviceMap) predicate.Device

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

func HasInType

func HasInType() predicate.Device

HasInType applies the HasEdge predicate on the "in_type" edge.

func HasInTypeWith

func HasInTypeWith(preds ...predicate.DeviceType) predicate.Device

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

func HasInterfaces

func HasInterfaces() predicate.Device

HasInterfaces applies the HasEdge predicate on the "interfaces" edge.

func HasInterfacesWith

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

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

func HasPoInterfaces added in v0.2.0

func HasPoInterfaces() predicate.Device

HasPoInterfaces applies the HasEdge predicate on the "po_interfaces" edge.

func HasPoInterfacesWith added in v0.2.0

func HasPoInterfacesWith(preds ...predicate.PortChannelInterface) predicate.Device

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

func HasStoreVlans

func HasStoreVlans() predicate.Device

HasStoreVlans applies the HasEdge predicate on the "store_vlans" edge.

func HasStoreVlansWith

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

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

func ID

func ID(id int) predicate.Device

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Device

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Device

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Device

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Device

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Device

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Device

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

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