Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Group) predicate.Group
- func CreatedAt(v time.Time) predicate.Group
- func CreatedAtEQ(v time.Time) predicate.Group
- func CreatedAtGT(v time.Time) predicate.Group
- func CreatedAtGTE(v time.Time) predicate.Group
- func CreatedAtIn(vs ...time.Time) predicate.Group
- func CreatedAtLT(v time.Time) predicate.Group
- func CreatedAtLTE(v time.Time) predicate.Group
- func CreatedAtNEQ(v time.Time) predicate.Group
- func CreatedAtNotIn(vs ...time.Time) predicate.Group
- func DeletedAt(v time.Time) predicate.Group
- func DeletedAtEQ(v time.Time) predicate.Group
- func DeletedAtGT(v time.Time) predicate.Group
- func DeletedAtGTE(v time.Time) predicate.Group
- func DeletedAtIn(vs ...time.Time) predicate.Group
- func DeletedAtIsNil() predicate.Group
- func DeletedAtLT(v time.Time) predicate.Group
- func DeletedAtLTE(v time.Time) predicate.Group
- func DeletedAtNEQ(v time.Time) predicate.Group
- func DeletedAtNotIn(vs ...time.Time) predicate.Group
- func DeletedAtNotNil() predicate.Group
- func HasStoragePolicies() predicate.Group
- func HasStoragePoliciesWith(preds ...predicate.StoragePolicy) predicate.Group
- func HasUsers() predicate.Group
- func HasUsersWith(preds ...predicate.User) predicate.Group
- func ID(id int) predicate.Group
- func IDEQ(id int) predicate.Group
- func IDGT(id int) predicate.Group
- func IDGTE(id int) predicate.Group
- func IDIn(ids ...int) predicate.Group
- func IDLT(id int) predicate.Group
- func IDLTE(id int) predicate.Group
- func IDNEQ(id int) predicate.Group
- func IDNotIn(ids ...int) predicate.Group
- func MaxStorage(v int64) predicate.Group
- func MaxStorageEQ(v int64) predicate.Group
- func MaxStorageGT(v int64) predicate.Group
- func MaxStorageGTE(v int64) predicate.Group
- func MaxStorageIn(vs ...int64) predicate.Group
- func MaxStorageIsNil() predicate.Group
- func MaxStorageLT(v int64) predicate.Group
- func MaxStorageLTE(v int64) predicate.Group
- func MaxStorageNEQ(v int64) predicate.Group
- func MaxStorageNotIn(vs ...int64) predicate.Group
- func MaxStorageNotNil() predicate.Group
- func Name(v string) predicate.Group
- func NameContains(v string) predicate.Group
- func NameContainsFold(v string) predicate.Group
- func NameEQ(v string) predicate.Group
- func NameEqualFold(v string) predicate.Group
- func NameGT(v string) predicate.Group
- func NameGTE(v string) predicate.Group
- func NameHasPrefix(v string) predicate.Group
- func NameHasSuffix(v string) predicate.Group
- func NameIn(vs ...string) predicate.Group
- func NameLT(v string) predicate.Group
- func NameLTE(v string) predicate.Group
- func NameNEQ(v string) predicate.Group
- func NameNotIn(vs ...string) predicate.Group
- func Not(p predicate.Group) predicate.Group
- func Or(predicates ...predicate.Group) predicate.Group
- func Permissions(v *boolset.BooleanSet) predicate.Group
- func PermissionsEQ(v *boolset.BooleanSet) predicate.Group
- func PermissionsGT(v *boolset.BooleanSet) predicate.Group
- func PermissionsGTE(v *boolset.BooleanSet) predicate.Group
- func PermissionsIn(vs ...*boolset.BooleanSet) predicate.Group
- func PermissionsLT(v *boolset.BooleanSet) predicate.Group
- func PermissionsLTE(v *boolset.BooleanSet) predicate.Group
- func PermissionsNEQ(v *boolset.BooleanSet) predicate.Group
- func PermissionsNotIn(vs ...*boolset.BooleanSet) predicate.Group
- func SettingsIsNil() predicate.Group
- func SettingsNotNil() predicate.Group
- func SpeedLimit(v int) predicate.Group
- func SpeedLimitEQ(v int) predicate.Group
- func SpeedLimitGT(v int) predicate.Group
- func SpeedLimitGTE(v int) predicate.Group
- func SpeedLimitIn(vs ...int) predicate.Group
- func SpeedLimitIsNil() predicate.Group
- func SpeedLimitLT(v int) predicate.Group
- func SpeedLimitLTE(v int) predicate.Group
- func SpeedLimitNEQ(v int) predicate.Group
- func SpeedLimitNotIn(vs ...int) predicate.Group
- func SpeedLimitNotNil() predicate.Group
- func StoragePolicyID(v int) predicate.Group
- func StoragePolicyIDEQ(v int) predicate.Group
- func StoragePolicyIDIn(vs ...int) predicate.Group
- func StoragePolicyIDIsNil() predicate.Group
- func StoragePolicyIDNEQ(v int) predicate.Group
- func StoragePolicyIDNotIn(vs ...int) predicate.Group
- func StoragePolicyIDNotNil() predicate.Group
- func UpdatedAt(v time.Time) predicate.Group
- func UpdatedAtEQ(v time.Time) predicate.Group
- func UpdatedAtGT(v time.Time) predicate.Group
- func UpdatedAtGTE(v time.Time) predicate.Group
- func UpdatedAtIn(vs ...time.Time) predicate.Group
- func UpdatedAtLT(v time.Time) predicate.Group
- func UpdatedAtLTE(v time.Time) predicate.Group
- func UpdatedAtNEQ(v time.Time) predicate.Group
- func UpdatedAtNotIn(vs ...time.Time) predicate.Group
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxStorage(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func BySpeedLimit(opts ...sql.OrderTermOption) OrderOption
- func ByStoragePoliciesField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStoragePolicyID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the group type in the database. Label = "group" // 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" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldMaxStorage holds the string denoting the max_storage field in the database. FieldMaxStorage = "max_storage" // FieldSpeedLimit holds the string denoting the speed_limit field in the database. FieldSpeedLimit = "speed_limit" // FieldPermissions holds the string denoting the permissions field in the database. FieldPermissions = "permissions" // FieldSettings holds the string denoting the settings field in the database. FieldSettings = "settings" // FieldStoragePolicyID holds the string denoting the storage_policy_id field in the database. FieldStoragePolicyID = "storage_policy_id" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeStoragePolicies holds the string denoting the storage_policies edge name in mutations. EdgeStoragePolicies = "storage_policies" // Table holds the table name of the group in the database. Table = "groups" // UsersTable is the table that holds the users relation/edge. UsersTable = "users" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // UsersColumn is the table column denoting the users relation/edge. UsersColumn = "group_users" // StoragePoliciesTable is the table that holds the storage_policies relation/edge. StoragePoliciesTable = "groups" // StoragePoliciesInverseTable is the table name for the StoragePolicy entity. // It exists in this package in order to avoid circular dependency with the "storagepolicy" package. StoragePoliciesInverseTable = "storage_policies" // StoragePoliciesColumn is the table column denoting the storage_policies relation/edge. StoragePoliciesColumn = "storage_policy_id" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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 // DefaultSettings holds the default value on creation for the "settings" field. DefaultSettings *types.GroupSetting )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/cloudreve/Cloudreve/v4/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldMaxStorage, FieldSpeedLimit, FieldPermissions, FieldSettings, FieldStoragePolicyID, }
Columns holds all SQL columns for group fields.
Functions ¶
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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasStoragePolicies ¶
HasStoragePolicies applies the HasEdge predicate on the "storage_policies" edge.
func HasStoragePoliciesWith ¶
func HasStoragePoliciesWith(preds ...predicate.StoragePolicy) predicate.Group
HasStoragePoliciesWith applies the HasEdge predicate on the "storage_policies" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func MaxStorage ¶
MaxStorage applies equality check predicate on the "max_storage" field. It's identical to MaxStorageEQ.
func MaxStorageEQ ¶
MaxStorageEQ applies the EQ predicate on the "max_storage" field.
func MaxStorageGT ¶
MaxStorageGT applies the GT predicate on the "max_storage" field.
func MaxStorageGTE ¶
MaxStorageGTE applies the GTE predicate on the "max_storage" field.
func MaxStorageIn ¶
MaxStorageIn applies the In predicate on the "max_storage" field.
func MaxStorageIsNil ¶
MaxStorageIsNil applies the IsNil predicate on the "max_storage" field.
func MaxStorageLT ¶
MaxStorageLT applies the LT predicate on the "max_storage" field.
func MaxStorageLTE ¶
MaxStorageLTE applies the LTE predicate on the "max_storage" field.
func MaxStorageNEQ ¶
MaxStorageNEQ applies the NEQ predicate on the "max_storage" field.
func MaxStorageNotIn ¶
MaxStorageNotIn applies the NotIn predicate on the "max_storage" field.
func MaxStorageNotNil ¶
MaxStorageNotNil applies the NotNil predicate on the "max_storage" field.
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 Permissions ¶
func Permissions(v *boolset.BooleanSet) predicate.Group
Permissions applies equality check predicate on the "permissions" field. It's identical to PermissionsEQ.
func PermissionsEQ ¶
func PermissionsEQ(v *boolset.BooleanSet) predicate.Group
PermissionsEQ applies the EQ predicate on the "permissions" field.
func PermissionsGT ¶
func PermissionsGT(v *boolset.BooleanSet) predicate.Group
PermissionsGT applies the GT predicate on the "permissions" field.
func PermissionsGTE ¶
func PermissionsGTE(v *boolset.BooleanSet) predicate.Group
PermissionsGTE applies the GTE predicate on the "permissions" field.
func PermissionsIn ¶
func PermissionsIn(vs ...*boolset.BooleanSet) predicate.Group
PermissionsIn applies the In predicate on the "permissions" field.
func PermissionsLT ¶
func PermissionsLT(v *boolset.BooleanSet) predicate.Group
PermissionsLT applies the LT predicate on the "permissions" field.
func PermissionsLTE ¶
func PermissionsLTE(v *boolset.BooleanSet) predicate.Group
PermissionsLTE applies the LTE predicate on the "permissions" field.
func PermissionsNEQ ¶
func PermissionsNEQ(v *boolset.BooleanSet) predicate.Group
PermissionsNEQ applies the NEQ predicate on the "permissions" field.
func PermissionsNotIn ¶
func PermissionsNotIn(vs ...*boolset.BooleanSet) predicate.Group
PermissionsNotIn applies the NotIn predicate on the "permissions" field.
func SettingsIsNil ¶
SettingsIsNil applies the IsNil predicate on the "settings" field.
func SettingsNotNil ¶
SettingsNotNil applies the NotNil predicate on the "settings" field.
func SpeedLimit ¶
SpeedLimit applies equality check predicate on the "speed_limit" field. It's identical to SpeedLimitEQ.
func SpeedLimitEQ ¶
SpeedLimitEQ applies the EQ predicate on the "speed_limit" field.
func SpeedLimitGT ¶
SpeedLimitGT applies the GT predicate on the "speed_limit" field.
func SpeedLimitGTE ¶
SpeedLimitGTE applies the GTE predicate on the "speed_limit" field.
func SpeedLimitIn ¶
SpeedLimitIn applies the In predicate on the "speed_limit" field.
func SpeedLimitIsNil ¶
SpeedLimitIsNil applies the IsNil predicate on the "speed_limit" field.
func SpeedLimitLT ¶
SpeedLimitLT applies the LT predicate on the "speed_limit" field.
func SpeedLimitLTE ¶
SpeedLimitLTE applies the LTE predicate on the "speed_limit" field.
func SpeedLimitNEQ ¶
SpeedLimitNEQ applies the NEQ predicate on the "speed_limit" field.
func SpeedLimitNotIn ¶
SpeedLimitNotIn applies the NotIn predicate on the "speed_limit" field.
func SpeedLimitNotNil ¶
SpeedLimitNotNil applies the NotNil predicate on the "speed_limit" field.
func StoragePolicyID ¶
StoragePolicyID applies equality check predicate on the "storage_policy_id" field. It's identical to StoragePolicyIDEQ.
func StoragePolicyIDEQ ¶
StoragePolicyIDEQ applies the EQ predicate on the "storage_policy_id" field.
func StoragePolicyIDIn ¶
StoragePolicyIDIn applies the In predicate on the "storage_policy_id" field.
func StoragePolicyIDIsNil ¶
StoragePolicyIDIsNil applies the IsNil predicate on the "storage_policy_id" field.
func StoragePolicyIDNEQ ¶
StoragePolicyIDNEQ applies the NEQ predicate on the "storage_policy_id" field.
func StoragePolicyIDNotIn ¶
StoragePolicyIDNotIn applies the NotIn predicate on the "storage_policy_id" field.
func StoragePolicyIDNotNil ¶
StoragePolicyIDNotNil applies the NotNil predicate on the "storage_policy_id" field.
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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Group queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMaxStorage ¶
func ByMaxStorage(opts ...sql.OrderTermOption) OrderOption
ByMaxStorage orders the results by the max_storage field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func BySpeedLimit ¶
func BySpeedLimit(opts ...sql.OrderTermOption) OrderOption
BySpeedLimit orders the results by the speed_limit field.
func ByStoragePoliciesField ¶
func ByStoragePoliciesField(field string, opts ...sql.OrderTermOption) OrderOption
ByStoragePoliciesField orders the results by storage_policies field.
func ByStoragePolicyID ¶
func ByStoragePolicyID(opts ...sql.OrderTermOption) OrderOption
ByStoragePolicyID orders the results by the storage_policy_id field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.