Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.SoftwareAssignment
- func ActiveEQ(v bool) predicate.SoftwareAssignment
- func ActiveIsNil() predicate.SoftwareAssignment
- func ActiveNEQ(v bool) predicate.SoftwareAssignment
- func ActiveNotNil() predicate.SoftwareAssignment
- func And(predicates ...predicate.SoftwareAssignment) predicate.SoftwareAssignment
- func AssignmentTypeEQ(v AssignmentType) predicate.SoftwareAssignment
- func AssignmentTypeIn(vs ...AssignmentType) predicate.SoftwareAssignment
- func AssignmentTypeNEQ(v AssignmentType) predicate.SoftwareAssignment
- func AssignmentTypeNotIn(vs ...AssignmentType) predicate.SoftwareAssignment
- func AssignmentTypeValidator(at AssignmentType) error
- func ConditionPredicate(v string) predicate.SoftwareAssignment
- func ConditionPredicateContains(v string) predicate.SoftwareAssignment
- func ConditionPredicateContainsFold(v string) predicate.SoftwareAssignment
- func ConditionPredicateEQ(v string) predicate.SoftwareAssignment
- func ConditionPredicateEqualFold(v string) predicate.SoftwareAssignment
- func ConditionPredicateGT(v string) predicate.SoftwareAssignment
- func ConditionPredicateGTE(v string) predicate.SoftwareAssignment
- func ConditionPredicateHasPrefix(v string) predicate.SoftwareAssignment
- func ConditionPredicateHasSuffix(v string) predicate.SoftwareAssignment
- func ConditionPredicateIn(vs ...string) predicate.SoftwareAssignment
- func ConditionPredicateIsNil() predicate.SoftwareAssignment
- func ConditionPredicateLT(v string) predicate.SoftwareAssignment
- func ConditionPredicateLTE(v string) predicate.SoftwareAssignment
- func ConditionPredicateNEQ(v string) predicate.SoftwareAssignment
- func ConditionPredicateNotIn(vs ...string) predicate.SoftwareAssignment
- func ConditionPredicateNotNil() predicate.SoftwareAssignment
- func Created(v time.Time) predicate.SoftwareAssignment
- func CreatedEQ(v time.Time) predicate.SoftwareAssignment
- func CreatedGT(v time.Time) predicate.SoftwareAssignment
- func CreatedGTE(v time.Time) predicate.SoftwareAssignment
- func CreatedIn(vs ...time.Time) predicate.SoftwareAssignment
- func CreatedIsNil() predicate.SoftwareAssignment
- func CreatedLT(v time.Time) predicate.SoftwareAssignment
- func CreatedLTE(v time.Time) predicate.SoftwareAssignment
- func CreatedNEQ(v time.Time) predicate.SoftwareAssignment
- func CreatedNotIn(vs ...time.Time) predicate.SoftwareAssignment
- func CreatedNotNil() predicate.SoftwareAssignment
- func HasTenant() predicate.SoftwareAssignment
- func HasTenantWith(preds ...predicate.Tenant) predicate.SoftwareAssignment
- func ID(id int) predicate.SoftwareAssignment
- func IDEQ(id int) predicate.SoftwareAssignment
- func IDGT(id int) predicate.SoftwareAssignment
- func IDGTE(id int) predicate.SoftwareAssignment
- func IDIn(ids ...int) predicate.SoftwareAssignment
- func IDLT(id int) predicate.SoftwareAssignment
- func IDLTE(id int) predicate.SoftwareAssignment
- func IDNEQ(id int) predicate.SoftwareAssignment
- func IDNotIn(ids ...int) predicate.SoftwareAssignment
- func Modified(v time.Time) predicate.SoftwareAssignment
- func ModifiedEQ(v time.Time) predicate.SoftwareAssignment
- func ModifiedGT(v time.Time) predicate.SoftwareAssignment
- func ModifiedGTE(v time.Time) predicate.SoftwareAssignment
- func ModifiedIn(vs ...time.Time) predicate.SoftwareAssignment
- func ModifiedIsNil() predicate.SoftwareAssignment
- func ModifiedLT(v time.Time) predicate.SoftwareAssignment
- func ModifiedLTE(v time.Time) predicate.SoftwareAssignment
- func ModifiedNEQ(v time.Time) predicate.SoftwareAssignment
- func ModifiedNotIn(vs ...time.Time) predicate.SoftwareAssignment
- func ModifiedNotNil() predicate.SoftwareAssignment
- func Not(p predicate.SoftwareAssignment) predicate.SoftwareAssignment
- func Or(predicates ...predicate.SoftwareAssignment) predicate.SoftwareAssignment
- func PackageName(v string) predicate.SoftwareAssignment
- func PackageNameContains(v string) predicate.SoftwareAssignment
- func PackageNameContainsFold(v string) predicate.SoftwareAssignment
- func PackageNameEQ(v string) predicate.SoftwareAssignment
- func PackageNameEqualFold(v string) predicate.SoftwareAssignment
- func PackageNameGT(v string) predicate.SoftwareAssignment
- func PackageNameGTE(v string) predicate.SoftwareAssignment
- func PackageNameHasPrefix(v string) predicate.SoftwareAssignment
- func PackageNameHasSuffix(v string) predicate.SoftwareAssignment
- func PackageNameIn(vs ...string) predicate.SoftwareAssignment
- func PackageNameLT(v string) predicate.SoftwareAssignment
- func PackageNameLTE(v string) predicate.SoftwareAssignment
- func PackageNameNEQ(v string) predicate.SoftwareAssignment
- func PackageNameNotIn(vs ...string) predicate.SoftwareAssignment
- func PackagePlatformEQ(v PackagePlatform) predicate.SoftwareAssignment
- func PackagePlatformIn(vs ...PackagePlatform) predicate.SoftwareAssignment
- func PackagePlatformNEQ(v PackagePlatform) predicate.SoftwareAssignment
- func PackagePlatformNotIn(vs ...PackagePlatform) predicate.SoftwareAssignment
- func PackagePlatformValidator(pp PackagePlatform) error
- func Priority(v int) predicate.SoftwareAssignment
- func PriorityEQ(v int) predicate.SoftwareAssignment
- func PriorityGT(v int) predicate.SoftwareAssignment
- func PriorityGTE(v int) predicate.SoftwareAssignment
- func PriorityIn(vs ...int) predicate.SoftwareAssignment
- func PriorityIsNil() predicate.SoftwareAssignment
- func PriorityLT(v int) predicate.SoftwareAssignment
- func PriorityLTE(v int) predicate.SoftwareAssignment
- func PriorityNEQ(v int) predicate.SoftwareAssignment
- func PriorityNotIn(vs ...int) predicate.SoftwareAssignment
- func PriorityNotNil() predicate.SoftwareAssignment
- func TargetID(v string) predicate.SoftwareAssignment
- func TargetIDContains(v string) predicate.SoftwareAssignment
- func TargetIDContainsFold(v string) predicate.SoftwareAssignment
- func TargetIDEQ(v string) predicate.SoftwareAssignment
- func TargetIDEqualFold(v string) predicate.SoftwareAssignment
- func TargetIDGT(v string) predicate.SoftwareAssignment
- func TargetIDGTE(v string) predicate.SoftwareAssignment
- func TargetIDHasPrefix(v string) predicate.SoftwareAssignment
- func TargetIDHasSuffix(v string) predicate.SoftwareAssignment
- func TargetIDIn(vs ...string) predicate.SoftwareAssignment
- func TargetIDLT(v string) predicate.SoftwareAssignment
- func TargetIDLTE(v string) predicate.SoftwareAssignment
- func TargetIDNEQ(v string) predicate.SoftwareAssignment
- func TargetIDNotIn(vs ...string) predicate.SoftwareAssignment
- func TargetTypeEQ(v TargetType) predicate.SoftwareAssignment
- func TargetTypeIn(vs ...TargetType) predicate.SoftwareAssignment
- func TargetTypeNEQ(v TargetType) predicate.SoftwareAssignment
- func TargetTypeNotIn(vs ...TargetType) predicate.SoftwareAssignment
- func TargetTypeValidator(tt TargetType) error
- func ValidColumn(column string) bool
- type AssignmentType
- type OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByAssignmentType(opts ...sql.OrderTermOption) OrderOption
- func ByConditionPredicate(opts ...sql.OrderTermOption) OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModified(opts ...sql.OrderTermOption) OrderOption
- func ByPackageName(opts ...sql.OrderTermOption) OrderOption
- func ByPackagePlatform(opts ...sql.OrderTermOption) OrderOption
- func ByPriority(opts ...sql.OrderTermOption) OrderOption
- func ByTargetID(opts ...sql.OrderTermOption) OrderOption
- func ByTargetType(opts ...sql.OrderTermOption) OrderOption
- func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
- type PackagePlatform
- type TargetType
Constants ¶
const ( // Label holds the string label denoting the softwareassignment type in the database. Label = "software_assignment" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPackageName holds the string denoting the package_name field in the database. FieldPackageName = "package_name" // FieldPackagePlatform holds the string denoting the package_platform field in the database. FieldPackagePlatform = "package_platform" // FieldAssignmentType holds the string denoting the assignment_type field in the database. FieldAssignmentType = "assignment_type" // FieldTargetType holds the string denoting the target_type field in the database. FieldTargetType = "target_type" // FieldTargetID holds the string denoting the target_id field in the database. FieldTargetID = "target_id" // FieldPriority holds the string denoting the priority field in the database. FieldPriority = "priority" // FieldConditionPredicate holds the string denoting the condition_predicate field in the database. FieldConditionPredicate = "condition_predicate" // FieldActive holds the string denoting the active field in the database. FieldActive = "active" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldModified holds the string denoting the modified field in the database. FieldModified = "modified" // EdgeTenant holds the string denoting the tenant edge name in mutations. EdgeTenant = "tenant" // Table holds the table name of the softwareassignment in the database. Table = "software_assignments" // TenantTable is the table that holds the tenant relation/edge. TenantTable = "software_assignments" // TenantInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. TenantInverseTable = "tenants" // TenantColumn is the table column denoting the tenant relation/edge. TenantColumn = "tenant_software_assignments" )
Variables ¶
var ( // PackageNameValidator is a validator for the "package_name" field. It is called by the builders before save. PackageNameValidator func(string) error // TargetIDValidator is a validator for the "target_id" field. It is called by the builders before save. TargetIDValidator func(string) error // DefaultPriority holds the default value on creation for the "priority" field. DefaultPriority int // DefaultConditionPredicate holds the default value on creation for the "condition_predicate" field. DefaultConditionPredicate string // DefaultActive holds the default value on creation for the "active" field. DefaultActive bool // DefaultCreated holds the default value on creation for the "created" field. DefaultCreated func() time.Time // DefaultModified holds the default value on creation for the "modified" field. DefaultModified func() time.Time // UpdateDefaultModified holds the default value on update for the "modified" field. UpdateDefaultModified func() time.Time )
var Columns = []string{ FieldID, FieldPackageName, FieldPackagePlatform, FieldAssignmentType, FieldTargetType, FieldTargetID, FieldPriority, FieldConditionPredicate, FieldActive, FieldCreated, FieldModified, }
Columns holds all SQL columns for softwareassignment fields.
var ForeignKeys = []string{
"tenant_software_assignments",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "software_assignments" table and are not defined as standalone fields in the schema.
Functions ¶
func Active ¶
func Active(v bool) predicate.SoftwareAssignment
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func ActiveEQ ¶
func ActiveEQ(v bool) predicate.SoftwareAssignment
ActiveEQ applies the EQ predicate on the "active" field.
func ActiveIsNil ¶
func ActiveIsNil() predicate.SoftwareAssignment
ActiveIsNil applies the IsNil predicate on the "active" field.
func ActiveNEQ ¶
func ActiveNEQ(v bool) predicate.SoftwareAssignment
ActiveNEQ applies the NEQ predicate on the "active" field.
func ActiveNotNil ¶
func ActiveNotNil() predicate.SoftwareAssignment
ActiveNotNil applies the NotNil predicate on the "active" field.
func And ¶
func And(predicates ...predicate.SoftwareAssignment) predicate.SoftwareAssignment
And groups predicates with the AND operator between them.
func AssignmentTypeEQ ¶
func AssignmentTypeEQ(v AssignmentType) predicate.SoftwareAssignment
AssignmentTypeEQ applies the EQ predicate on the "assignment_type" field.
func AssignmentTypeIn ¶
func AssignmentTypeIn(vs ...AssignmentType) predicate.SoftwareAssignment
AssignmentTypeIn applies the In predicate on the "assignment_type" field.
func AssignmentTypeNEQ ¶
func AssignmentTypeNEQ(v AssignmentType) predicate.SoftwareAssignment
AssignmentTypeNEQ applies the NEQ predicate on the "assignment_type" field.
func AssignmentTypeNotIn ¶
func AssignmentTypeNotIn(vs ...AssignmentType) predicate.SoftwareAssignment
AssignmentTypeNotIn applies the NotIn predicate on the "assignment_type" field.
func AssignmentTypeValidator ¶
func AssignmentTypeValidator(at AssignmentType) error
AssignmentTypeValidator is a validator for the "assignment_type" field enum values. It is called by the builders before save.
func ConditionPredicate ¶
func ConditionPredicate(v string) predicate.SoftwareAssignment
ConditionPredicate applies equality check predicate on the "condition_predicate" field. It's identical to ConditionPredicateEQ.
func ConditionPredicateContains ¶
func ConditionPredicateContains(v string) predicate.SoftwareAssignment
ConditionPredicateContains applies the Contains predicate on the "condition_predicate" field.
func ConditionPredicateContainsFold ¶
func ConditionPredicateContainsFold(v string) predicate.SoftwareAssignment
ConditionPredicateContainsFold applies the ContainsFold predicate on the "condition_predicate" field.
func ConditionPredicateEQ ¶
func ConditionPredicateEQ(v string) predicate.SoftwareAssignment
ConditionPredicateEQ applies the EQ predicate on the "condition_predicate" field.
func ConditionPredicateEqualFold ¶
func ConditionPredicateEqualFold(v string) predicate.SoftwareAssignment
ConditionPredicateEqualFold applies the EqualFold predicate on the "condition_predicate" field.
func ConditionPredicateGT ¶
func ConditionPredicateGT(v string) predicate.SoftwareAssignment
ConditionPredicateGT applies the GT predicate on the "condition_predicate" field.
func ConditionPredicateGTE ¶
func ConditionPredicateGTE(v string) predicate.SoftwareAssignment
ConditionPredicateGTE applies the GTE predicate on the "condition_predicate" field.
func ConditionPredicateHasPrefix ¶
func ConditionPredicateHasPrefix(v string) predicate.SoftwareAssignment
ConditionPredicateHasPrefix applies the HasPrefix predicate on the "condition_predicate" field.
func ConditionPredicateHasSuffix ¶
func ConditionPredicateHasSuffix(v string) predicate.SoftwareAssignment
ConditionPredicateHasSuffix applies the HasSuffix predicate on the "condition_predicate" field.
func ConditionPredicateIn ¶
func ConditionPredicateIn(vs ...string) predicate.SoftwareAssignment
ConditionPredicateIn applies the In predicate on the "condition_predicate" field.
func ConditionPredicateIsNil ¶
func ConditionPredicateIsNil() predicate.SoftwareAssignment
ConditionPredicateIsNil applies the IsNil predicate on the "condition_predicate" field.
func ConditionPredicateLT ¶
func ConditionPredicateLT(v string) predicate.SoftwareAssignment
ConditionPredicateLT applies the LT predicate on the "condition_predicate" field.
func ConditionPredicateLTE ¶
func ConditionPredicateLTE(v string) predicate.SoftwareAssignment
ConditionPredicateLTE applies the LTE predicate on the "condition_predicate" field.
func ConditionPredicateNEQ ¶
func ConditionPredicateNEQ(v string) predicate.SoftwareAssignment
ConditionPredicateNEQ applies the NEQ predicate on the "condition_predicate" field.
func ConditionPredicateNotIn ¶
func ConditionPredicateNotIn(vs ...string) predicate.SoftwareAssignment
ConditionPredicateNotIn applies the NotIn predicate on the "condition_predicate" field.
func ConditionPredicateNotNil ¶
func ConditionPredicateNotNil() predicate.SoftwareAssignment
ConditionPredicateNotNil applies the NotNil predicate on the "condition_predicate" field.
func Created ¶
func Created(v time.Time) predicate.SoftwareAssignment
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedEQ ¶
func CreatedEQ(v time.Time) predicate.SoftwareAssignment
CreatedEQ applies the EQ predicate on the "created" field.
func CreatedGT ¶
func CreatedGT(v time.Time) predicate.SoftwareAssignment
CreatedGT applies the GT predicate on the "created" field.
func CreatedGTE ¶
func CreatedGTE(v time.Time) predicate.SoftwareAssignment
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedIn ¶
func CreatedIn(vs ...time.Time) predicate.SoftwareAssignment
CreatedIn applies the In predicate on the "created" field.
func CreatedIsNil ¶
func CreatedIsNil() predicate.SoftwareAssignment
CreatedIsNil applies the IsNil predicate on the "created" field.
func CreatedLT ¶
func CreatedLT(v time.Time) predicate.SoftwareAssignment
CreatedLT applies the LT predicate on the "created" field.
func CreatedLTE ¶
func CreatedLTE(v time.Time) predicate.SoftwareAssignment
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
func CreatedNEQ(v time.Time) predicate.SoftwareAssignment
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
func CreatedNotIn(vs ...time.Time) predicate.SoftwareAssignment
CreatedNotIn applies the NotIn predicate on the "created" field.
func CreatedNotNil ¶
func CreatedNotNil() predicate.SoftwareAssignment
CreatedNotNil applies the NotNil predicate on the "created" field.
func HasTenant ¶
func HasTenant() predicate.SoftwareAssignment
HasTenant applies the HasEdge predicate on the "tenant" edge.
func HasTenantWith ¶
func HasTenantWith(preds ...predicate.Tenant) predicate.SoftwareAssignment
HasTenantWith applies the HasEdge predicate on the "tenant" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id int) predicate.SoftwareAssignment
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int) predicate.SoftwareAssignment
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int) predicate.SoftwareAssignment
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.SoftwareAssignment
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int) predicate.SoftwareAssignment
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.SoftwareAssignment
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.SoftwareAssignment
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.SoftwareAssignment
IDNotIn applies the NotIn predicate on the ID field.
func Modified ¶
func Modified(v time.Time) predicate.SoftwareAssignment
Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.
func ModifiedEQ ¶
func ModifiedEQ(v time.Time) predicate.SoftwareAssignment
ModifiedEQ applies the EQ predicate on the "modified" field.
func ModifiedGT ¶
func ModifiedGT(v time.Time) predicate.SoftwareAssignment
ModifiedGT applies the GT predicate on the "modified" field.
func ModifiedGTE ¶
func ModifiedGTE(v time.Time) predicate.SoftwareAssignment
ModifiedGTE applies the GTE predicate on the "modified" field.
func ModifiedIn ¶
func ModifiedIn(vs ...time.Time) predicate.SoftwareAssignment
ModifiedIn applies the In predicate on the "modified" field.
func ModifiedIsNil ¶
func ModifiedIsNil() predicate.SoftwareAssignment
ModifiedIsNil applies the IsNil predicate on the "modified" field.
func ModifiedLT ¶
func ModifiedLT(v time.Time) predicate.SoftwareAssignment
ModifiedLT applies the LT predicate on the "modified" field.
func ModifiedLTE ¶
func ModifiedLTE(v time.Time) predicate.SoftwareAssignment
ModifiedLTE applies the LTE predicate on the "modified" field.
func ModifiedNEQ ¶
func ModifiedNEQ(v time.Time) predicate.SoftwareAssignment
ModifiedNEQ applies the NEQ predicate on the "modified" field.
func ModifiedNotIn ¶
func ModifiedNotIn(vs ...time.Time) predicate.SoftwareAssignment
ModifiedNotIn applies the NotIn predicate on the "modified" field.
func ModifiedNotNil ¶
func ModifiedNotNil() predicate.SoftwareAssignment
ModifiedNotNil applies the NotNil predicate on the "modified" field.
func Not ¶
func Not(p predicate.SoftwareAssignment) predicate.SoftwareAssignment
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SoftwareAssignment) predicate.SoftwareAssignment
Or groups predicates with the OR operator between them.
func PackageName ¶
func PackageName(v string) predicate.SoftwareAssignment
PackageName applies equality check predicate on the "package_name" field. It's identical to PackageNameEQ.
func PackageNameContains ¶
func PackageNameContains(v string) predicate.SoftwareAssignment
PackageNameContains applies the Contains predicate on the "package_name" field.
func PackageNameContainsFold ¶
func PackageNameContainsFold(v string) predicate.SoftwareAssignment
PackageNameContainsFold applies the ContainsFold predicate on the "package_name" field.
func PackageNameEQ ¶
func PackageNameEQ(v string) predicate.SoftwareAssignment
PackageNameEQ applies the EQ predicate on the "package_name" field.
func PackageNameEqualFold ¶
func PackageNameEqualFold(v string) predicate.SoftwareAssignment
PackageNameEqualFold applies the EqualFold predicate on the "package_name" field.
func PackageNameGT ¶
func PackageNameGT(v string) predicate.SoftwareAssignment
PackageNameGT applies the GT predicate on the "package_name" field.
func PackageNameGTE ¶
func PackageNameGTE(v string) predicate.SoftwareAssignment
PackageNameGTE applies the GTE predicate on the "package_name" field.
func PackageNameHasPrefix ¶
func PackageNameHasPrefix(v string) predicate.SoftwareAssignment
PackageNameHasPrefix applies the HasPrefix predicate on the "package_name" field.
func PackageNameHasSuffix ¶
func PackageNameHasSuffix(v string) predicate.SoftwareAssignment
PackageNameHasSuffix applies the HasSuffix predicate on the "package_name" field.
func PackageNameIn ¶
func PackageNameIn(vs ...string) predicate.SoftwareAssignment
PackageNameIn applies the In predicate on the "package_name" field.
func PackageNameLT ¶
func PackageNameLT(v string) predicate.SoftwareAssignment
PackageNameLT applies the LT predicate on the "package_name" field.
func PackageNameLTE ¶
func PackageNameLTE(v string) predicate.SoftwareAssignment
PackageNameLTE applies the LTE predicate on the "package_name" field.
func PackageNameNEQ ¶
func PackageNameNEQ(v string) predicate.SoftwareAssignment
PackageNameNEQ applies the NEQ predicate on the "package_name" field.
func PackageNameNotIn ¶
func PackageNameNotIn(vs ...string) predicate.SoftwareAssignment
PackageNameNotIn applies the NotIn predicate on the "package_name" field.
func PackagePlatformEQ ¶
func PackagePlatformEQ(v PackagePlatform) predicate.SoftwareAssignment
PackagePlatformEQ applies the EQ predicate on the "package_platform" field.
func PackagePlatformIn ¶
func PackagePlatformIn(vs ...PackagePlatform) predicate.SoftwareAssignment
PackagePlatformIn applies the In predicate on the "package_platform" field.
func PackagePlatformNEQ ¶
func PackagePlatformNEQ(v PackagePlatform) predicate.SoftwareAssignment
PackagePlatformNEQ applies the NEQ predicate on the "package_platform" field.
func PackagePlatformNotIn ¶
func PackagePlatformNotIn(vs ...PackagePlatform) predicate.SoftwareAssignment
PackagePlatformNotIn applies the NotIn predicate on the "package_platform" field.
func PackagePlatformValidator ¶
func PackagePlatformValidator(pp PackagePlatform) error
PackagePlatformValidator is a validator for the "package_platform" field enum values. It is called by the builders before save.
func Priority ¶
func Priority(v int) predicate.SoftwareAssignment
Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
func PriorityEQ ¶
func PriorityEQ(v int) predicate.SoftwareAssignment
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityGT ¶
func PriorityGT(v int) predicate.SoftwareAssignment
PriorityGT applies the GT predicate on the "priority" field.
func PriorityGTE ¶
func PriorityGTE(v int) predicate.SoftwareAssignment
PriorityGTE applies the GTE predicate on the "priority" field.
func PriorityIn ¶
func PriorityIn(vs ...int) predicate.SoftwareAssignment
PriorityIn applies the In predicate on the "priority" field.
func PriorityIsNil ¶
func PriorityIsNil() predicate.SoftwareAssignment
PriorityIsNil applies the IsNil predicate on the "priority" field.
func PriorityLT ¶
func PriorityLT(v int) predicate.SoftwareAssignment
PriorityLT applies the LT predicate on the "priority" field.
func PriorityLTE ¶
func PriorityLTE(v int) predicate.SoftwareAssignment
PriorityLTE applies the LTE predicate on the "priority" field.
func PriorityNEQ ¶
func PriorityNEQ(v int) predicate.SoftwareAssignment
PriorityNEQ applies the NEQ predicate on the "priority" field.
func PriorityNotIn ¶
func PriorityNotIn(vs ...int) predicate.SoftwareAssignment
PriorityNotIn applies the NotIn predicate on the "priority" field.
func PriorityNotNil ¶
func PriorityNotNil() predicate.SoftwareAssignment
PriorityNotNil applies the NotNil predicate on the "priority" field.
func TargetID ¶
func TargetID(v string) predicate.SoftwareAssignment
TargetID applies equality check predicate on the "target_id" field. It's identical to TargetIDEQ.
func TargetIDContains ¶
func TargetIDContains(v string) predicate.SoftwareAssignment
TargetIDContains applies the Contains predicate on the "target_id" field.
func TargetIDContainsFold ¶
func TargetIDContainsFold(v string) predicate.SoftwareAssignment
TargetIDContainsFold applies the ContainsFold predicate on the "target_id" field.
func TargetIDEQ ¶
func TargetIDEQ(v string) predicate.SoftwareAssignment
TargetIDEQ applies the EQ predicate on the "target_id" field.
func TargetIDEqualFold ¶
func TargetIDEqualFold(v string) predicate.SoftwareAssignment
TargetIDEqualFold applies the EqualFold predicate on the "target_id" field.
func TargetIDGT ¶
func TargetIDGT(v string) predicate.SoftwareAssignment
TargetIDGT applies the GT predicate on the "target_id" field.
func TargetIDGTE ¶
func TargetIDGTE(v string) predicate.SoftwareAssignment
TargetIDGTE applies the GTE predicate on the "target_id" field.
func TargetIDHasPrefix ¶
func TargetIDHasPrefix(v string) predicate.SoftwareAssignment
TargetIDHasPrefix applies the HasPrefix predicate on the "target_id" field.
func TargetIDHasSuffix ¶
func TargetIDHasSuffix(v string) predicate.SoftwareAssignment
TargetIDHasSuffix applies the HasSuffix predicate on the "target_id" field.
func TargetIDIn ¶
func TargetIDIn(vs ...string) predicate.SoftwareAssignment
TargetIDIn applies the In predicate on the "target_id" field.
func TargetIDLT ¶
func TargetIDLT(v string) predicate.SoftwareAssignment
TargetIDLT applies the LT predicate on the "target_id" field.
func TargetIDLTE ¶
func TargetIDLTE(v string) predicate.SoftwareAssignment
TargetIDLTE applies the LTE predicate on the "target_id" field.
func TargetIDNEQ ¶
func TargetIDNEQ(v string) predicate.SoftwareAssignment
TargetIDNEQ applies the NEQ predicate on the "target_id" field.
func TargetIDNotIn ¶
func TargetIDNotIn(vs ...string) predicate.SoftwareAssignment
TargetIDNotIn applies the NotIn predicate on the "target_id" field.
func TargetTypeEQ ¶
func TargetTypeEQ(v TargetType) predicate.SoftwareAssignment
TargetTypeEQ applies the EQ predicate on the "target_type" field.
func TargetTypeIn ¶
func TargetTypeIn(vs ...TargetType) predicate.SoftwareAssignment
TargetTypeIn applies the In predicate on the "target_type" field.
func TargetTypeNEQ ¶
func TargetTypeNEQ(v TargetType) predicate.SoftwareAssignment
TargetTypeNEQ applies the NEQ predicate on the "target_type" field.
func TargetTypeNotIn ¶
func TargetTypeNotIn(vs ...TargetType) predicate.SoftwareAssignment
TargetTypeNotIn applies the NotIn predicate on the "target_type" field.
func TargetTypeValidator ¶
func TargetTypeValidator(tt TargetType) error
TargetTypeValidator is a validator for the "target_type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type AssignmentType ¶
type AssignmentType string
AssignmentType defines the type for the "assignment_type" enum field.
const ( AssignmentTypeManagedInstall AssignmentType = "managed_install" AssignmentTypeManagedUninstall AssignmentType = "managed_uninstall" AssignmentTypeOptionalInstall AssignmentType = "optional_install" AssignmentTypeManagedUpdate AssignmentType = "managed_update" )
AssignmentType values.
func (AssignmentType) String ¶
func (at AssignmentType) String() string
type OrderOption ¶
OrderOption defines the ordering options for the SoftwareAssignment queries.
func ByActive ¶
func ByActive(opts ...sql.OrderTermOption) OrderOption
ByActive orders the results by the active field.
func ByAssignmentType ¶
func ByAssignmentType(opts ...sql.OrderTermOption) OrderOption
ByAssignmentType orders the results by the assignment_type field.
func ByConditionPredicate ¶
func ByConditionPredicate(opts ...sql.OrderTermOption) OrderOption
ByConditionPredicate orders the results by the condition_predicate field.
func ByCreated ¶
func ByCreated(opts ...sql.OrderTermOption) OrderOption
ByCreated orders the results by the created field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByModified ¶
func ByModified(opts ...sql.OrderTermOption) OrderOption
ByModified orders the results by the modified field.
func ByPackageName ¶
func ByPackageName(opts ...sql.OrderTermOption) OrderOption
ByPackageName orders the results by the package_name field.
func ByPackagePlatform ¶
func ByPackagePlatform(opts ...sql.OrderTermOption) OrderOption
ByPackagePlatform orders the results by the package_platform field.
func ByPriority ¶
func ByPriority(opts ...sql.OrderTermOption) OrderOption
ByPriority orders the results by the priority field.
func ByTargetID ¶
func ByTargetID(opts ...sql.OrderTermOption) OrderOption
ByTargetID orders the results by the target_id field.
func ByTargetType ¶
func ByTargetType(opts ...sql.OrderTermOption) OrderOption
ByTargetType orders the results by the target_type field.
func ByTenantField ¶
func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
ByTenantField orders the results by tenant field.
type PackagePlatform ¶
type PackagePlatform string
PackagePlatform defines the type for the "package_platform" enum field.
const ( PackagePlatformDarwin PackagePlatform = "darwin" PackagePlatformWindows PackagePlatform = "windows" )
PackagePlatform values.
func (PackagePlatform) String ¶
func (pp PackagePlatform) String() string
type TargetType ¶
type TargetType string
TargetType defines the type for the "target_type" enum field.
const ( TargetTypeSite TargetType = "site" TargetTypeTag TargetType = "tag" TargetTypeAgent TargetType = "agent" )
TargetType values.
func (TargetType) String ¶
func (tt TargetType) String() string