nettopology

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 nettopology type in the database.
	Label = "net_topology"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTopologyName holds the string denoting the topology_name field in the database.
	FieldTopologyName = "topology_name"
	// FieldTopologyDescription holds the string denoting the topology_description field in the database.
	FieldTopologyDescription = "topology_description"
	// EdgeTopology holds the string denoting the topology edge name in mutations.
	EdgeTopology = "topology"
	// Table holds the table name of the nettopology in the database.
	Table = "net_topologies"
	// TopologyTable is the table the holds the topology relation/edge.
	TopologyTable = "net_topology_device_maps"
	// TopologyInverseTable is the table name for the NetTopologyDeviceMap entity.
	// It exists in this package in order to avoid circular dependency with the "nettopologydevicemap" package.
	TopologyInverseTable = "net_topology_device_maps"
	// TopologyColumn is the table column denoting the topology relation/edge.
	TopologyColumn = "net_topology_topology"
)

Variables

View Source
var (
	// TopologyNameValidator is a validator for the "topology_name" field. It is called by the builders before save.
	TopologyNameValidator func(string) error
	// TopologyDescriptionValidator is a validator for the "topology_description" field. It is called by the builders before save.
	TopologyDescriptionValidator func(string) error
)

Columns holds all SQL columns for nettopology fields.

Functions

func And

func And(predicates ...predicate.NetTopology) predicate.NetTopology

And groups predicates with the AND operator between them.

func HasTopology

func HasTopology() predicate.NetTopology

HasTopology applies the HasEdge predicate on the "topology" edge.

func HasTopologyWith

func HasTopologyWith(preds ...predicate.NetTopologyDeviceMap) predicate.NetTopology

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

func ID

func ID(id int) predicate.NetTopology

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.NetTopology

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.NetTopology

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.NetTopology

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.NetTopology

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.NetTopology

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.NetTopology

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func TopologyDescription

func TopologyDescription(v string) predicate.NetTopology

TopologyDescription applies equality check predicate on the "topology_description" field. It's identical to TopologyDescriptionEQ.

func TopologyDescriptionContains

func TopologyDescriptionContains(v string) predicate.NetTopology

TopologyDescriptionContains applies the Contains predicate on the "topology_description" field.

func TopologyDescriptionContainsFold

func TopologyDescriptionContainsFold(v string) predicate.NetTopology

TopologyDescriptionContainsFold applies the ContainsFold predicate on the "topology_description" field.

func TopologyDescriptionEQ

func TopologyDescriptionEQ(v string) predicate.NetTopology

TopologyDescriptionEQ applies the EQ predicate on the "topology_description" field.

func TopologyDescriptionEqualFold

func TopologyDescriptionEqualFold(v string) predicate.NetTopology

TopologyDescriptionEqualFold applies the EqualFold predicate on the "topology_description" field.

func TopologyDescriptionGT

func TopologyDescriptionGT(v string) predicate.NetTopology

TopologyDescriptionGT applies the GT predicate on the "topology_description" field.

func TopologyDescriptionGTE

func TopologyDescriptionGTE(v string) predicate.NetTopology

TopologyDescriptionGTE applies the GTE predicate on the "topology_description" field.

func TopologyDescriptionHasPrefix

func TopologyDescriptionHasPrefix(v string) predicate.NetTopology

TopologyDescriptionHasPrefix applies the HasPrefix predicate on the "topology_description" field.

func TopologyDescriptionHasSuffix

func TopologyDescriptionHasSuffix(v string) predicate.NetTopology

TopologyDescriptionHasSuffix applies the HasSuffix predicate on the "topology_description" field.

func TopologyDescriptionIn

func TopologyDescriptionIn(vs ...string) predicate.NetTopology

TopologyDescriptionIn applies the In predicate on the "topology_description" field.

func TopologyDescriptionLT

func TopologyDescriptionLT(v string) predicate.NetTopology

TopologyDescriptionLT applies the LT predicate on the "topology_description" field.

func TopologyDescriptionLTE

func TopologyDescriptionLTE(v string) predicate.NetTopology

TopologyDescriptionLTE applies the LTE predicate on the "topology_description" field.

func TopologyDescriptionNEQ

func TopologyDescriptionNEQ(v string) predicate.NetTopology

TopologyDescriptionNEQ applies the NEQ predicate on the "topology_description" field.

func TopologyDescriptionNotIn

func TopologyDescriptionNotIn(vs ...string) predicate.NetTopology

TopologyDescriptionNotIn applies the NotIn predicate on the "topology_description" field.

func TopologyName

func TopologyName(v string) predicate.NetTopology

TopologyName applies equality check predicate on the "topology_name" field. It's identical to TopologyNameEQ.

func TopologyNameContains

func TopologyNameContains(v string) predicate.NetTopology

TopologyNameContains applies the Contains predicate on the "topology_name" field.

func TopologyNameContainsFold

func TopologyNameContainsFold(v string) predicate.NetTopology

TopologyNameContainsFold applies the ContainsFold predicate on the "topology_name" field.

func TopologyNameEQ

func TopologyNameEQ(v string) predicate.NetTopology

TopologyNameEQ applies the EQ predicate on the "topology_name" field.

func TopologyNameEqualFold

func TopologyNameEqualFold(v string) predicate.NetTopology

TopologyNameEqualFold applies the EqualFold predicate on the "topology_name" field.

func TopologyNameGT

func TopologyNameGT(v string) predicate.NetTopology

TopologyNameGT applies the GT predicate on the "topology_name" field.

func TopologyNameGTE

func TopologyNameGTE(v string) predicate.NetTopology

TopologyNameGTE applies the GTE predicate on the "topology_name" field.

func TopologyNameHasPrefix

func TopologyNameHasPrefix(v string) predicate.NetTopology

TopologyNameHasPrefix applies the HasPrefix predicate on the "topology_name" field.

func TopologyNameHasSuffix

func TopologyNameHasSuffix(v string) predicate.NetTopology

TopologyNameHasSuffix applies the HasSuffix predicate on the "topology_name" field.

func TopologyNameIn

func TopologyNameIn(vs ...string) predicate.NetTopology

TopologyNameIn applies the In predicate on the "topology_name" field.

func TopologyNameLT

func TopologyNameLT(v string) predicate.NetTopology

TopologyNameLT applies the LT predicate on the "topology_name" field.

func TopologyNameLTE

func TopologyNameLTE(v string) predicate.NetTopology

TopologyNameLTE applies the LTE predicate on the "topology_name" field.

func TopologyNameNEQ

func TopologyNameNEQ(v string) predicate.NetTopology

TopologyNameNEQ applies the NEQ predicate on the "topology_name" field.

func TopologyNameNotIn

func TopologyNameNotIn(vs ...string) predicate.NetTopology

TopologyNameNotIn applies the NotIn predicate on the "topology_name" 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