Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Namespace) predicate.Namespace
- func CreatedAt(v time.Time) predicate.Namespace
- func CreatedAtEQ(v time.Time) predicate.Namespace
- func CreatedAtGT(v time.Time) predicate.Namespace
- func CreatedAtGTE(v time.Time) predicate.Namespace
- func CreatedAtIn(vs ...time.Time) predicate.Namespace
- func CreatedAtLT(v time.Time) predicate.Namespace
- func CreatedAtLTE(v time.Time) predicate.Namespace
- func CreatedAtNEQ(v time.Time) predicate.Namespace
- func CreatedAtNotIn(vs ...time.Time) predicate.Namespace
- func CreatorEmail(v string) predicate.Namespace
- func CreatorEmailContains(v string) predicate.Namespace
- func CreatorEmailContainsFold(v string) predicate.Namespace
- func CreatorEmailEQ(v string) predicate.Namespace
- func CreatorEmailEqualFold(v string) predicate.Namespace
- func CreatorEmailGT(v string) predicate.Namespace
- func CreatorEmailGTE(v string) predicate.Namespace
- func CreatorEmailHasPrefix(v string) predicate.Namespace
- func CreatorEmailHasSuffix(v string) predicate.Namespace
- func CreatorEmailIn(vs ...string) predicate.Namespace
- func CreatorEmailLT(v string) predicate.Namespace
- func CreatorEmailLTE(v string) predicate.Namespace
- func CreatorEmailNEQ(v string) predicate.Namespace
- func CreatorEmailNotIn(vs ...string) predicate.Namespace
- func DeletedAt(v time.Time) predicate.Namespace
- func DeletedAtEQ(v time.Time) predicate.Namespace
- func DeletedAtGT(v time.Time) predicate.Namespace
- func DeletedAtGTE(v time.Time) predicate.Namespace
- func DeletedAtIn(vs ...time.Time) predicate.Namespace
- func DeletedAtIsNil() predicate.Namespace
- func DeletedAtLT(v time.Time) predicate.Namespace
- func DeletedAtLTE(v time.Time) predicate.Namespace
- func DeletedAtNEQ(v time.Time) predicate.Namespace
- func DeletedAtNotIn(vs ...time.Time) predicate.Namespace
- func DeletedAtNotNil() predicate.Namespace
- func Description(v string) predicate.Namespace
- func DescriptionContains(v string) predicate.Namespace
- func DescriptionContainsFold(v string) predicate.Namespace
- func DescriptionEQ(v string) predicate.Namespace
- func DescriptionEqualFold(v string) predicate.Namespace
- func DescriptionGT(v string) predicate.Namespace
- func DescriptionGTE(v string) predicate.Namespace
- func DescriptionHasPrefix(v string) predicate.Namespace
- func DescriptionHasSuffix(v string) predicate.Namespace
- func DescriptionIn(vs ...string) predicate.Namespace
- func DescriptionIsNil() predicate.Namespace
- func DescriptionLT(v string) predicate.Namespace
- func DescriptionLTE(v string) predicate.Namespace
- func DescriptionNEQ(v string) predicate.Namespace
- func DescriptionNotIn(vs ...string) predicate.Namespace
- func DescriptionNotNil() predicate.Namespace
- func HasFavorites() predicate.Namespace
- func HasFavoritesWith(preds ...predicate.Favorite) predicate.Namespace
- func HasMembers() predicate.Namespace
- func HasMembersWith(preds ...predicate.Member) predicate.Namespace
- func HasProjects() predicate.Namespace
- func HasProjectsWith(preds ...predicate.Project) predicate.Namespace
- func ID(id int) predicate.Namespace
- func IDEQ(id int) predicate.Namespace
- func IDGT(id int) predicate.Namespace
- func IDGTE(id int) predicate.Namespace
- func IDIn(ids ...int) predicate.Namespace
- func IDLT(id int) predicate.Namespace
- func IDLTE(id int) predicate.Namespace
- func IDNEQ(id int) predicate.Namespace
- func IDNotIn(ids ...int) predicate.Namespace
- func Name(v string) predicate.Namespace
- func NameContains(v string) predicate.Namespace
- func NameContainsFold(v string) predicate.Namespace
- func NameEQ(v string) predicate.Namespace
- func NameEqualFold(v string) predicate.Namespace
- func NameGT(v string) predicate.Namespace
- func NameGTE(v string) predicate.Namespace
- func NameHasPrefix(v string) predicate.Namespace
- func NameHasSuffix(v string) predicate.Namespace
- func NameIn(vs ...string) predicate.Namespace
- func NameLT(v string) predicate.Namespace
- func NameLTE(v string) predicate.Namespace
- func NameNEQ(v string) predicate.Namespace
- func NameNotIn(vs ...string) predicate.Namespace
- func Not(p predicate.Namespace) predicate.Namespace
- func Or(predicates ...predicate.Namespace) predicate.Namespace
- func Private(v bool) predicate.Namespace
- func PrivateEQ(v bool) predicate.Namespace
- func PrivateNEQ(v bool) predicate.Namespace
- func UpdatedAt(v time.Time) predicate.Namespace
- func UpdatedAtEQ(v time.Time) predicate.Namespace
- func UpdatedAtGT(v time.Time) predicate.Namespace
- func UpdatedAtGTE(v time.Time) predicate.Namespace
- func UpdatedAtIn(vs ...time.Time) predicate.Namespace
- func UpdatedAtLT(v time.Time) predicate.Namespace
- func UpdatedAtLTE(v time.Time) predicate.Namespace
- func UpdatedAtNEQ(v time.Time) predicate.Namespace
- func UpdatedAtNotIn(vs ...time.Time) predicate.Namespace
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatorEmail(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByFavorites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFavoritesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPrivate(opts ...sql.OrderTermOption) OrderOption
- func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the namespace type in the database. Label = "namespace" // 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" // FieldImagePullSecrets holds the string denoting the image_pull_secrets field in the database. FieldImagePullSecrets = "image_pull_secrets" // FieldPrivate holds the string denoting the private field in the database. FieldPrivate = "private" // FieldCreatorEmail holds the string denoting the creator_email field in the database. FieldCreatorEmail = "creator_email" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // EdgeProjects holds the string denoting the projects edge name in mutations. EdgeProjects = "projects" // EdgeFavorites holds the string denoting the favorites edge name in mutations. EdgeFavorites = "favorites" // EdgeMembers holds the string denoting the members edge name in mutations. EdgeMembers = "members" // Table holds the table name of the namespace in the database. Table = "namespaces" // ProjectsTable is the table that holds the projects relation/edge. ProjectsTable = "projects" // ProjectsInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectsInverseTable = "projects" // ProjectsColumn is the table column denoting the projects relation/edge. ProjectsColumn = "namespace_id" // FavoritesTable is the table that holds the favorites relation/edge. FavoritesTable = "favorites" // FavoritesInverseTable is the table name for the Favorite entity. // It exists in this package in order to avoid circular dependency with the "favorite" package. FavoritesInverseTable = "favorites" // FavoritesColumn is the table column denoting the favorites relation/edge. FavoritesColumn = "namespace_id" // MembersTable is the table that holds the members relation/edge. MembersTable = "members" // MembersInverseTable is the table name for the Member entity. // It exists in this package in order to avoid circular dependency with the "member" package. MembersInverseTable = "members" // MembersColumn is the table column denoting the members relation/edge. MembersColumn = "namespace_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 // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultImagePullSecrets holds the default value on creation for the "image_pull_secrets" field. DefaultImagePullSecrets []string // DefaultPrivate holds the default value on creation for the "private" field. DefaultPrivate bool // CreatorEmailValidator is a validator for the "creator_email" field. It is called by the builders before save. CreatorEmailValidator func(string) error )
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/duc-cnzj/mars/v5/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldImagePullSecrets, FieldPrivate, FieldCreatorEmail, FieldDescription, }
Columns holds all SQL columns for namespace 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 CreatorEmail ¶
CreatorEmail applies equality check predicate on the "creator_email" field. It's identical to CreatorEmailEQ.
func CreatorEmailContains ¶
CreatorEmailContains applies the Contains predicate on the "creator_email" field.
func CreatorEmailContainsFold ¶
CreatorEmailContainsFold applies the ContainsFold predicate on the "creator_email" field.
func CreatorEmailEQ ¶
CreatorEmailEQ applies the EQ predicate on the "creator_email" field.
func CreatorEmailEqualFold ¶
CreatorEmailEqualFold applies the EqualFold predicate on the "creator_email" field.
func CreatorEmailGT ¶
CreatorEmailGT applies the GT predicate on the "creator_email" field.
func CreatorEmailGTE ¶
CreatorEmailGTE applies the GTE predicate on the "creator_email" field.
func CreatorEmailHasPrefix ¶
CreatorEmailHasPrefix applies the HasPrefix predicate on the "creator_email" field.
func CreatorEmailHasSuffix ¶
CreatorEmailHasSuffix applies the HasSuffix predicate on the "creator_email" field.
func CreatorEmailIn ¶
CreatorEmailIn applies the In predicate on the "creator_email" field.
func CreatorEmailLT ¶
CreatorEmailLT applies the LT predicate on the "creator_email" field.
func CreatorEmailLTE ¶
CreatorEmailLTE applies the LTE predicate on the "creator_email" field.
func CreatorEmailNEQ ¶
CreatorEmailNEQ applies the NEQ predicate on the "creator_email" field.
func CreatorEmailNotIn ¶
CreatorEmailNotIn applies the NotIn predicate on the "creator_email" 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 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 HasFavorites ¶
HasFavorites applies the HasEdge predicate on the "favorites" edge.
func HasFavoritesWith ¶
HasFavoritesWith applies the HasEdge predicate on the "favorites" edge with a given conditions (other predicates).
func HasMembers ¶
HasMembers applies the HasEdge predicate on the "members" edge.
func HasMembersWith ¶
HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).
func HasProjects ¶
HasProjects applies the HasEdge predicate on the "projects" edge.
func HasProjectsWith ¶
HasProjectsWith applies the HasEdge predicate on the "projects" 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 Private ¶
Private applies equality check predicate on the "private" field. It's identical to PrivateEQ.
func PrivateNEQ ¶
PrivateNEQ applies the NEQ predicate on the "private" 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 Namespace queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatorEmail ¶
func ByCreatorEmail(opts ...sql.OrderTermOption) OrderOption
ByCreatorEmail orders the results by the creator_email field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByFavorites ¶
func ByFavorites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFavorites orders the results by favorites terms.
func ByFavoritesCount ¶
func ByFavoritesCount(opts ...sql.OrderTermOption) OrderOption
ByFavoritesCount orders the results by favorites count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMembers ¶
func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMembers orders the results by members terms.
func ByMembersCount ¶
func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
ByMembersCount orders the results by members count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPrivate ¶
func ByPrivate(opts ...sql.OrderTermOption) OrderOption
ByPrivate orders the results by the private field.
func ByProjects ¶
func ByProjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProjects orders the results by projects terms.
func ByProjectsCount ¶
func ByProjectsCount(opts ...sql.OrderTermOption) OrderOption
ByProjectsCount orders the results by projects count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.