ixprefix

package
v1.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the ixprefix type in the database.
	Label = "ix_prefix"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldIxlanID holds the string denoting the ixlan_id field in the database.
	FieldIxlanID = "ixlan_id"
	// FieldInDfz holds the string denoting the in_dfz field in the database.
	FieldInDfz = "in_dfz"
	// FieldPrefix holds the string denoting the prefix field in the database.
	FieldPrefix = "prefix"
	// FieldProtocol holds the string denoting the protocol field in the database.
	FieldProtocol = "protocol"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldUpdated holds the string denoting the updated field in the database.
	FieldUpdated = "updated"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// EdgeIxLan holds the string denoting the ix_lan edge name in mutations.
	EdgeIxLan = "ix_lan"
	// Table holds the table name of the ixprefix in the database.
	Table = "ix_prefixes"
	// IxLanTable is the table that holds the ix_lan relation/edge.
	IxLanTable = "ix_prefixes"
	// IxLanInverseTable is the table name for the IxLan entity.
	// It exists in this package in order to avoid circular dependency with the "ixlan" package.
	IxLanInverseTable = "ix_lans"
	// IxLanColumn is the table column denoting the ix_lan relation/edge.
	IxLanColumn = "ixlan_id"
)

Variables

View Source
var (
	// DefaultInDfz holds the default value on creation for the "in_dfz" field.
	DefaultInDfz bool
	// PrefixValidator is a validator for the "prefix" field. It is called by the builders before save.
	PrefixValidator func(string) error
	// DefaultProtocol holds the default value on creation for the "protocol" field.
	DefaultProtocol string
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus string
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(int) error
)

Columns holds all SQL columns for ixprefix fields.

Functions

func And

func And(predicates ...predicate.IxPrefix) predicate.IxPrefix

And groups predicates with the AND operator between them.

func Created

func Created(v time.Time) predicate.IxPrefix

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.IxPrefix

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.IxPrefix

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.IxPrefix

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.IxPrefix

CreatedIn applies the In predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.IxPrefix

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.IxPrefix

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.IxPrefix

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.IxPrefix

CreatedNotIn applies the NotIn predicate on the "created" field.

func HasIxLan

func HasIxLan() predicate.IxPrefix

HasIxLan applies the HasEdge predicate on the "ix_lan" edge.

func HasIxLanWith

func HasIxLanWith(preds ...predicate.IxLan) predicate.IxPrefix

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

func ID

func ID(id int) predicate.IxPrefix

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.IxPrefix

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.IxPrefix

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.IxPrefix

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.IxPrefix

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.IxPrefix

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.IxPrefix

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InDfz

func InDfz(v bool) predicate.IxPrefix

InDfz applies equality check predicate on the "in_dfz" field. It's identical to InDfzEQ.

func InDfzEQ

func InDfzEQ(v bool) predicate.IxPrefix

InDfzEQ applies the EQ predicate on the "in_dfz" field.

func InDfzNEQ

func InDfzNEQ(v bool) predicate.IxPrefix

InDfzNEQ applies the NEQ predicate on the "in_dfz" field.

func IxlanID

func IxlanID(v int) predicate.IxPrefix

IxlanID applies equality check predicate on the "ixlan_id" field. It's identical to IxlanIDEQ.

func IxlanIDEQ

func IxlanIDEQ(v int) predicate.IxPrefix

IxlanIDEQ applies the EQ predicate on the "ixlan_id" field.

func IxlanIDIn

func IxlanIDIn(vs ...int) predicate.IxPrefix

IxlanIDIn applies the In predicate on the "ixlan_id" field.

func IxlanIDIsNil

func IxlanIDIsNil() predicate.IxPrefix

IxlanIDIsNil applies the IsNil predicate on the "ixlan_id" field.

func IxlanIDNEQ

func IxlanIDNEQ(v int) predicate.IxPrefix

IxlanIDNEQ applies the NEQ predicate on the "ixlan_id" field.

func IxlanIDNotIn

func IxlanIDNotIn(vs ...int) predicate.IxPrefix

IxlanIDNotIn applies the NotIn predicate on the "ixlan_id" field.

func IxlanIDNotNil

func IxlanIDNotNil() predicate.IxPrefix

IxlanIDNotNil applies the NotNil predicate on the "ixlan_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.IxPrefix) predicate.IxPrefix

Or groups predicates with the OR operator between them.

func Prefix

func Prefix(v string) predicate.IxPrefix

Prefix applies equality check predicate on the "prefix" field. It's identical to PrefixEQ.

func PrefixContains

func PrefixContains(v string) predicate.IxPrefix

PrefixContains applies the Contains predicate on the "prefix" field.

func PrefixContainsFold

func PrefixContainsFold(v string) predicate.IxPrefix

PrefixContainsFold applies the ContainsFold predicate on the "prefix" field.

func PrefixEQ

func PrefixEQ(v string) predicate.IxPrefix

PrefixEQ applies the EQ predicate on the "prefix" field.

func PrefixEqualFold

func PrefixEqualFold(v string) predicate.IxPrefix

PrefixEqualFold applies the EqualFold predicate on the "prefix" field.

func PrefixGT

func PrefixGT(v string) predicate.IxPrefix

PrefixGT applies the GT predicate on the "prefix" field.

func PrefixGTE

func PrefixGTE(v string) predicate.IxPrefix

PrefixGTE applies the GTE predicate on the "prefix" field.

func PrefixHasPrefix

func PrefixHasPrefix(v string) predicate.IxPrefix

PrefixHasPrefix applies the HasPrefix predicate on the "prefix" field.

func PrefixHasSuffix

func PrefixHasSuffix(v string) predicate.IxPrefix

PrefixHasSuffix applies the HasSuffix predicate on the "prefix" field.

func PrefixIn

func PrefixIn(vs ...string) predicate.IxPrefix

PrefixIn applies the In predicate on the "prefix" field.

func PrefixLT

func PrefixLT(v string) predicate.IxPrefix

PrefixLT applies the LT predicate on the "prefix" field.

func PrefixLTE

func PrefixLTE(v string) predicate.IxPrefix

PrefixLTE applies the LTE predicate on the "prefix" field.

func PrefixNEQ

func PrefixNEQ(v string) predicate.IxPrefix

PrefixNEQ applies the NEQ predicate on the "prefix" field.

func PrefixNotIn

func PrefixNotIn(vs ...string) predicate.IxPrefix

PrefixNotIn applies the NotIn predicate on the "prefix" field.

func Protocol

func Protocol(v string) predicate.IxPrefix

Protocol applies equality check predicate on the "protocol" field. It's identical to ProtocolEQ.

func ProtocolContains

func ProtocolContains(v string) predicate.IxPrefix

ProtocolContains applies the Contains predicate on the "protocol" field.

func ProtocolContainsFold

func ProtocolContainsFold(v string) predicate.IxPrefix

ProtocolContainsFold applies the ContainsFold predicate on the "protocol" field.

func ProtocolEQ

func ProtocolEQ(v string) predicate.IxPrefix

ProtocolEQ applies the EQ predicate on the "protocol" field.

func ProtocolEqualFold

func ProtocolEqualFold(v string) predicate.IxPrefix

ProtocolEqualFold applies the EqualFold predicate on the "protocol" field.

func ProtocolGT

func ProtocolGT(v string) predicate.IxPrefix

ProtocolGT applies the GT predicate on the "protocol" field.

func ProtocolGTE

func ProtocolGTE(v string) predicate.IxPrefix

ProtocolGTE applies the GTE predicate on the "protocol" field.

func ProtocolHasPrefix

func ProtocolHasPrefix(v string) predicate.IxPrefix

ProtocolHasPrefix applies the HasPrefix predicate on the "protocol" field.

func ProtocolHasSuffix

func ProtocolHasSuffix(v string) predicate.IxPrefix

ProtocolHasSuffix applies the HasSuffix predicate on the "protocol" field.

func ProtocolIn

func ProtocolIn(vs ...string) predicate.IxPrefix

ProtocolIn applies the In predicate on the "protocol" field.

func ProtocolIsNil added in v1.4.0

func ProtocolIsNil() predicate.IxPrefix

ProtocolIsNil applies the IsNil predicate on the "protocol" field.

func ProtocolLT

func ProtocolLT(v string) predicate.IxPrefix

ProtocolLT applies the LT predicate on the "protocol" field.

func ProtocolLTE

func ProtocolLTE(v string) predicate.IxPrefix

ProtocolLTE applies the LTE predicate on the "protocol" field.

func ProtocolNEQ

func ProtocolNEQ(v string) predicate.IxPrefix

ProtocolNEQ applies the NEQ predicate on the "protocol" field.

func ProtocolNotIn

func ProtocolNotIn(vs ...string) predicate.IxPrefix

ProtocolNotIn applies the NotIn predicate on the "protocol" field.

func ProtocolNotNil added in v1.4.0

func ProtocolNotNil() predicate.IxPrefix

ProtocolNotNil applies the NotNil predicate on the "protocol" field.

func Status

func Status(v string) predicate.IxPrefix

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.IxPrefix

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.IxPrefix

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.IxPrefix

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.IxPrefix

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.IxPrefix

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.IxPrefix

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.IxPrefix

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.IxPrefix

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.IxPrefix

StatusIn applies the In predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.IxPrefix

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.IxPrefix

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.IxPrefix

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.IxPrefix

StatusNotIn applies the NotIn predicate on the "status" field.

func Updated

func Updated(v time.Time) predicate.IxPrefix

Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.

func UpdatedEQ

func UpdatedEQ(v time.Time) predicate.IxPrefix

UpdatedEQ applies the EQ predicate on the "updated" field.

func UpdatedGT

func UpdatedGT(v time.Time) predicate.IxPrefix

UpdatedGT applies the GT predicate on the "updated" field.

func UpdatedGTE

func UpdatedGTE(v time.Time) predicate.IxPrefix

UpdatedGTE applies the GTE predicate on the "updated" field.

func UpdatedIn

func UpdatedIn(vs ...time.Time) predicate.IxPrefix

UpdatedIn applies the In predicate on the "updated" field.

func UpdatedLT

func UpdatedLT(v time.Time) predicate.IxPrefix

UpdatedLT applies the LT predicate on the "updated" field.

func UpdatedLTE

func UpdatedLTE(v time.Time) predicate.IxPrefix

UpdatedLTE applies the LTE predicate on the "updated" field.

func UpdatedNEQ

func UpdatedNEQ(v time.Time) predicate.IxPrefix

UpdatedNEQ applies the NEQ predicate on the "updated" field.

func UpdatedNotIn

func UpdatedNotIn(vs ...time.Time) predicate.IxPrefix

UpdatedNotIn applies the NotIn predicate on the "updated" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the IxPrefix queries.

func ByCreated

func ByCreated(opts ...sql.OrderTermOption) OrderOption

ByCreated orders the results by the created field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInDfz

func ByInDfz(opts ...sql.OrderTermOption) OrderOption

ByInDfz orders the results by the in_dfz field.

func ByIxLanField

func ByIxLanField(field string, opts ...sql.OrderTermOption) OrderOption

ByIxLanField orders the results by ix_lan field.

func ByIxlanID

func ByIxlanID(opts ...sql.OrderTermOption) OrderOption

ByIxlanID orders the results by the ixlan_id field.

func ByPrefix

func ByPrefix(opts ...sql.OrderTermOption) OrderOption

ByPrefix orders the results by the prefix field.

func ByProtocol

func ByProtocol(opts ...sql.OrderTermOption) OrderOption

ByProtocol orders the results by the protocol field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByUpdated

func ByUpdated(opts ...sql.OrderTermOption) OrderOption

ByUpdated orders the results by the updated field.

Jump to

Keyboard shortcuts

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