namespace

package
v5.0.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for namespace fields.

Functions

func And

func And(predicates ...predicate.Namespace) predicate.Namespace

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Namespace

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Namespace

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Namespace

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Namespace

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Namespace

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Namespace

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Namespace

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Namespace

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Namespace

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatorEmail

func CreatorEmail(v string) predicate.Namespace

CreatorEmail applies equality check predicate on the "creator_email" field. It's identical to CreatorEmailEQ.

func CreatorEmailContains

func CreatorEmailContains(v string) predicate.Namespace

CreatorEmailContains applies the Contains predicate on the "creator_email" field.

func CreatorEmailContainsFold

func CreatorEmailContainsFold(v string) predicate.Namespace

CreatorEmailContainsFold applies the ContainsFold predicate on the "creator_email" field.

func CreatorEmailEQ

func CreatorEmailEQ(v string) predicate.Namespace

CreatorEmailEQ applies the EQ predicate on the "creator_email" field.

func CreatorEmailEqualFold

func CreatorEmailEqualFold(v string) predicate.Namespace

CreatorEmailEqualFold applies the EqualFold predicate on the "creator_email" field.

func CreatorEmailGT

func CreatorEmailGT(v string) predicate.Namespace

CreatorEmailGT applies the GT predicate on the "creator_email" field.

func CreatorEmailGTE

func CreatorEmailGTE(v string) predicate.Namespace

CreatorEmailGTE applies the GTE predicate on the "creator_email" field.

func CreatorEmailHasPrefix

func CreatorEmailHasPrefix(v string) predicate.Namespace

CreatorEmailHasPrefix applies the HasPrefix predicate on the "creator_email" field.

func CreatorEmailHasSuffix

func CreatorEmailHasSuffix(v string) predicate.Namespace

CreatorEmailHasSuffix applies the HasSuffix predicate on the "creator_email" field.

func CreatorEmailIn

func CreatorEmailIn(vs ...string) predicate.Namespace

CreatorEmailIn applies the In predicate on the "creator_email" field.

func CreatorEmailLT

func CreatorEmailLT(v string) predicate.Namespace

CreatorEmailLT applies the LT predicate on the "creator_email" field.

func CreatorEmailLTE

func CreatorEmailLTE(v string) predicate.Namespace

CreatorEmailLTE applies the LTE predicate on the "creator_email" field.

func CreatorEmailNEQ

func CreatorEmailNEQ(v string) predicate.Namespace

CreatorEmailNEQ applies the NEQ predicate on the "creator_email" field.

func CreatorEmailNotIn

func CreatorEmailNotIn(vs ...string) predicate.Namespace

CreatorEmailNotIn applies the NotIn predicate on the "creator_email" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Namespace

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Namespace

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Namespace

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Namespace

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Namespace

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Namespace

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Namespace

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Namespace

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Namespace

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Namespace

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Namespace

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Description

func Description(v string) predicate.Namespace

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Namespace

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Namespace

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Namespace

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Namespace

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Namespace

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Namespace

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Namespace

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Namespace

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Namespace

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Namespace

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Namespace

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Namespace

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Namespace

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Namespace

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Namespace

DescriptionNotNil applies the NotNil predicate on the "description" field.

func HasFavorites

func HasFavorites() predicate.Namespace

HasFavorites applies the HasEdge predicate on the "favorites" edge.

func HasFavoritesWith

func HasFavoritesWith(preds ...predicate.Favorite) predicate.Namespace

HasFavoritesWith applies the HasEdge predicate on the "favorites" edge with a given conditions (other predicates).

func HasMembers

func HasMembers() predicate.Namespace

HasMembers applies the HasEdge predicate on the "members" edge.

func HasMembersWith

func HasMembersWith(preds ...predicate.Member) predicate.Namespace

HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).

func HasProjects

func HasProjects() predicate.Namespace

HasProjects applies the HasEdge predicate on the "projects" edge.

func HasProjectsWith

func HasProjectsWith(preds ...predicate.Project) predicate.Namespace

HasProjectsWith applies the HasEdge predicate on the "projects" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.Namespace

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Namespace

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Namespace

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Namespace

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Namespace

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Namespace

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Namespace

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Namespace

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Namespace

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.Namespace

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Namespace

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Namespace

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Namespace

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Namespace

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Namespace

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Namespace

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Namespace

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Namespace

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Namespace

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Namespace

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Namespace

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Namespace

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Namespace

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Namespace) predicate.Namespace

Or groups predicates with the OR operator between them.

func Private

func Private(v bool) predicate.Namespace

Private applies equality check predicate on the "private" field. It's identical to PrivateEQ.

func PrivateEQ

func PrivateEQ(v bool) predicate.Namespace

PrivateEQ applies the EQ predicate on the "private" field.

func PrivateNEQ

func PrivateNEQ(v bool) predicate.Namespace

PrivateNEQ applies the NEQ predicate on the "private" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Namespace

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Namespace

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Namespace

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Namespace

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Namespace

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Namespace

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Namespace

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Namespace

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Namespace

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL