Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.IPAddress) predicate.IPAddress
- func BlockID(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDContains(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDContainsFold(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDEQ(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDEqualFold(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDGT(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDGTE(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDHasPrefix(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDHasSuffix(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDIn(vs ...gidx.PrefixedID) predicate.IPAddress
- func BlockIDLT(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDLTE(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDNEQ(v gidx.PrefixedID) predicate.IPAddress
- func BlockIDNotIn(vs ...gidx.PrefixedID) predicate.IPAddress
- func CreatedAt(v time.Time) predicate.IPAddress
- func CreatedAtEQ(v time.Time) predicate.IPAddress
- func CreatedAtGT(v time.Time) predicate.IPAddress
- func CreatedAtGTE(v time.Time) predicate.IPAddress
- func CreatedAtIn(vs ...time.Time) predicate.IPAddress
- func CreatedAtLT(v time.Time) predicate.IPAddress
- func CreatedAtLTE(v time.Time) predicate.IPAddress
- func CreatedAtNEQ(v time.Time) predicate.IPAddress
- func CreatedAtNotIn(vs ...time.Time) predicate.IPAddress
- func HasIPBlock() predicate.IPAddress
- func HasIPBlockWith(preds ...predicate.IPBlock) predicate.IPAddress
- func ID(id gidx.PrefixedID) predicate.IPAddress
- func IDEQ(id gidx.PrefixedID) predicate.IPAddress
- func IDGT(id gidx.PrefixedID) predicate.IPAddress
- func IDGTE(id gidx.PrefixedID) predicate.IPAddress
- func IDIn(ids ...gidx.PrefixedID) predicate.IPAddress
- func IDLT(id gidx.PrefixedID) predicate.IPAddress
- func IDLTE(id gidx.PrefixedID) predicate.IPAddress
- func IDNEQ(id gidx.PrefixedID) predicate.IPAddress
- func IDNotIn(ids ...gidx.PrefixedID) predicate.IPAddress
- func IP(v string) predicate.IPAddress
- func IPContains(v string) predicate.IPAddress
- func IPContainsFold(v string) predicate.IPAddress
- func IPEQ(v string) predicate.IPAddress
- func IPEqualFold(v string) predicate.IPAddress
- func IPGT(v string) predicate.IPAddress
- func IPGTE(v string) predicate.IPAddress
- func IPHasPrefix(v string) predicate.IPAddress
- func IPHasSuffix(v string) predicate.IPAddress
- func IPIn(vs ...string) predicate.IPAddress
- func IPLT(v string) predicate.IPAddress
- func IPLTE(v string) predicate.IPAddress
- func IPNEQ(v string) predicate.IPAddress
- func IPNotIn(vs ...string) predicate.IPAddress
- func NodeID(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDContains(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDContainsFold(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDEQ(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDEqualFold(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDGT(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDGTE(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDHasPrefix(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDHasSuffix(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDIn(vs ...gidx.PrefixedID) predicate.IPAddress
- func NodeIDLT(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDLTE(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDNEQ(v gidx.PrefixedID) predicate.IPAddress
- func NodeIDNotIn(vs ...gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerID(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDContains(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDContainsFold(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDEQ(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDEqualFold(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDGT(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDGTE(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDHasPrefix(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDHasSuffix(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDIn(vs ...gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDLT(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDLTE(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDNEQ(v gidx.PrefixedID) predicate.IPAddress
- func NodeOwnerIDNotIn(vs ...gidx.PrefixedID) predicate.IPAddress
- func Not(p predicate.IPAddress) predicate.IPAddress
- func Or(predicates ...predicate.IPAddress) predicate.IPAddress
- func Reserved(v bool) predicate.IPAddress
- func ReservedEQ(v bool) predicate.IPAddress
- func ReservedNEQ(v bool) predicate.IPAddress
- func UpdatedAt(v time.Time) predicate.IPAddress
- func UpdatedAtEQ(v time.Time) predicate.IPAddress
- func UpdatedAtGT(v time.Time) predicate.IPAddress
- func UpdatedAtGTE(v time.Time) predicate.IPAddress
- func UpdatedAtIn(vs ...time.Time) predicate.IPAddress
- func UpdatedAtLT(v time.Time) predicate.IPAddress
- func UpdatedAtLTE(v time.Time) predicate.IPAddress
- func UpdatedAtNEQ(v time.Time) predicate.IPAddress
- func UpdatedAtNotIn(vs ...time.Time) predicate.IPAddress
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlockID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIP(opts ...sql.OrderTermOption) OrderOption
- func ByIPBlockField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNodeID(opts ...sql.OrderTermOption) OrderOption
- func ByNodeOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByReserved(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldIP, FieldBlockID, FieldNodeID, FieldNodeOwnerID, FieldReserved, }
Columns holds all SQL columns for ipaddress fields.
Functions ¶
func BlockID ¶
func BlockID(v gidx.PrefixedID) predicate.IPAddress
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 ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasIPBlock ¶
HasIPBlock applies the HasEdge predicate on the "ip_block" edge.
func HasIPBlockWith ¶
HasIPBlockWith applies the HasEdge predicate on the "ip_block" edge with a given conditions (other predicates).
func ID ¶
func ID(id gidx.PrefixedID) predicate.IPAddress
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id gidx.PrefixedID) predicate.IPAddress
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id gidx.PrefixedID) predicate.IPAddress
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id gidx.PrefixedID) predicate.IPAddress
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 ¶
func IDLT(id gidx.PrefixedID) predicate.IPAddress
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id gidx.PrefixedID) predicate.IPAddress
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id gidx.PrefixedID) predicate.IPAddress
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 IPContains ¶
IPContains applies the Contains predicate on the "IP" field.
func IPContainsFold ¶
IPContainsFold applies the ContainsFold predicate on the "IP" field.
func IPEqualFold ¶
IPEqualFold applies the EqualFold predicate on the "IP" field.
func IPHasPrefix ¶
IPHasPrefix applies the HasPrefix predicate on the "IP" field.
func IPHasSuffix ¶
IPHasSuffix applies the HasSuffix predicate on the "IP" field.
func NodeID ¶
func NodeID(v gidx.PrefixedID) predicate.IPAddress
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 Reserved ¶
Reserved applies equality check predicate on the "reserved" field. It's identical to ReservedEQ.
func ReservedEQ ¶
ReservedEQ applies the EQ predicate on the "reserved" field.
func ReservedNEQ ¶
ReservedNEQ applies the NEQ predicate on the "reserved" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.