Documentation
¶
Index ¶
- Constants
- Variables
- func AddrsIsNil() predicate.Network
- func AddrsNotNil() predicate.Network
- func And(predicates ...predicate.Network) predicate.Network
- func CreatedAt(v time.Time) predicate.Network
- func CreatedAtEQ(v time.Time) predicate.Network
- func CreatedAtGT(v time.Time) predicate.Network
- func CreatedAtGTE(v time.Time) predicate.Network
- func CreatedAtIn(vs ...time.Time) predicate.Network
- func CreatedAtLT(v time.Time) predicate.Network
- func CreatedAtLTE(v time.Time) predicate.Network
- func CreatedAtNEQ(v time.Time) predicate.Network
- func CreatedAtNotIn(vs ...time.Time) predicate.Network
- func FlagsIsNil() predicate.Network
- func FlagsNotNil() predicate.Network
- func HardwareAddr(v string) predicate.Network
- func HardwareAddrContains(v string) predicate.Network
- func HardwareAddrContainsFold(v string) predicate.Network
- func HardwareAddrEQ(v string) predicate.Network
- func HardwareAddrEqualFold(v string) predicate.Network
- func HardwareAddrGT(v string) predicate.Network
- func HardwareAddrGTE(v string) predicate.Network
- func HardwareAddrHasPrefix(v string) predicate.Network
- func HardwareAddrHasSuffix(v string) predicate.Network
- func HardwareAddrIn(vs ...string) predicate.Network
- func HardwareAddrLT(v string) predicate.Network
- func HardwareAddrLTE(v string) predicate.Network
- func HardwareAddrNEQ(v string) predicate.Network
- func HardwareAddrNotIn(vs ...string) predicate.Network
- func HasHostID() predicate.Network
- func HasHostIDWith(preds ...predicate.Host) predicate.Network
- func ID(id int) predicate.Network
- func IDEQ(id int) predicate.Network
- func IDGT(id int) predicate.Network
- func IDGTE(id int) predicate.Network
- func IDIn(ids ...int) predicate.Network
- func IDLT(id int) predicate.Network
- func IDLTE(id int) predicate.Network
- func IDNEQ(id int) predicate.Network
- func IDNotIn(ids ...int) predicate.Network
- func Index(v int) predicate.Network
- func IndexEQ(v int) predicate.Network
- func IndexGT(v int) predicate.Network
- func IndexGTE(v int) predicate.Network
- func IndexIn(vs ...int) predicate.Network
- func IndexLT(v int) predicate.Network
- func IndexLTE(v int) predicate.Network
- func IndexNEQ(v int) predicate.Network
- func IndexNotIn(vs ...int) predicate.Network
- func MTU(v int) predicate.Network
- func MTUEQ(v int) predicate.Network
- func MTUGT(v int) predicate.Network
- func MTUGTE(v int) predicate.Network
- func MTUIn(vs ...int) predicate.Network
- func MTULT(v int) predicate.Network
- func MTULTE(v int) predicate.Network
- func MTUNEQ(v int) predicate.Network
- func MTUNotIn(vs ...int) predicate.Network
- func Name(v string) predicate.Network
- func NameContains(v string) predicate.Network
- func NameContainsFold(v string) predicate.Network
- func NameEQ(v string) predicate.Network
- func NameEqualFold(v string) predicate.Network
- func NameGT(v string) predicate.Network
- func NameGTE(v string) predicate.Network
- func NameHasPrefix(v string) predicate.Network
- func NameHasSuffix(v string) predicate.Network
- func NameIn(vs ...string) predicate.Network
- func NameLT(v string) predicate.Network
- func NameLTE(v string) predicate.Network
- func NameNEQ(v string) predicate.Network
- func NameNotIn(vs ...string) predicate.Network
- func Not(p predicate.Network) predicate.Network
- func Or(predicates ...predicate.Network) predicate.Network
- func UpdatedAt(v time.Time) predicate.Network
- func UpdatedAtEQ(v time.Time) predicate.Network
- func UpdatedAtGT(v time.Time) predicate.Network
- func UpdatedAtGTE(v time.Time) predicate.Network
- func UpdatedAtIn(vs ...time.Time) predicate.Network
- func UpdatedAtLT(v time.Time) predicate.Network
- func UpdatedAtLTE(v time.Time) predicate.Network
- func UpdatedAtNEQ(v time.Time) predicate.Network
- func UpdatedAtNotIn(vs ...time.Time) predicate.Network
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the network type in the database. Label = "network" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldIndex holds the string denoting the index field in the database. FieldIndex = "idx" // FieldMTU holds the string denoting the mtu field in the database. FieldMTU = "mtu" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldHardwareAddr holds the string denoting the hardwareaddr field in the database. FieldHardwareAddr = "mac" // FieldFlags holds the string denoting the flags field in the database. FieldFlags = "flags" // FieldAddrs holds the string denoting the addrs field in the database. FieldAddrs = "addrs" // 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" // EdgeHostID holds the string denoting the host_id edge name in mutations. EdgeHostID = "host_id" // Table holds the table name of the network in the database. Table = "networks" // HostIDTable is the table that holds the host_id relation/edge. HostIDTable = "networks" // HostIDInverseTable is the table name for the Host entity. // It exists in this package in order to avoid circular dependency with the "host" package. HostIDInverseTable = "hosts" // HostIDColumn is the table column denoting the host_id relation/edge. HostIDColumn = "host_network" )
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 )
var Columns = []string{ FieldID, FieldIndex, FieldMTU, FieldName, FieldHardwareAddr, FieldFlags, FieldAddrs, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for network fields.
var ForeignKeys = []string{
"host_network",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "networks" table and are not defined as standalone fields in the schema.
Functions ¶
func AddrsIsNil ¶
AddrsIsNil applies the IsNil predicate on the "addrs" field.
func AddrsNotNil ¶
AddrsNotNil applies the NotNil predicate on the "addrs" 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 FlagsIsNil ¶
FlagsIsNil applies the IsNil predicate on the "Flags" field.
func FlagsNotNil ¶
FlagsNotNil applies the NotNil predicate on the "Flags" field.
func HardwareAddr ¶
HardwareAddr applies equality check predicate on the "HardwareAddr" field. It's identical to HardwareAddrEQ.
func HardwareAddrContains ¶
HardwareAddrContains applies the Contains predicate on the "HardwareAddr" field.
func HardwareAddrContainsFold ¶
HardwareAddrContainsFold applies the ContainsFold predicate on the "HardwareAddr" field.
func HardwareAddrEQ ¶
HardwareAddrEQ applies the EQ predicate on the "HardwareAddr" field.
func HardwareAddrEqualFold ¶
HardwareAddrEqualFold applies the EqualFold predicate on the "HardwareAddr" field.
func HardwareAddrGT ¶
HardwareAddrGT applies the GT predicate on the "HardwareAddr" field.
func HardwareAddrGTE ¶
HardwareAddrGTE applies the GTE predicate on the "HardwareAddr" field.
func HardwareAddrHasPrefix ¶
HardwareAddrHasPrefix applies the HasPrefix predicate on the "HardwareAddr" field.
func HardwareAddrHasSuffix ¶
HardwareAddrHasSuffix applies the HasSuffix predicate on the "HardwareAddr" field.
func HardwareAddrIn ¶
HardwareAddrIn applies the In predicate on the "HardwareAddr" field.
func HardwareAddrLT ¶
HardwareAddrLT applies the LT predicate on the "HardwareAddr" field.
func HardwareAddrLTE ¶
HardwareAddrLTE applies the LTE predicate on the "HardwareAddr" field.
func HardwareAddrNEQ ¶
HardwareAddrNEQ applies the NEQ predicate on the "HardwareAddr" field.
func HardwareAddrNotIn ¶
HardwareAddrNotIn applies the NotIn predicate on the "HardwareAddr" field.
func HasHostIDWith ¶
HasHostIDWith applies the HasEdge predicate on the "host_id" edge with a given conditions (other predicates).
func Index ¶
Index applies equality check predicate on the "Index" field. It's identical to IndexEQ.
func IndexNotIn ¶
IndexNotIn applies the NotIn predicate on the "Index" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" 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 ¶
This section is empty.