Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Host) predicate.Host
- func HasActions() predicate.Host
- func HasActionsWith(preds ...predicate.Action) predicate.Host
- func HasBots() predicate.Host
- func HasBotsWith(preds ...predicate.Bot) predicate.Host
- func HasMember() predicate.Host
- func HasMemberWith(preds ...predicate.Group) predicate.Host
- func Hostname(v string) predicate.Host
- func HostnameContains(v string) predicate.Host
- func HostnameContainsFold(v string) predicate.Host
- func HostnameEQ(v string) predicate.Host
- func HostnameEqualFold(v string) predicate.Host
- func HostnameGT(v string) predicate.Host
- func HostnameGTE(v string) predicate.Host
- func HostnameHasPrefix(v string) predicate.Host
- func HostnameHasSuffix(v string) predicate.Host
- func HostnameIn(vs ...string) predicate.Host
- func HostnameLT(v string) predicate.Host
- func HostnameLTE(v string) predicate.Host
- func HostnameNEQ(v string) predicate.Host
- func HostnameNotIn(vs ...string) predicate.Host
- func ID(id int) predicate.Host
- func IDEQ(id int) predicate.Host
- func IDGT(id int) predicate.Host
- func IDGTE(id int) predicate.Host
- func IDIn(ids ...int) predicate.Host
- func IDLT(id int) predicate.Host
- func IDLTE(id int) predicate.Host
- func IDNEQ(id int) predicate.Host
- func IDNotIn(ids ...int) predicate.Host
- func Interface(v string) predicate.Host
- func InterfaceContains(v string) predicate.Host
- func InterfaceContainsFold(v string) predicate.Host
- func InterfaceEQ(v string) predicate.Host
- func InterfaceEqualFold(v string) predicate.Host
- func InterfaceGT(v string) predicate.Host
- func InterfaceGTE(v string) predicate.Host
- func InterfaceHasPrefix(v string) predicate.Host
- func InterfaceHasSuffix(v string) predicate.Host
- func InterfaceIn(vs ...string) predicate.Host
- func InterfaceLT(v string) predicate.Host
- func InterfaceLTE(v string) predicate.Host
- func InterfaceNEQ(v string) predicate.Host
- func InterfaceNotIn(vs ...string) predicate.Host
- func LastSeen(v int) predicate.Host
- func LastSeenEQ(v int) predicate.Host
- func LastSeenGT(v int) predicate.Host
- func LastSeenGTE(v int) predicate.Host
- func LastSeenIn(vs ...int) predicate.Host
- func LastSeenLT(v int) predicate.Host
- func LastSeenLTE(v int) predicate.Host
- func LastSeenNEQ(v int) predicate.Host
- func LastSeenNotIn(vs ...int) predicate.Host
- func Not(p predicate.Host) predicate.Host
- func Or(predicates ...predicate.Host) predicate.Host
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the host type in the database. Label = "host" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldHostname holds the string denoting the hostname field in the database. FieldHostname = "hostname" // FieldInterface holds the string denoting the interface field in the database. FieldInterface = "interface" // FieldLastSeen holds the string denoting the lastseen field in the database. FieldLastSeen = "last_seen" // EdgeBots holds the string denoting the bots edge name in mutations. EdgeBots = "bots" // EdgeActions holds the string denoting the actions edge name in mutations. EdgeActions = "actions" // EdgeMember holds the string denoting the member edge name in mutations. EdgeMember = "member" // Table holds the table name of the host in the database. Table = "hosts" // BotsTable is the table the holds the bots relation/edge. BotsTable = "bots" // BotsInverseTable is the table name for the Bot entity. // It exists in this package in order to avoid circular dependency with the "bot" package. BotsInverseTable = "bots" // BotsColumn is the table column denoting the bots relation/edge. BotsColumn = "host_bots" // ActionsTable is the table the holds the actions relation/edge. ActionsTable = "actions" // ActionsInverseTable is the table name for the Action entity. // It exists in this package in order to avoid circular dependency with the "action" package. ActionsInverseTable = "actions" // ActionsColumn is the table column denoting the actions relation/edge. ActionsColumn = "host_actions" // MemberTable is the table the holds the member relation/edge. The primary key declared below. MemberTable = "group_members" // MemberInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. MemberInverseTable = "groups" )
Variables ¶
var Columns = []string{ FieldID, FieldHostname, FieldInterface, FieldLastSeen, }
Columns holds all SQL columns for host fields.
var ( // DefaultLastSeen holds the default value on creation for the "lastSeen" field. DefaultLastSeen int )
var ( // MemberPrimaryKey and MemberColumn2 are the table columns denoting the // primary key for the member relation (M2M). MemberPrimaryKey = []string{"group_id", "host_id"} )
Functions ¶
func HasActions ¶
HasActions applies the HasEdge predicate on the "actions" edge.
func HasActionsWith ¶
HasActionsWith applies the HasEdge predicate on the "actions" edge with a given conditions (other predicates).
func HasBotsWith ¶
HasBotsWith applies the HasEdge predicate on the "bots" edge with a given conditions (other predicates).
func HasMemberWith ¶
HasMemberWith applies the HasEdge predicate on the "member" edge with a given conditions (other predicates).
func Hostname ¶
Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.
func HostnameContains ¶
HostnameContains applies the Contains predicate on the "hostname" field.
func HostnameContainsFold ¶
HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.
func HostnameEQ ¶
HostnameEQ applies the EQ predicate on the "hostname" field.
func HostnameEqualFold ¶
HostnameEqualFold applies the EqualFold predicate on the "hostname" field.
func HostnameGT ¶
HostnameGT applies the GT predicate on the "hostname" field.
func HostnameGTE ¶
HostnameGTE applies the GTE predicate on the "hostname" field.
func HostnameHasPrefix ¶
HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.
func HostnameHasSuffix ¶
HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.
func HostnameIn ¶
HostnameIn applies the In predicate on the "hostname" field.
func HostnameLT ¶
HostnameLT applies the LT predicate on the "hostname" field.
func HostnameLTE ¶
HostnameLTE applies the LTE predicate on the "hostname" field.
func HostnameNEQ ¶
HostnameNEQ applies the NEQ predicate on the "hostname" field.
func HostnameNotIn ¶
HostnameNotIn applies the NotIn predicate on the "hostname" field.
func Interface ¶
Interface applies equality check predicate on the "interface" field. It's identical to InterfaceEQ.
func InterfaceContains ¶
InterfaceContains applies the Contains predicate on the "interface" field.
func InterfaceContainsFold ¶
InterfaceContainsFold applies the ContainsFold predicate on the "interface" field.
func InterfaceEQ ¶
InterfaceEQ applies the EQ predicate on the "interface" field.
func InterfaceEqualFold ¶
InterfaceEqualFold applies the EqualFold predicate on the "interface" field.
func InterfaceGT ¶
InterfaceGT applies the GT predicate on the "interface" field.
func InterfaceGTE ¶
InterfaceGTE applies the GTE predicate on the "interface" field.
func InterfaceHasPrefix ¶
InterfaceHasPrefix applies the HasPrefix predicate on the "interface" field.
func InterfaceHasSuffix ¶
InterfaceHasSuffix applies the HasSuffix predicate on the "interface" field.
func InterfaceIn ¶
InterfaceIn applies the In predicate on the "interface" field.
func InterfaceLT ¶
InterfaceLT applies the LT predicate on the "interface" field.
func InterfaceLTE ¶
InterfaceLTE applies the LTE predicate on the "interface" field.
func InterfaceNEQ ¶
InterfaceNEQ applies the NEQ predicate on the "interface" field.
func InterfaceNotIn ¶
InterfaceNotIn applies the NotIn predicate on the "interface" field.
func LastSeen ¶
LastSeen applies equality check predicate on the "lastSeen" field. It's identical to LastSeenEQ.
func LastSeenEQ ¶
LastSeenEQ applies the EQ predicate on the "lastSeen" field.
func LastSeenGT ¶
LastSeenGT applies the GT predicate on the "lastSeen" field.
func LastSeenGTE ¶
LastSeenGTE applies the GTE predicate on the "lastSeen" field.
func LastSeenIn ¶
LastSeenIn applies the In predicate on the "lastSeen" field.
func LastSeenLT ¶
LastSeenLT applies the LT predicate on the "lastSeen" field.
func LastSeenLTE ¶
LastSeenLTE applies the LTE predicate on the "lastSeen" field.
func LastSeenNEQ ¶
LastSeenNEQ applies the NEQ predicate on the "lastSeen" field.
func LastSeenNotIn ¶
LastSeenNotIn applies the NotIn predicate on the "lastSeen" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.