Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Deployment) predicate.Deployment
- func ByProfile(v bool) predicate.Deployment
- func ByProfileEQ(v bool) predicate.Deployment
- func ByProfileIsNil() predicate.Deployment
- func ByProfileNEQ(v bool) predicate.Deployment
- func ByProfileNotNil() predicate.Deployment
- func Failed(v bool) predicate.Deployment
- func FailedEQ(v bool) predicate.Deployment
- func FailedIsNil() predicate.Deployment
- func FailedNEQ(v bool) predicate.Deployment
- func FailedNotNil() predicate.Deployment
- func HasOwner() predicate.Deployment
- func HasOwnerWith(preds ...predicate.Agent) predicate.Deployment
- func ID(id int) predicate.Deployment
- func IDEQ(id int) predicate.Deployment
- func IDGT(id int) predicate.Deployment
- func IDGTE(id int) predicate.Deployment
- func IDIn(ids ...int) predicate.Deployment
- func IDLT(id int) predicate.Deployment
- func IDLTE(id int) predicate.Deployment
- func IDNEQ(id int) predicate.Deployment
- func IDNotIn(ids ...int) predicate.Deployment
- func Installed(v time.Time) predicate.Deployment
- func InstalledEQ(v time.Time) predicate.Deployment
- func InstalledGT(v time.Time) predicate.Deployment
- func InstalledGTE(v time.Time) predicate.Deployment
- func InstalledIn(vs ...time.Time) predicate.Deployment
- func InstalledIsNil() predicate.Deployment
- func InstalledLT(v time.Time) predicate.Deployment
- func InstalledLTE(v time.Time) predicate.Deployment
- func InstalledNEQ(v time.Time) predicate.Deployment
- func InstalledNotIn(vs ...time.Time) predicate.Deployment
- func InstalledNotNil() predicate.Deployment
- func Name(v string) predicate.Deployment
- func NameContains(v string) predicate.Deployment
- func NameContainsFold(v string) predicate.Deployment
- func NameEQ(v string) predicate.Deployment
- func NameEqualFold(v string) predicate.Deployment
- func NameGT(v string) predicate.Deployment
- func NameGTE(v string) predicate.Deployment
- func NameHasPrefix(v string) predicate.Deployment
- func NameHasSuffix(v string) predicate.Deployment
- func NameIn(vs ...string) predicate.Deployment
- func NameLT(v string) predicate.Deployment
- func NameLTE(v string) predicate.Deployment
- func NameNEQ(v string) predicate.Deployment
- func NameNotIn(vs ...string) predicate.Deployment
- func Not(p predicate.Deployment) predicate.Deployment
- func Or(predicates ...predicate.Deployment) predicate.Deployment
- func PackageID(v string) predicate.Deployment
- func PackageIDContains(v string) predicate.Deployment
- func PackageIDContainsFold(v string) predicate.Deployment
- func PackageIDEQ(v string) predicate.Deployment
- func PackageIDEqualFold(v string) predicate.Deployment
- func PackageIDGT(v string) predicate.Deployment
- func PackageIDGTE(v string) predicate.Deployment
- func PackageIDHasPrefix(v string) predicate.Deployment
- func PackageIDHasSuffix(v string) predicate.Deployment
- func PackageIDIn(vs ...string) predicate.Deployment
- func PackageIDLT(v string) predicate.Deployment
- func PackageIDLTE(v string) predicate.Deployment
- func PackageIDNEQ(v string) predicate.Deployment
- func PackageIDNotIn(vs ...string) predicate.Deployment
- func Updated(v time.Time) predicate.Deployment
- func UpdatedEQ(v time.Time) predicate.Deployment
- func UpdatedGT(v time.Time) predicate.Deployment
- func UpdatedGTE(v time.Time) predicate.Deployment
- func UpdatedIn(vs ...time.Time) predicate.Deployment
- func UpdatedIsNil() predicate.Deployment
- func UpdatedLT(v time.Time) predicate.Deployment
- func UpdatedLTE(v time.Time) predicate.Deployment
- func UpdatedNEQ(v time.Time) predicate.Deployment
- func UpdatedNotIn(vs ...time.Time) predicate.Deployment
- func UpdatedNotNil() predicate.Deployment
- func ValidColumn(column string) bool
- func Version(v string) predicate.Deployment
- func VersionContains(v string) predicate.Deployment
- func VersionContainsFold(v string) predicate.Deployment
- func VersionEQ(v string) predicate.Deployment
- func VersionEqualFold(v string) predicate.Deployment
- func VersionGT(v string) predicate.Deployment
- func VersionGTE(v string) predicate.Deployment
- func VersionHasPrefix(v string) predicate.Deployment
- func VersionHasSuffix(v string) predicate.Deployment
- func VersionIn(vs ...string) predicate.Deployment
- func VersionIsNil() predicate.Deployment
- func VersionLT(v string) predicate.Deployment
- func VersionLTE(v string) predicate.Deployment
- func VersionNEQ(v string) predicate.Deployment
- func VersionNotIn(vs ...string) predicate.Deployment
- func VersionNotNil() predicate.Deployment
- type OrderOption
- func ByByProfile(opts ...sql.OrderTermOption) OrderOption
- func ByFailed(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInstalled(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPackageID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdated(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the deployment type in the database. Label = "deployment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPackageID holds the string denoting the package_id field in the database. FieldPackageID = "package_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" // FieldInstalled holds the string denoting the installed field in the database. FieldInstalled = "installed" // FieldUpdated holds the string denoting the updated field in the database. FieldUpdated = "updated" // FieldFailed holds the string denoting the failed field in the database. FieldFailed = "failed" // FieldByProfile holds the string denoting the by_profile field in the database. FieldByProfile = "by_profile" // 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 deployment in the database. Table = "deployments" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "deployments" // 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_deployments" )
Variables ¶
var ( // DefaultInstalled holds the default value on creation for the "installed" field. DefaultInstalled func() time.Time // DefaultUpdated holds the default value on creation for the "updated" field. DefaultUpdated func() time.Time // UpdateDefaultUpdated holds the default value on update for the "updated" field. UpdateDefaultUpdated func() time.Time // DefaultFailed holds the default value on creation for the "failed" field. DefaultFailed bool // DefaultByProfile holds the default value on creation for the "by_profile" field. DefaultByProfile bool )
var Columns = []string{ FieldID, FieldPackageID, FieldName, FieldVersion, FieldInstalled, FieldUpdated, FieldFailed, FieldByProfile, }
Columns holds all SQL columns for deployment fields.
var ForeignKeys = []string{
"agent_deployments",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "deployments" table and are not defined as standalone fields in the schema.
Functions ¶
func And ¶
func And(predicates ...predicate.Deployment) predicate.Deployment
And groups predicates with the AND operator between them.
func ByProfile ¶
func ByProfile(v bool) predicate.Deployment
ByProfile applies equality check predicate on the "by_profile" field. It's identical to ByProfileEQ.
func ByProfileEQ ¶
func ByProfileEQ(v bool) predicate.Deployment
ByProfileEQ applies the EQ predicate on the "by_profile" field.
func ByProfileIsNil ¶
func ByProfileIsNil() predicate.Deployment
ByProfileIsNil applies the IsNil predicate on the "by_profile" field.
func ByProfileNEQ ¶
func ByProfileNEQ(v bool) predicate.Deployment
ByProfileNEQ applies the NEQ predicate on the "by_profile" field.
func ByProfileNotNil ¶
func ByProfileNotNil() predicate.Deployment
ByProfileNotNil applies the NotNil predicate on the "by_profile" field.
func Failed ¶
func Failed(v bool) predicate.Deployment
Failed applies equality check predicate on the "failed" field. It's identical to FailedEQ.
func FailedEQ ¶
func FailedEQ(v bool) predicate.Deployment
FailedEQ applies the EQ predicate on the "failed" field.
func FailedIsNil ¶
func FailedIsNil() predicate.Deployment
FailedIsNil applies the IsNil predicate on the "failed" field.
func FailedNEQ ¶
func FailedNEQ(v bool) predicate.Deployment
FailedNEQ applies the NEQ predicate on the "failed" field.
func FailedNotNil ¶
func FailedNotNil() predicate.Deployment
FailedNotNil applies the NotNil predicate on the "failed" field.
func HasOwner ¶
func HasOwner() predicate.Deployment
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Agent) predicate.Deployment
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func IDGTE ¶
func IDGTE(id int) predicate.Deployment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Deployment
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Deployment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Deployment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Deployment
IDNotIn applies the NotIn predicate on the ID field.
func Installed ¶
func Installed(v time.Time) predicate.Deployment
Installed applies equality check predicate on the "installed" field. It's identical to InstalledEQ.
func InstalledEQ ¶
func InstalledEQ(v time.Time) predicate.Deployment
InstalledEQ applies the EQ predicate on the "installed" field.
func InstalledGT ¶
func InstalledGT(v time.Time) predicate.Deployment
InstalledGT applies the GT predicate on the "installed" field.
func InstalledGTE ¶
func InstalledGTE(v time.Time) predicate.Deployment
InstalledGTE applies the GTE predicate on the "installed" field.
func InstalledIn ¶
func InstalledIn(vs ...time.Time) predicate.Deployment
InstalledIn applies the In predicate on the "installed" field.
func InstalledIsNil ¶
func InstalledIsNil() predicate.Deployment
InstalledIsNil applies the IsNil predicate on the "installed" field.
func InstalledLT ¶
func InstalledLT(v time.Time) predicate.Deployment
InstalledLT applies the LT predicate on the "installed" field.
func InstalledLTE ¶
func InstalledLTE(v time.Time) predicate.Deployment
InstalledLTE applies the LTE predicate on the "installed" field.
func InstalledNEQ ¶
func InstalledNEQ(v time.Time) predicate.Deployment
InstalledNEQ applies the NEQ predicate on the "installed" field.
func InstalledNotIn ¶
func InstalledNotIn(vs ...time.Time) predicate.Deployment
InstalledNotIn applies the NotIn predicate on the "installed" field.
func InstalledNotNil ¶
func InstalledNotNil() predicate.Deployment
InstalledNotNil applies the NotNil predicate on the "installed" field.
func Name ¶
func Name(v string) predicate.Deployment
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.Deployment
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.Deployment
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.Deployment
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.Deployment
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.Deployment
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.Deployment
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.Deployment
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.Deployment
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.Deployment
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.Deployment
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.Deployment
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.Deployment
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.Deployment
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.Deployment) predicate.Deployment
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.Deployment) predicate.Deployment
Or groups predicates with the OR operator between them.
func PackageID ¶
func PackageID(v string) predicate.Deployment
PackageID applies equality check predicate on the "package_id" field. It's identical to PackageIDEQ.
func PackageIDContains ¶
func PackageIDContains(v string) predicate.Deployment
PackageIDContains applies the Contains predicate on the "package_id" field.
func PackageIDContainsFold ¶
func PackageIDContainsFold(v string) predicate.Deployment
PackageIDContainsFold applies the ContainsFold predicate on the "package_id" field.
func PackageIDEQ ¶
func PackageIDEQ(v string) predicate.Deployment
PackageIDEQ applies the EQ predicate on the "package_id" field.
func PackageIDEqualFold ¶
func PackageIDEqualFold(v string) predicate.Deployment
PackageIDEqualFold applies the EqualFold predicate on the "package_id" field.
func PackageIDGT ¶
func PackageIDGT(v string) predicate.Deployment
PackageIDGT applies the GT predicate on the "package_id" field.
func PackageIDGTE ¶
func PackageIDGTE(v string) predicate.Deployment
PackageIDGTE applies the GTE predicate on the "package_id" field.
func PackageIDHasPrefix ¶
func PackageIDHasPrefix(v string) predicate.Deployment
PackageIDHasPrefix applies the HasPrefix predicate on the "package_id" field.
func PackageIDHasSuffix ¶
func PackageIDHasSuffix(v string) predicate.Deployment
PackageIDHasSuffix applies the HasSuffix predicate on the "package_id" field.
func PackageIDIn ¶
func PackageIDIn(vs ...string) predicate.Deployment
PackageIDIn applies the In predicate on the "package_id" field.
func PackageIDLT ¶
func PackageIDLT(v string) predicate.Deployment
PackageIDLT applies the LT predicate on the "package_id" field.
func PackageIDLTE ¶
func PackageIDLTE(v string) predicate.Deployment
PackageIDLTE applies the LTE predicate on the "package_id" field.
func PackageIDNEQ ¶
func PackageIDNEQ(v string) predicate.Deployment
PackageIDNEQ applies the NEQ predicate on the "package_id" field.
func PackageIDNotIn ¶
func PackageIDNotIn(vs ...string) predicate.Deployment
PackageIDNotIn applies the NotIn predicate on the "package_id" field.
func Updated ¶
func Updated(v time.Time) predicate.Deployment
Updated applies equality check predicate on the "updated" field. It's identical to UpdatedEQ.
func UpdatedEQ ¶
func UpdatedEQ(v time.Time) predicate.Deployment
UpdatedEQ applies the EQ predicate on the "updated" field.
func UpdatedGT ¶
func UpdatedGT(v time.Time) predicate.Deployment
UpdatedGT applies the GT predicate on the "updated" field.
func UpdatedGTE ¶
func UpdatedGTE(v time.Time) predicate.Deployment
UpdatedGTE applies the GTE predicate on the "updated" field.
func UpdatedIn ¶
func UpdatedIn(vs ...time.Time) predicate.Deployment
UpdatedIn applies the In predicate on the "updated" field.
func UpdatedIsNil ¶
func UpdatedIsNil() predicate.Deployment
UpdatedIsNil applies the IsNil predicate on the "updated" field.
func UpdatedLT ¶
func UpdatedLT(v time.Time) predicate.Deployment
UpdatedLT applies the LT predicate on the "updated" field.
func UpdatedLTE ¶
func UpdatedLTE(v time.Time) predicate.Deployment
UpdatedLTE applies the LTE predicate on the "updated" field.
func UpdatedNEQ ¶
func UpdatedNEQ(v time.Time) predicate.Deployment
UpdatedNEQ applies the NEQ predicate on the "updated" field.
func UpdatedNotIn ¶
func UpdatedNotIn(vs ...time.Time) predicate.Deployment
UpdatedNotIn applies the NotIn predicate on the "updated" field.
func UpdatedNotNil ¶
func UpdatedNotNil() predicate.Deployment
UpdatedNotNil applies the NotNil predicate on the "updated" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
func Version(v string) predicate.Deployment
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
func VersionContains(v string) predicate.Deployment
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
func VersionContainsFold(v string) predicate.Deployment
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEQ ¶
func VersionEQ(v string) predicate.Deployment
VersionEQ applies the EQ predicate on the "version" field.
func VersionEqualFold ¶
func VersionEqualFold(v string) predicate.Deployment
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGT ¶
func VersionGT(v string) predicate.Deployment
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v string) predicate.Deployment
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
func VersionHasPrefix(v string) predicate.Deployment
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
func VersionHasSuffix(v string) predicate.Deployment
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...string) predicate.Deployment
VersionIn applies the In predicate on the "version" field.
func VersionIsNil ¶
func VersionIsNil() predicate.Deployment
VersionIsNil applies the IsNil predicate on the "version" field.
func VersionLT ¶
func VersionLT(v string) predicate.Deployment
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v string) predicate.Deployment
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v string) predicate.Deployment
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...string) predicate.Deployment
VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotNil ¶
func VersionNotNil() predicate.Deployment
VersionNotNil applies the NotNil predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Deployment queries.
func ByByProfile ¶
func ByByProfile(opts ...sql.OrderTermOption) OrderOption
ByByProfile orders the results by the by_profile field.
func ByFailed ¶
func ByFailed(opts ...sql.OrderTermOption) OrderOption
ByFailed orders the results by the failed field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInstalled ¶
func ByInstalled(opts ...sql.OrderTermOption) OrderOption
ByInstalled orders the results by the installed 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 ByPackageID ¶
func ByPackageID(opts ...sql.OrderTermOption) OrderOption
ByPackageID orders the results by the package_id field.
func ByUpdated ¶
func ByUpdated(opts ...sql.OrderTermOption) OrderOption
ByUpdated orders the results by the updated field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.