Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SystemUpdate) predicate.SystemUpdate
- func HasOwner() predicate.SystemUpdate
- func HasOwnerWith(preds ...predicate.Agent) predicate.SystemUpdate
- func ID(id int) predicate.SystemUpdate
- func IDEQ(id int) predicate.SystemUpdate
- func IDGT(id int) predicate.SystemUpdate
- func IDGTE(id int) predicate.SystemUpdate
- func IDIn(ids ...int) predicate.SystemUpdate
- func IDLT(id int) predicate.SystemUpdate
- func IDLTE(id int) predicate.SystemUpdate
- func IDNEQ(id int) predicate.SystemUpdate
- func IDNotIn(ids ...int) predicate.SystemUpdate
- func LastInstall(v time.Time) predicate.SystemUpdate
- func LastInstallEQ(v time.Time) predicate.SystemUpdate
- func LastInstallGT(v time.Time) predicate.SystemUpdate
- func LastInstallGTE(v time.Time) predicate.SystemUpdate
- func LastInstallIn(vs ...time.Time) predicate.SystemUpdate
- func LastInstallLT(v time.Time) predicate.SystemUpdate
- func LastInstallLTE(v time.Time) predicate.SystemUpdate
- func LastInstallNEQ(v time.Time) predicate.SystemUpdate
- func LastInstallNotIn(vs ...time.Time) predicate.SystemUpdate
- func LastSearch(v time.Time) predicate.SystemUpdate
- func LastSearchEQ(v time.Time) predicate.SystemUpdate
- func LastSearchGT(v time.Time) predicate.SystemUpdate
- func LastSearchGTE(v time.Time) predicate.SystemUpdate
- func LastSearchIn(vs ...time.Time) predicate.SystemUpdate
- func LastSearchLT(v time.Time) predicate.SystemUpdate
- func LastSearchLTE(v time.Time) predicate.SystemUpdate
- func LastSearchNEQ(v time.Time) predicate.SystemUpdate
- func LastSearchNotIn(vs ...time.Time) predicate.SystemUpdate
- func Not(p predicate.SystemUpdate) predicate.SystemUpdate
- func Or(predicates ...predicate.SystemUpdate) predicate.SystemUpdate
- func PendingUpdates(v bool) predicate.SystemUpdate
- func PendingUpdatesEQ(v bool) predicate.SystemUpdate
- func PendingUpdatesNEQ(v bool) predicate.SystemUpdate
- func SystemUpdateStatus(v string) predicate.SystemUpdate
- func SystemUpdateStatusContains(v string) predicate.SystemUpdate
- func SystemUpdateStatusContainsFold(v string) predicate.SystemUpdate
- func SystemUpdateStatusEQ(v string) predicate.SystemUpdate
- func SystemUpdateStatusEqualFold(v string) predicate.SystemUpdate
- func SystemUpdateStatusGT(v string) predicate.SystemUpdate
- func SystemUpdateStatusGTE(v string) predicate.SystemUpdate
- func SystemUpdateStatusHasPrefix(v string) predicate.SystemUpdate
- func SystemUpdateStatusHasSuffix(v string) predicate.SystemUpdate
- func SystemUpdateStatusIn(vs ...string) predicate.SystemUpdate
- func SystemUpdateStatusLT(v string) predicate.SystemUpdate
- func SystemUpdateStatusLTE(v string) predicate.SystemUpdate
- func SystemUpdateStatusNEQ(v string) predicate.SystemUpdate
- func SystemUpdateStatusNotIn(vs ...string) predicate.SystemUpdate
- func ValidColumn(column string) bool
- type OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastInstall(opts ...sql.OrderTermOption) OrderOption
- func ByLastSearch(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPendingUpdates(opts ...sql.OrderTermOption) OrderOption
- func BySystemUpdateStatus(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the systemupdate type in the database. Label = "system_update" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSystemUpdateStatus holds the string denoting the system_update_status field in the database. FieldSystemUpdateStatus = "system_update_status" // FieldLastInstall holds the string denoting the last_install field in the database. FieldLastInstall = "last_install" // FieldLastSearch holds the string denoting the last_search field in the database. FieldLastSearch = "last_search" // FieldPendingUpdates holds the string denoting the pending_updates field in the database. FieldPendingUpdates = "pending_updates" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // AgentFieldID holds the string denoting the ID field of the Agent. AgentFieldID = "oid" // Table holds the table name of the systemupdate in the database. Table = "system_updates" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "system_updates" // OwnerInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. OwnerInverseTable = "agents" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "agent_systemupdate" )
Variables ¶
var Columns = []string{ FieldID, FieldSystemUpdateStatus, FieldLastInstall, FieldLastSearch, FieldPendingUpdates, }
Columns holds all SQL columns for systemupdate fields.
var ForeignKeys = []string{
"agent_systemupdate",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "system_updates" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.SystemUpdate) predicate.SystemUpdate
And groups predicates with the AND operator between them.
func HasOwner ¶
func HasOwner() predicate.SystemUpdate
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Agent) predicate.SystemUpdate
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.SystemUpdate
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.SystemUpdate
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.SystemUpdate
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.SystemUpdate
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.SystemUpdate
IDNotIn applies the NotIn predicate on the ID field.
func LastInstall ¶
func LastInstall(v time.Time) predicate.SystemUpdate
LastInstall applies equality check predicate on the "last_install" field. It's identical to LastInstallEQ.
func LastInstallEQ ¶
func LastInstallEQ(v time.Time) predicate.SystemUpdate
LastInstallEQ applies the EQ predicate on the "last_install" field.
func LastInstallGT ¶
func LastInstallGT(v time.Time) predicate.SystemUpdate
LastInstallGT applies the GT predicate on the "last_install" field.
func LastInstallGTE ¶
func LastInstallGTE(v time.Time) predicate.SystemUpdate
LastInstallGTE applies the GTE predicate on the "last_install" field.
func LastInstallIn ¶
func LastInstallIn(vs ...time.Time) predicate.SystemUpdate
LastInstallIn applies the In predicate on the "last_install" field.
func LastInstallLT ¶
func LastInstallLT(v time.Time) predicate.SystemUpdate
LastInstallLT applies the LT predicate on the "last_install" field.
func LastInstallLTE ¶
func LastInstallLTE(v time.Time) predicate.SystemUpdate
LastInstallLTE applies the LTE predicate on the "last_install" field.
func LastInstallNEQ ¶
func LastInstallNEQ(v time.Time) predicate.SystemUpdate
LastInstallNEQ applies the NEQ predicate on the "last_install" field.
func LastInstallNotIn ¶
func LastInstallNotIn(vs ...time.Time) predicate.SystemUpdate
LastInstallNotIn applies the NotIn predicate on the "last_install" field.
func LastSearch ¶
func LastSearch(v time.Time) predicate.SystemUpdate
LastSearch applies equality check predicate on the "last_search" field. It's identical to LastSearchEQ.
func LastSearchEQ ¶
func LastSearchEQ(v time.Time) predicate.SystemUpdate
LastSearchEQ applies the EQ predicate on the "last_search" field.
func LastSearchGT ¶
func LastSearchGT(v time.Time) predicate.SystemUpdate
LastSearchGT applies the GT predicate on the "last_search" field.
func LastSearchGTE ¶
func LastSearchGTE(v time.Time) predicate.SystemUpdate
LastSearchGTE applies the GTE predicate on the "last_search" field.
func LastSearchIn ¶
func LastSearchIn(vs ...time.Time) predicate.SystemUpdate
LastSearchIn applies the In predicate on the "last_search" field.
func LastSearchLT ¶
func LastSearchLT(v time.Time) predicate.SystemUpdate
LastSearchLT applies the LT predicate on the "last_search" field.
func LastSearchLTE ¶
func LastSearchLTE(v time.Time) predicate.SystemUpdate
LastSearchLTE applies the LTE predicate on the "last_search" field.
func LastSearchNEQ ¶
func LastSearchNEQ(v time.Time) predicate.SystemUpdate
LastSearchNEQ applies the NEQ predicate on the "last_search" field.
func LastSearchNotIn ¶
func LastSearchNotIn(vs ...time.Time) predicate.SystemUpdate
LastSearchNotIn applies the NotIn predicate on the "last_search" field.
func Not ¶
func Not(p predicate.SystemUpdate) predicate.SystemUpdate
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SystemUpdate) predicate.SystemUpdate
Or groups predicates with the OR operator between them.
func PendingUpdates ¶
func PendingUpdates(v bool) predicate.SystemUpdate
PendingUpdates applies equality check predicate on the "pending_updates" field. It's identical to PendingUpdatesEQ.
func PendingUpdatesEQ ¶
func PendingUpdatesEQ(v bool) predicate.SystemUpdate
PendingUpdatesEQ applies the EQ predicate on the "pending_updates" field.
func PendingUpdatesNEQ ¶
func PendingUpdatesNEQ(v bool) predicate.SystemUpdate
PendingUpdatesNEQ applies the NEQ predicate on the "pending_updates" field.
func SystemUpdateStatus ¶
func SystemUpdateStatus(v string) predicate.SystemUpdate
SystemUpdateStatus applies equality check predicate on the "system_update_status" field. It's identical to SystemUpdateStatusEQ.
func SystemUpdateStatusContains ¶
func SystemUpdateStatusContains(v string) predicate.SystemUpdate
SystemUpdateStatusContains applies the Contains predicate on the "system_update_status" field.
func SystemUpdateStatusContainsFold ¶
func SystemUpdateStatusContainsFold(v string) predicate.SystemUpdate
SystemUpdateStatusContainsFold applies the ContainsFold predicate on the "system_update_status" field.
func SystemUpdateStatusEQ ¶
func SystemUpdateStatusEQ(v string) predicate.SystemUpdate
SystemUpdateStatusEQ applies the EQ predicate on the "system_update_status" field.
func SystemUpdateStatusEqualFold ¶
func SystemUpdateStatusEqualFold(v string) predicate.SystemUpdate
SystemUpdateStatusEqualFold applies the EqualFold predicate on the "system_update_status" field.
func SystemUpdateStatusGT ¶
func SystemUpdateStatusGT(v string) predicate.SystemUpdate
SystemUpdateStatusGT applies the GT predicate on the "system_update_status" field.
func SystemUpdateStatusGTE ¶
func SystemUpdateStatusGTE(v string) predicate.SystemUpdate
SystemUpdateStatusGTE applies the GTE predicate on the "system_update_status" field.
func SystemUpdateStatusHasPrefix ¶
func SystemUpdateStatusHasPrefix(v string) predicate.SystemUpdate
SystemUpdateStatusHasPrefix applies the HasPrefix predicate on the "system_update_status" field.
func SystemUpdateStatusHasSuffix ¶
func SystemUpdateStatusHasSuffix(v string) predicate.SystemUpdate
SystemUpdateStatusHasSuffix applies the HasSuffix predicate on the "system_update_status" field.
func SystemUpdateStatusIn ¶
func SystemUpdateStatusIn(vs ...string) predicate.SystemUpdate
SystemUpdateStatusIn applies the In predicate on the "system_update_status" field.
func SystemUpdateStatusLT ¶
func SystemUpdateStatusLT(v string) predicate.SystemUpdate
SystemUpdateStatusLT applies the LT predicate on the "system_update_status" field.
func SystemUpdateStatusLTE ¶
func SystemUpdateStatusLTE(v string) predicate.SystemUpdate
SystemUpdateStatusLTE applies the LTE predicate on the "system_update_status" field.
func SystemUpdateStatusNEQ ¶
func SystemUpdateStatusNEQ(v string) predicate.SystemUpdate
SystemUpdateStatusNEQ applies the NEQ predicate on the "system_update_status" field.
func SystemUpdateStatusNotIn ¶
func SystemUpdateStatusNotIn(vs ...string) predicate.SystemUpdate
SystemUpdateStatusNotIn applies the NotIn predicate on the "system_update_status" 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 SystemUpdate queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastInstall ¶
func ByLastInstall(opts ...sql.OrderTermOption) OrderOption
ByLastInstall orders the results by the last_install field.
func ByLastSearch ¶
func ByLastSearch(opts ...sql.OrderTermOption) OrderOption
ByLastSearch orders the results by the last_search field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByPendingUpdates ¶
func ByPendingUpdates(opts ...sql.OrderTermOption) OrderOption
ByPendingUpdates orders the results by the pending_updates field.
func BySystemUpdateStatus ¶
func BySystemUpdateStatus(opts ...sql.OrderTermOption) OrderOption
BySystemUpdateStatus orders the results by the system_update_status field.