Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Platform) predicate.Platform
- func ConfigIsNil() predicate.Platform
- func ConfigNotNil() predicate.Platform
- func CreatedAt(v time.Time) predicate.Platform
- func CreatedAtEQ(v time.Time) predicate.Platform
- func CreatedAtGT(v time.Time) predicate.Platform
- func CreatedAtGTE(v time.Time) predicate.Platform
- func CreatedAtIn(vs ...time.Time) predicate.Platform
- func CreatedAtLT(v time.Time) predicate.Platform
- func CreatedAtLTE(v time.Time) predicate.Platform
- func CreatedAtNEQ(v time.Time) predicate.Platform
- func CreatedAtNotIn(vs ...time.Time) predicate.Platform
- func Description(v string) predicate.Platform
- func DescriptionContains(v string) predicate.Platform
- func DescriptionContainsFold(v string) predicate.Platform
- func DescriptionEQ(v string) predicate.Platform
- func DescriptionEqualFold(v string) predicate.Platform
- func DescriptionGT(v string) predicate.Platform
- func DescriptionGTE(v string) predicate.Platform
- func DescriptionHasPrefix(v string) predicate.Platform
- func DescriptionHasSuffix(v string) predicate.Platform
- func DescriptionIn(vs ...string) predicate.Platform
- func DescriptionIsNil() predicate.Platform
- func DescriptionLT(v string) predicate.Platform
- func DescriptionLTE(v string) predicate.Platform
- func DescriptionNEQ(v string) predicate.Platform
- func DescriptionNotIn(vs ...string) predicate.Platform
- func DescriptionNotNil() predicate.Platform
- func HasTenants() predicate.Platform
- func HasTenantsWith(preds ...predicate.Tenant) predicate.Platform
- func ID(id uuid.UUID) predicate.Platform
- func IDEQ(id uuid.UUID) predicate.Platform
- func IDGT(id uuid.UUID) predicate.Platform
- func IDGTE(id uuid.UUID) predicate.Platform
- func IDIn(ids ...uuid.UUID) predicate.Platform
- func IDLT(id uuid.UUID) predicate.Platform
- func IDLTE(id uuid.UUID) predicate.Platform
- func IDNEQ(id uuid.UUID) predicate.Platform
- func IDNotIn(ids ...uuid.UUID) predicate.Platform
- func Name(v string) predicate.Platform
- func NameContains(v string) predicate.Platform
- func NameContainsFold(v string) predicate.Platform
- func NameEQ(v string) predicate.Platform
- func NameEqualFold(v string) predicate.Platform
- func NameGT(v string) predicate.Platform
- func NameGTE(v string) predicate.Platform
- func NameHasPrefix(v string) predicate.Platform
- func NameHasSuffix(v string) predicate.Platform
- func NameIn(vs ...string) predicate.Platform
- func NameLT(v string) predicate.Platform
- func NameLTE(v string) predicate.Platform
- func NameNEQ(v string) predicate.Platform
- func NameNotIn(vs ...string) predicate.Platform
- func Not(p predicate.Platform) predicate.Platform
- func Or(predicates ...predicate.Platform) predicate.Platform
- func Region(v string) predicate.Platform
- func RegionContains(v string) predicate.Platform
- func RegionContainsFold(v string) predicate.Platform
- func RegionEQ(v string) predicate.Platform
- func RegionEqualFold(v string) predicate.Platform
- func RegionGT(v string) predicate.Platform
- func RegionGTE(v string) predicate.Platform
- func RegionHasPrefix(v string) predicate.Platform
- func RegionHasSuffix(v string) predicate.Platform
- func RegionIn(vs ...string) predicate.Platform
- func RegionIsNil() predicate.Platform
- func RegionLT(v string) predicate.Platform
- func RegionLTE(v string) predicate.Platform
- func RegionNEQ(v string) predicate.Platform
- func RegionNotIn(vs ...string) predicate.Platform
- func RegionNotNil() predicate.Platform
- func StatusEQ(v Status) predicate.Platform
- func StatusIn(vs ...Status) predicate.Platform
- func StatusIsNil() predicate.Platform
- func StatusNEQ(v Status) predicate.Platform
- func StatusNotIn(vs ...Status) predicate.Platform
- func StatusNotNil() predicate.Platform
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Platform
- func UpdatedAtEQ(v time.Time) predicate.Platform
- func UpdatedAtGT(v time.Time) predicate.Platform
- func UpdatedAtGTE(v time.Time) predicate.Platform
- func UpdatedAtIn(vs ...time.Time) predicate.Platform
- func UpdatedAtLT(v time.Time) predicate.Platform
- func UpdatedAtLTE(v time.Time) predicate.Platform
- func UpdatedAtNEQ(v time.Time) predicate.Platform
- func UpdatedAtNotIn(vs ...time.Time) predicate.Platform
- func ValidColumn(column string) bool
- func Version(v string) predicate.Platform
- func VersionContains(v string) predicate.Platform
- func VersionContainsFold(v string) predicate.Platform
- func VersionEQ(v string) predicate.Platform
- func VersionEqualFold(v string) predicate.Platform
- func VersionGT(v string) predicate.Platform
- func VersionGTE(v string) predicate.Platform
- func VersionHasPrefix(v string) predicate.Platform
- func VersionHasSuffix(v string) predicate.Platform
- func VersionIn(vs ...string) predicate.Platform
- func VersionIsNil() predicate.Platform
- func VersionLT(v string) predicate.Platform
- func VersionLTE(v string) predicate.Platform
- func VersionNEQ(v string) predicate.Platform
- func VersionNotIn(vs ...string) predicate.Platform
- func VersionNotNil() predicate.Platform
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByRegion(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTenants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTenantsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the platform type in the database. Label = "platform" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldRegion holds the string denoting the region field in the database. FieldRegion = "region" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldConfig holds the string denoting the config field in the database. FieldConfig = "config" // EdgeTenants holds the string denoting the tenants edge name in mutations. EdgeTenants = "tenants" // Table holds the table name of the platform in the database. Table = "platforms" // TenantsTable is the table that holds the tenants relation/edge. TenantsTable = "tenants" // TenantsInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. TenantsInverseTable = "tenants" // TenantsColumn is the table column denoting the tenants relation/edge. TenantsColumn = "platform_tenants" )
const DefaultStatus = StatusActive
StatusActive is the default value of the Status enum.
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldName, FieldDescription, FieldRegion, FieldVersion, FieldStatus, FieldConfig, }
Columns holds all SQL columns for platform fields.
Functions ¶
func ConfigIsNil ¶
ConfigIsNil applies the IsNil predicate on the "config" field.
func ConfigNotNil ¶
ConfigNotNil applies the NotNil predicate on the "config" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasTenants ¶
HasTenants applies the HasEdge predicate on the "tenants" edge.
func HasTenantsWith ¶
HasTenantsWith applies the HasEdge predicate on the "tenants" edge with a given conditions (other predicates).
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Region ¶
Region applies equality check predicate on the "region" field. It's identical to RegionEQ.
func RegionContains ¶
RegionContains applies the Contains predicate on the "region" field.
func RegionContainsFold ¶
RegionContainsFold applies the ContainsFold predicate on the "region" field.
func RegionEqualFold ¶
RegionEqualFold applies the EqualFold predicate on the "region" field.
func RegionHasPrefix ¶
RegionHasPrefix applies the HasPrefix predicate on the "region" field.
func RegionHasSuffix ¶
RegionHasSuffix applies the HasSuffix predicate on the "region" field.
func RegionIsNil ¶
RegionIsNil applies the IsNil predicate on the "region" field.
func RegionNotIn ¶
RegionNotIn applies the NotIn predicate on the "region" field.
func RegionNotNil ¶
RegionNotNil applies the NotNil predicate on the "region" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIsNil ¶
VersionIsNil applies the IsNil predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotNil ¶
VersionNotNil applies the NotNil predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Platform queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByRegion ¶
func ByRegion(opts ...sql.OrderTermOption) OrderOption
ByRegion orders the results by the region field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTenants ¶
func ByTenants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTenants orders the results by tenants terms.
func ByTenantsCount ¶
func ByTenantsCount(opts ...sql.OrderTermOption) OrderOption
ByTenantsCount orders the results by tenants count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.