app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the app type in the database.
	Label = "app"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldPublisher holds the string denoting the publisher field in the database.
	FieldPublisher = "publisher"
	// FieldInstallDate holds the string denoting the install_date field in the database.
	FieldInstallDate = "install_date"
	// 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 app in the database.
	Table = "apps"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "apps"
	// 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_apps"
)

Variables

Columns holds all SQL columns for app fields.

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

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

Functions

func And

func And(predicates ...predicate.App) predicate.App

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.App

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Agent) predicate.App

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

func ID

func ID(id int) predicate.App

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.App

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.App

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.App

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.App

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.App

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.App

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InstallDate

func InstallDate(v string) predicate.App

InstallDate applies equality check predicate on the "install_date" field. It's identical to InstallDateEQ.

func InstallDateContains

func InstallDateContains(v string) predicate.App

InstallDateContains applies the Contains predicate on the "install_date" field.

func InstallDateContainsFold

func InstallDateContainsFold(v string) predicate.App

InstallDateContainsFold applies the ContainsFold predicate on the "install_date" field.

func InstallDateEQ

func InstallDateEQ(v string) predicate.App

InstallDateEQ applies the EQ predicate on the "install_date" field.

func InstallDateEqualFold

func InstallDateEqualFold(v string) predicate.App

InstallDateEqualFold applies the EqualFold predicate on the "install_date" field.

func InstallDateGT

func InstallDateGT(v string) predicate.App

InstallDateGT applies the GT predicate on the "install_date" field.

func InstallDateGTE

func InstallDateGTE(v string) predicate.App

InstallDateGTE applies the GTE predicate on the "install_date" field.

func InstallDateHasPrefix

func InstallDateHasPrefix(v string) predicate.App

InstallDateHasPrefix applies the HasPrefix predicate on the "install_date" field.

func InstallDateHasSuffix

func InstallDateHasSuffix(v string) predicate.App

InstallDateHasSuffix applies the HasSuffix predicate on the "install_date" field.

func InstallDateIn

func InstallDateIn(vs ...string) predicate.App

InstallDateIn applies the In predicate on the "install_date" field.

func InstallDateIsNil

func InstallDateIsNil() predicate.App

InstallDateIsNil applies the IsNil predicate on the "install_date" field.

func InstallDateLT

func InstallDateLT(v string) predicate.App

InstallDateLT applies the LT predicate on the "install_date" field.

func InstallDateLTE

func InstallDateLTE(v string) predicate.App

InstallDateLTE applies the LTE predicate on the "install_date" field.

func InstallDateNEQ

func InstallDateNEQ(v string) predicate.App

InstallDateNEQ applies the NEQ predicate on the "install_date" field.

func InstallDateNotIn

func InstallDateNotIn(vs ...string) predicate.App

InstallDateNotIn applies the NotIn predicate on the "install_date" field.

func InstallDateNotNil

func InstallDateNotNil() predicate.App

InstallDateNotNil applies the NotNil predicate on the "install_date" field.

func Name

func Name(v string) predicate.App

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.App

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.App

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.App

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.App

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.App

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.App

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.App

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.App

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.App

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.App

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.App

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.App

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.App

NameNotIn applies the NotIn predicate on the "name" field.

func Not

func Not(p predicate.App) predicate.App

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.App) predicate.App

Or groups predicates with the OR operator between them.

func Publisher

func Publisher(v string) predicate.App

Publisher applies equality check predicate on the "publisher" field. It's identical to PublisherEQ.

func PublisherContains

func PublisherContains(v string) predicate.App

PublisherContains applies the Contains predicate on the "publisher" field.

func PublisherContainsFold

func PublisherContainsFold(v string) predicate.App

PublisherContainsFold applies the ContainsFold predicate on the "publisher" field.

func PublisherEQ

func PublisherEQ(v string) predicate.App

PublisherEQ applies the EQ predicate on the "publisher" field.

func PublisherEqualFold

func PublisherEqualFold(v string) predicate.App

PublisherEqualFold applies the EqualFold predicate on the "publisher" field.

func PublisherGT

func PublisherGT(v string) predicate.App

PublisherGT applies the GT predicate on the "publisher" field.

func PublisherGTE

func PublisherGTE(v string) predicate.App

PublisherGTE applies the GTE predicate on the "publisher" field.

func PublisherHasPrefix

func PublisherHasPrefix(v string) predicate.App

PublisherHasPrefix applies the HasPrefix predicate on the "publisher" field.

func PublisherHasSuffix

func PublisherHasSuffix(v string) predicate.App

PublisherHasSuffix applies the HasSuffix predicate on the "publisher" field.

func PublisherIn

func PublisherIn(vs ...string) predicate.App

PublisherIn applies the In predicate on the "publisher" field.

func PublisherIsNil

func PublisherIsNil() predicate.App

PublisherIsNil applies the IsNil predicate on the "publisher" field.

func PublisherLT

func PublisherLT(v string) predicate.App

PublisherLT applies the LT predicate on the "publisher" field.

func PublisherLTE

func PublisherLTE(v string) predicate.App

PublisherLTE applies the LTE predicate on the "publisher" field.

func PublisherNEQ

func PublisherNEQ(v string) predicate.App

PublisherNEQ applies the NEQ predicate on the "publisher" field.

func PublisherNotIn

func PublisherNotIn(vs ...string) predicate.App

PublisherNotIn applies the NotIn predicate on the "publisher" field.

func PublisherNotNil

func PublisherNotNil() predicate.App

PublisherNotNil applies the NotNil predicate on the "publisher" field.

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v string) predicate.App

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.App

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.App

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.App

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.App

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.App

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.App

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.App

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.App

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.App

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.App

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.App

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.App

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.App

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the App queries.

func ByID

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

ByID orders the results by the id field.

func ByInstallDate

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

ByInstallDate orders the results by the install_date field.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByPublisher

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

ByPublisher orders the results by the publisher field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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