systemupdate

package
v0.0.0-...-65a4bde Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for systemupdate fields.

View Source
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 ID

func ID(id int) predicate.SystemUpdate

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.SystemUpdate

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.SystemUpdate

IDGT applies the GT predicate on the ID field.

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 IDLT

func IDLT(id int) predicate.SystemUpdate

IDLT applies the LT 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

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

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 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.

Jump to

Keyboard shortcuts

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