softwareinstalllog

package
v0.0.0-...-d4cf3a4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the softwareinstalllog type in the database.
	Label = "software_install_log"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldAction holds the string denoting the action field in the database.
	FieldAction = "action"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldErrorMessage holds the string denoting the error_message field in the database.
	FieldErrorMessage = "error_message"
	// FieldInstalledVersion holds the string denoting the installed_version field in the database.
	FieldInstalledVersion = "installed_version"
	// FieldStartedAt holds the string denoting the started_at field in the database.
	FieldStartedAt = "started_at"
	// FieldCompletedAt holds the string denoting the completed_at field in the database.
	FieldCompletedAt = "completed_at"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// EdgeAgent holds the string denoting the agent edge name in mutations.
	EdgeAgent = "agent"
	// EdgePackage holds the string denoting the package edge name in mutations.
	EdgePackage = "package"
	// AgentFieldID holds the string denoting the ID field of the Agent.
	AgentFieldID = "oid"
	// Table holds the table name of the softwareinstalllog in the database.
	Table = "software_install_logs"
	// AgentTable is the table that holds the agent relation/edge.
	AgentTable = "software_install_logs"
	// AgentInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	AgentInverseTable = "agents"
	// AgentColumn is the table column denoting the agent relation/edge.
	AgentColumn = "agent_software_install_logs"
	// PackageTable is the table that holds the package relation/edge.
	PackageTable = "software_install_logs"
	// PackageInverseTable is the table name for the ManagedPackage entity.
	// It exists in this package in order to avoid circular dependency with the "managedpackage" package.
	PackageInverseTable = "managed_packages"
	// PackageColumn is the table column denoting the package relation/edge.
	PackageColumn = "managed_package_install_logs"
)

Variables

View Source
var (
	// DefaultErrorMessage holds the default value on creation for the "error_message" field.
	DefaultErrorMessage string
	// DefaultInstalledVersion holds the default value on creation for the "installed_version" field.
	DefaultInstalledVersion string
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
)

Columns holds all SQL columns for softwareinstalllog fields.

View Source
var ForeignKeys = []string{
	"agent_software_install_logs",
	"managed_package_install_logs",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "software_install_logs" table and are not defined as standalone fields in the schema.

Functions

func ActionEQ

ActionEQ applies the EQ predicate on the "action" field.

func ActionIn

func ActionIn(vs ...Action) predicate.SoftwareInstallLog

ActionIn applies the In predicate on the "action" field.

func ActionNEQ

func ActionNEQ(v Action) predicate.SoftwareInstallLog

ActionNEQ applies the NEQ predicate on the "action" field.

func ActionNotIn

func ActionNotIn(vs ...Action) predicate.SoftwareInstallLog

ActionNotIn applies the NotIn predicate on the "action" field.

func ActionValidator

func ActionValidator(a Action) error

ActionValidator is a validator for the "action" field enum values. It is called by the builders before save.

func And

And groups predicates with the AND operator between them.

func CompletedAt

func CompletedAt(v time.Time) predicate.SoftwareInstallLog

CompletedAt applies equality check predicate on the "completed_at" field. It's identical to CompletedAtEQ.

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.SoftwareInstallLog

CompletedAtEQ applies the EQ predicate on the "completed_at" field.

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.SoftwareInstallLog

CompletedAtGT applies the GT predicate on the "completed_at" field.

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.SoftwareInstallLog

CompletedAtGTE applies the GTE predicate on the "completed_at" field.

func CompletedAtIn

func CompletedAtIn(vs ...time.Time) predicate.SoftwareInstallLog

CompletedAtIn applies the In predicate on the "completed_at" field.

func CompletedAtIsNil

func CompletedAtIsNil() predicate.SoftwareInstallLog

CompletedAtIsNil applies the IsNil predicate on the "completed_at" field.

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.SoftwareInstallLog

CompletedAtLT applies the LT predicate on the "completed_at" field.

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.SoftwareInstallLog

CompletedAtLTE applies the LTE predicate on the "completed_at" field.

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.SoftwareInstallLog

CompletedAtNEQ applies the NEQ predicate on the "completed_at" field.

func CompletedAtNotIn

func CompletedAtNotIn(vs ...time.Time) predicate.SoftwareInstallLog

CompletedAtNotIn applies the NotIn predicate on the "completed_at" field.

func CompletedAtNotNil

func CompletedAtNotNil() predicate.SoftwareInstallLog

CompletedAtNotNil applies the NotNil predicate on the "completed_at" field.

func Created

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.SoftwareInstallLog

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

func CreatedIn(vs ...time.Time) predicate.SoftwareInstallLog

CreatedIn applies the In predicate on the "created" field.

func CreatedIsNil

func CreatedIsNil() predicate.SoftwareInstallLog

CreatedIsNil applies the IsNil predicate on the "created" field.

func CreatedLT

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.SoftwareInstallLog

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.SoftwareInstallLog

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

func CreatedNotIn(vs ...time.Time) predicate.SoftwareInstallLog

CreatedNotIn applies the NotIn predicate on the "created" field.

func CreatedNotNil

func CreatedNotNil() predicate.SoftwareInstallLog

CreatedNotNil applies the NotNil predicate on the "created" field.

func ErrorMessage

func ErrorMessage(v string) predicate.SoftwareInstallLog

ErrorMessage applies equality check predicate on the "error_message" field. It's identical to ErrorMessageEQ.

func ErrorMessageContains

func ErrorMessageContains(v string) predicate.SoftwareInstallLog

ErrorMessageContains applies the Contains predicate on the "error_message" field.

func ErrorMessageContainsFold

func ErrorMessageContainsFold(v string) predicate.SoftwareInstallLog

ErrorMessageContainsFold applies the ContainsFold predicate on the "error_message" field.

func ErrorMessageEQ

func ErrorMessageEQ(v string) predicate.SoftwareInstallLog

ErrorMessageEQ applies the EQ predicate on the "error_message" field.

func ErrorMessageEqualFold

func ErrorMessageEqualFold(v string) predicate.SoftwareInstallLog

ErrorMessageEqualFold applies the EqualFold predicate on the "error_message" field.

func ErrorMessageGT

func ErrorMessageGT(v string) predicate.SoftwareInstallLog

ErrorMessageGT applies the GT predicate on the "error_message" field.

func ErrorMessageGTE

func ErrorMessageGTE(v string) predicate.SoftwareInstallLog

ErrorMessageGTE applies the GTE predicate on the "error_message" field.

func ErrorMessageHasPrefix

func ErrorMessageHasPrefix(v string) predicate.SoftwareInstallLog

ErrorMessageHasPrefix applies the HasPrefix predicate on the "error_message" field.

func ErrorMessageHasSuffix

func ErrorMessageHasSuffix(v string) predicate.SoftwareInstallLog

ErrorMessageHasSuffix applies the HasSuffix predicate on the "error_message" field.

func ErrorMessageIn

func ErrorMessageIn(vs ...string) predicate.SoftwareInstallLog

ErrorMessageIn applies the In predicate on the "error_message" field.

func ErrorMessageIsNil

func ErrorMessageIsNil() predicate.SoftwareInstallLog

ErrorMessageIsNil applies the IsNil predicate on the "error_message" field.

func ErrorMessageLT

func ErrorMessageLT(v string) predicate.SoftwareInstallLog

ErrorMessageLT applies the LT predicate on the "error_message" field.

func ErrorMessageLTE

func ErrorMessageLTE(v string) predicate.SoftwareInstallLog

ErrorMessageLTE applies the LTE predicate on the "error_message" field.

func ErrorMessageNEQ

func ErrorMessageNEQ(v string) predicate.SoftwareInstallLog

ErrorMessageNEQ applies the NEQ predicate on the "error_message" field.

func ErrorMessageNotIn

func ErrorMessageNotIn(vs ...string) predicate.SoftwareInstallLog

ErrorMessageNotIn applies the NotIn predicate on the "error_message" field.

func ErrorMessageNotNil

func ErrorMessageNotNil() predicate.SoftwareInstallLog

ErrorMessageNotNil applies the NotNil predicate on the "error_message" field.

func HasAgent

func HasAgent() predicate.SoftwareInstallLog

HasAgent applies the HasEdge predicate on the "agent" edge.

func HasAgentWith

func HasAgentWith(preds ...predicate.Agent) predicate.SoftwareInstallLog

HasAgentWith applies the HasEdge predicate on the "agent" edge with a given conditions (other predicates).

func HasPackage

func HasPackage() predicate.SoftwareInstallLog

HasPackage applies the HasEdge predicate on the "package" edge.

func HasPackageWith

func HasPackageWith(preds ...predicate.ManagedPackage) predicate.SoftwareInstallLog

HasPackageWith applies the HasEdge predicate on the "package" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.SoftwareInstallLog

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.SoftwareInstallLog

IDNotIn applies the NotIn predicate on the ID field.

func InstalledVersion

func InstalledVersion(v string) predicate.SoftwareInstallLog

InstalledVersion applies equality check predicate on the "installed_version" field. It's identical to InstalledVersionEQ.

func InstalledVersionContains

func InstalledVersionContains(v string) predicate.SoftwareInstallLog

InstalledVersionContains applies the Contains predicate on the "installed_version" field.

func InstalledVersionContainsFold

func InstalledVersionContainsFold(v string) predicate.SoftwareInstallLog

InstalledVersionContainsFold applies the ContainsFold predicate on the "installed_version" field.

func InstalledVersionEQ

func InstalledVersionEQ(v string) predicate.SoftwareInstallLog

InstalledVersionEQ applies the EQ predicate on the "installed_version" field.

func InstalledVersionEqualFold

func InstalledVersionEqualFold(v string) predicate.SoftwareInstallLog

InstalledVersionEqualFold applies the EqualFold predicate on the "installed_version" field.

func InstalledVersionGT

func InstalledVersionGT(v string) predicate.SoftwareInstallLog

InstalledVersionGT applies the GT predicate on the "installed_version" field.

func InstalledVersionGTE

func InstalledVersionGTE(v string) predicate.SoftwareInstallLog

InstalledVersionGTE applies the GTE predicate on the "installed_version" field.

func InstalledVersionHasPrefix

func InstalledVersionHasPrefix(v string) predicate.SoftwareInstallLog

InstalledVersionHasPrefix applies the HasPrefix predicate on the "installed_version" field.

func InstalledVersionHasSuffix

func InstalledVersionHasSuffix(v string) predicate.SoftwareInstallLog

InstalledVersionHasSuffix applies the HasSuffix predicate on the "installed_version" field.

func InstalledVersionIn

func InstalledVersionIn(vs ...string) predicate.SoftwareInstallLog

InstalledVersionIn applies the In predicate on the "installed_version" field.

func InstalledVersionIsNil

func InstalledVersionIsNil() predicate.SoftwareInstallLog

InstalledVersionIsNil applies the IsNil predicate on the "installed_version" field.

func InstalledVersionLT

func InstalledVersionLT(v string) predicate.SoftwareInstallLog

InstalledVersionLT applies the LT predicate on the "installed_version" field.

func InstalledVersionLTE

func InstalledVersionLTE(v string) predicate.SoftwareInstallLog

InstalledVersionLTE applies the LTE predicate on the "installed_version" field.

func InstalledVersionNEQ

func InstalledVersionNEQ(v string) predicate.SoftwareInstallLog

InstalledVersionNEQ applies the NEQ predicate on the "installed_version" field.

func InstalledVersionNotIn

func InstalledVersionNotIn(vs ...string) predicate.SoftwareInstallLog

InstalledVersionNotIn applies the NotIn predicate on the "installed_version" field.

func InstalledVersionNotNil

func InstalledVersionNotNil() predicate.SoftwareInstallLog

InstalledVersionNotNil applies the NotNil predicate on the "installed_version" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func StartedAt

StartedAt applies equality check predicate on the "started_at" field. It's identical to StartedAtEQ.

func StartedAtEQ

func StartedAtEQ(v time.Time) predicate.SoftwareInstallLog

StartedAtEQ applies the EQ predicate on the "started_at" field.

func StartedAtGT

func StartedAtGT(v time.Time) predicate.SoftwareInstallLog

StartedAtGT applies the GT predicate on the "started_at" field.

func StartedAtGTE

func StartedAtGTE(v time.Time) predicate.SoftwareInstallLog

StartedAtGTE applies the GTE predicate on the "started_at" field.

func StartedAtIn

func StartedAtIn(vs ...time.Time) predicate.SoftwareInstallLog

StartedAtIn applies the In predicate on the "started_at" field.

func StartedAtIsNil

func StartedAtIsNil() predicate.SoftwareInstallLog

StartedAtIsNil applies the IsNil predicate on the "started_at" field.

func StartedAtLT

func StartedAtLT(v time.Time) predicate.SoftwareInstallLog

StartedAtLT applies the LT predicate on the "started_at" field.

func StartedAtLTE

func StartedAtLTE(v time.Time) predicate.SoftwareInstallLog

StartedAtLTE applies the LTE predicate on the "started_at" field.

func StartedAtNEQ

func StartedAtNEQ(v time.Time) predicate.SoftwareInstallLog

StartedAtNEQ applies the NEQ predicate on the "started_at" field.

func StartedAtNotIn

func StartedAtNotIn(vs ...time.Time) predicate.SoftwareInstallLog

StartedAtNotIn applies the NotIn predicate on the "started_at" field.

func StartedAtNotNil

func StartedAtNotNil() predicate.SoftwareInstallLog

StartedAtNotNil applies the NotNil predicate on the "started_at" field.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.SoftwareInstallLog

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.SoftwareInstallLog

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.SoftwareInstallLog

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Action

type Action string

Action defines the type for the "action" enum field.

const (
	ActionInstall   Action = "install"
	ActionUpdate    Action = "update"
	ActionUninstall Action = "uninstall"
)

Action values.

func (Action) String

func (a Action) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the SoftwareInstallLog queries.

func ByAction

func ByAction(opts ...sql.OrderTermOption) OrderOption

ByAction orders the results by the action field.

func ByAgentField

func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption

ByAgentField orders the results by agent field.

func ByCompletedAt

func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption

ByCompletedAt orders the results by the completed_at field.

func ByCreated

func ByCreated(opts ...sql.OrderTermOption) OrderOption

ByCreated orders the results by the created field.

func ByErrorMessage

func ByErrorMessage(opts ...sql.OrderTermOption) OrderOption

ByErrorMessage orders the results by the error_message field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInstalledVersion

func ByInstalledVersion(opts ...sql.OrderTermOption) OrderOption

ByInstalledVersion orders the results by the installed_version field.

func ByPackageField

func ByPackageField(field string, opts ...sql.OrderTermOption) OrderOption

ByPackageField orders the results by package field.

func ByStartedAt

func ByStartedAt(opts ...sql.OrderTermOption) OrderOption

ByStartedAt orders the results by the started_at field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusPending     Status = "pending"
	StatusDownloading Status = "downloading"
	StatusInstalling  Status = "installing"
	StatusSuccess     Status = "success"
	StatusFailed      Status = "failed"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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