ipaddress

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the ipaddress type in the database.
	Label = "ip_address"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldIP holds the string denoting the ip field in the database.
	FieldIP = "ip"
	// FieldBlockID holds the string denoting the block_id field in the database.
	FieldBlockID = "block_id"
	// FieldNodeID holds the string denoting the node_id field in the database.
	FieldNodeID = "node_id"
	// FieldNodeOwnerID holds the string denoting the node_owner_id field in the database.
	FieldNodeOwnerID = "node_owner_id"
	// FieldReserved holds the string denoting the reserved field in the database.
	FieldReserved = "reserved"
	// EdgeIPBlock holds the string denoting the ip_block edge name in mutations.
	EdgeIPBlock = "ip_block"
	// Table holds the table name of the ipaddress in the database.
	Table = "ip_addresses"
	// IPBlockTable is the table that holds the ip_block relation/edge.
	IPBlockTable = "ip_addresses"
	// IPBlockInverseTable is the table name for the IPBlock entity.
	// It exists in this package in order to avoid circular dependency with the "ipblock" package.
	IPBlockInverseTable = "ip_blocks"
	// IPBlockColumn is the table column denoting the ip_block relation/edge.
	IPBlockColumn = "block_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// IPValidator is a validator for the "IP" field. It is called by the builders before save.
	IPValidator func(string) error
	// DefaultReserved holds the default value on creation for the "reserved" field.
	DefaultReserved bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() gidx.PrefixedID
)

Columns holds all SQL columns for ipaddress fields.

Functions

func And

func And(predicates ...predicate.IPAddress) predicate.IPAddress

And groups predicates with the AND operator between them.

func BlockID

BlockID applies equality check predicate on the "block_id" field. It's identical to BlockIDEQ.

func BlockIDContains

func BlockIDContains(v gidx.PrefixedID) predicate.IPAddress

BlockIDContains applies the Contains predicate on the "block_id" field.

func BlockIDContainsFold

func BlockIDContainsFold(v gidx.PrefixedID) predicate.IPAddress

BlockIDContainsFold applies the ContainsFold predicate on the "block_id" field.

func BlockIDEQ

func BlockIDEQ(v gidx.PrefixedID) predicate.IPAddress

BlockIDEQ applies the EQ predicate on the "block_id" field.

func BlockIDEqualFold

func BlockIDEqualFold(v gidx.PrefixedID) predicate.IPAddress

BlockIDEqualFold applies the EqualFold predicate on the "block_id" field.

func BlockIDGT

func BlockIDGT(v gidx.PrefixedID) predicate.IPAddress

BlockIDGT applies the GT predicate on the "block_id" field.

func BlockIDGTE

func BlockIDGTE(v gidx.PrefixedID) predicate.IPAddress

BlockIDGTE applies the GTE predicate on the "block_id" field.

func BlockIDHasPrefix

func BlockIDHasPrefix(v gidx.PrefixedID) predicate.IPAddress

BlockIDHasPrefix applies the HasPrefix predicate on the "block_id" field.

func BlockIDHasSuffix

func BlockIDHasSuffix(v gidx.PrefixedID) predicate.IPAddress

BlockIDHasSuffix applies the HasSuffix predicate on the "block_id" field.

func BlockIDIn

func BlockIDIn(vs ...gidx.PrefixedID) predicate.IPAddress

BlockIDIn applies the In predicate on the "block_id" field.

func BlockIDLT

func BlockIDLT(v gidx.PrefixedID) predicate.IPAddress

BlockIDLT applies the LT predicate on the "block_id" field.

func BlockIDLTE

func BlockIDLTE(v gidx.PrefixedID) predicate.IPAddress

BlockIDLTE applies the LTE predicate on the "block_id" field.

func BlockIDNEQ

func BlockIDNEQ(v gidx.PrefixedID) predicate.IPAddress

BlockIDNEQ applies the NEQ predicate on the "block_id" field.

func BlockIDNotIn

func BlockIDNotIn(vs ...gidx.PrefixedID) predicate.IPAddress

BlockIDNotIn applies the NotIn predicate on the "block_id" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.IPAddress

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.IPAddress

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.IPAddress

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.IPAddress

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.IPAddress

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.IPAddress

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.IPAddress

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.IPAddress

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.IPAddress

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasIPBlock

func HasIPBlock() predicate.IPAddress

HasIPBlock applies the HasEdge predicate on the "ip_block" edge.

func HasIPBlockWith

func HasIPBlockWith(preds ...predicate.IPBlock) predicate.IPAddress

HasIPBlockWith applies the HasEdge predicate on the "ip_block" 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 ...gidx.PrefixedID) predicate.IPAddress

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 ...gidx.PrefixedID) predicate.IPAddress

IDNotIn applies the NotIn predicate on the ID field.

func IP

IP applies equality check predicate on the "IP" field. It's identical to IPEQ.

func IPContains

func IPContains(v string) predicate.IPAddress

IPContains applies the Contains predicate on the "IP" field.

func IPContainsFold

func IPContainsFold(v string) predicate.IPAddress

IPContainsFold applies the ContainsFold predicate on the "IP" field.

func IPEQ

func IPEQ(v string) predicate.IPAddress

IPEQ applies the EQ predicate on the "IP" field.

func IPEqualFold

func IPEqualFold(v string) predicate.IPAddress

IPEqualFold applies the EqualFold predicate on the "IP" field.

func IPGT

func IPGT(v string) predicate.IPAddress

IPGT applies the GT predicate on the "IP" field.

func IPGTE

func IPGTE(v string) predicate.IPAddress

IPGTE applies the GTE predicate on the "IP" field.

func IPHasPrefix

func IPHasPrefix(v string) predicate.IPAddress

IPHasPrefix applies the HasPrefix predicate on the "IP" field.

func IPHasSuffix

func IPHasSuffix(v string) predicate.IPAddress

IPHasSuffix applies the HasSuffix predicate on the "IP" field.

func IPIn

func IPIn(vs ...string) predicate.IPAddress

IPIn applies the In predicate on the "IP" field.

func IPLT

func IPLT(v string) predicate.IPAddress

IPLT applies the LT predicate on the "IP" field.

func IPLTE

func IPLTE(v string) predicate.IPAddress

IPLTE applies the LTE predicate on the "IP" field.

func IPNEQ

func IPNEQ(v string) predicate.IPAddress

IPNEQ applies the NEQ predicate on the "IP" field.

func IPNotIn

func IPNotIn(vs ...string) predicate.IPAddress

IPNotIn applies the NotIn predicate on the "IP" field.

func NodeID

NodeID applies equality check predicate on the "node_id" field. It's identical to NodeIDEQ.

func NodeIDContains

func NodeIDContains(v gidx.PrefixedID) predicate.IPAddress

NodeIDContains applies the Contains predicate on the "node_id" field.

func NodeIDContainsFold

func NodeIDContainsFold(v gidx.PrefixedID) predicate.IPAddress

NodeIDContainsFold applies the ContainsFold predicate on the "node_id" field.

func NodeIDEQ

func NodeIDEQ(v gidx.PrefixedID) predicate.IPAddress

NodeIDEQ applies the EQ predicate on the "node_id" field.

func NodeIDEqualFold

func NodeIDEqualFold(v gidx.PrefixedID) predicate.IPAddress

NodeIDEqualFold applies the EqualFold predicate on the "node_id" field.

func NodeIDGT

func NodeIDGT(v gidx.PrefixedID) predicate.IPAddress

NodeIDGT applies the GT predicate on the "node_id" field.

func NodeIDGTE

func NodeIDGTE(v gidx.PrefixedID) predicate.IPAddress

NodeIDGTE applies the GTE predicate on the "node_id" field.

func NodeIDHasPrefix

func NodeIDHasPrefix(v gidx.PrefixedID) predicate.IPAddress

NodeIDHasPrefix applies the HasPrefix predicate on the "node_id" field.

func NodeIDHasSuffix

func NodeIDHasSuffix(v gidx.PrefixedID) predicate.IPAddress

NodeIDHasSuffix applies the HasSuffix predicate on the "node_id" field.

func NodeIDIn

func NodeIDIn(vs ...gidx.PrefixedID) predicate.IPAddress

NodeIDIn applies the In predicate on the "node_id" field.

func NodeIDLT

func NodeIDLT(v gidx.PrefixedID) predicate.IPAddress

NodeIDLT applies the LT predicate on the "node_id" field.

func NodeIDLTE

func NodeIDLTE(v gidx.PrefixedID) predicate.IPAddress

NodeIDLTE applies the LTE predicate on the "node_id" field.

func NodeIDNEQ

func NodeIDNEQ(v gidx.PrefixedID) predicate.IPAddress

NodeIDNEQ applies the NEQ predicate on the "node_id" field.

func NodeIDNotIn

func NodeIDNotIn(vs ...gidx.PrefixedID) predicate.IPAddress

NodeIDNotIn applies the NotIn predicate on the "node_id" field.

func NodeOwnerID

func NodeOwnerID(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerID applies equality check predicate on the "node_owner_id" field. It's identical to NodeOwnerIDEQ.

func NodeOwnerIDContains

func NodeOwnerIDContains(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDContains applies the Contains predicate on the "node_owner_id" field.

func NodeOwnerIDContainsFold

func NodeOwnerIDContainsFold(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDContainsFold applies the ContainsFold predicate on the "node_owner_id" field.

func NodeOwnerIDEQ

func NodeOwnerIDEQ(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDEQ applies the EQ predicate on the "node_owner_id" field.

func NodeOwnerIDEqualFold

func NodeOwnerIDEqualFold(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDEqualFold applies the EqualFold predicate on the "node_owner_id" field.

func NodeOwnerIDGT

func NodeOwnerIDGT(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDGT applies the GT predicate on the "node_owner_id" field.

func NodeOwnerIDGTE

func NodeOwnerIDGTE(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDGTE applies the GTE predicate on the "node_owner_id" field.

func NodeOwnerIDHasPrefix

func NodeOwnerIDHasPrefix(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDHasPrefix applies the HasPrefix predicate on the "node_owner_id" field.

func NodeOwnerIDHasSuffix

func NodeOwnerIDHasSuffix(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDHasSuffix applies the HasSuffix predicate on the "node_owner_id" field.

func NodeOwnerIDIn

func NodeOwnerIDIn(vs ...gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDIn applies the In predicate on the "node_owner_id" field.

func NodeOwnerIDLT

func NodeOwnerIDLT(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDLT applies the LT predicate on the "node_owner_id" field.

func NodeOwnerIDLTE

func NodeOwnerIDLTE(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDLTE applies the LTE predicate on the "node_owner_id" field.

func NodeOwnerIDNEQ

func NodeOwnerIDNEQ(v gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDNEQ applies the NEQ predicate on the "node_owner_id" field.

func NodeOwnerIDNotIn

func NodeOwnerIDNotIn(vs ...gidx.PrefixedID) predicate.IPAddress

NodeOwnerIDNotIn applies the NotIn predicate on the "node_owner_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.IPAddress) predicate.IPAddress

Or groups predicates with the OR operator between them.

func Reserved

func Reserved(v bool) predicate.IPAddress

Reserved applies equality check predicate on the "reserved" field. It's identical to ReservedEQ.

func ReservedEQ

func ReservedEQ(v bool) predicate.IPAddress

ReservedEQ applies the EQ predicate on the "reserved" field.

func ReservedNEQ

func ReservedNEQ(v bool) predicate.IPAddress

ReservedNEQ applies the NEQ predicate on the "reserved" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.IPAddress

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.IPAddress

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.IPAddress

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.IPAddress

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.IPAddress

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.IPAddress

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.IPAddress

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.IPAddress

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.IPAddress

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 IPAddress queries.

func ByBlockID

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

ByBlockID orders the results by the block_id field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByIP

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

ByIP orders the results by the IP field.

func ByIPBlockField

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

ByIPBlockField orders the results by ip_block field.

func ByNodeID

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

ByNodeID orders the results by the node_id field.

func ByNodeOwnerID

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

ByNodeOwnerID orders the results by the node_owner_id field.

func ByReserved

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

ByReserved orders the results by the reserved field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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