repo

package
v5.0.0-beta.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the repo type in the database.
	Label = "repo"
	// 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"
	// FieldDefaultBranch holds the string denoting the default_branch field in the database.
	FieldDefaultBranch = "default_branch"
	// FieldGitProjectName holds the string denoting the git_project_name field in the database.
	FieldGitProjectName = "git_project_name"
	// FieldGitProjectID holds the string denoting the git_project_id field in the database.
	FieldGitProjectID = "git_project_id"
	// FieldEnabled holds the string denoting the enabled field in the database.
	FieldEnabled = "enabled"
	// FieldNeedGitRepo holds the string denoting the need_git_repo field in the database.
	FieldNeedGitRepo = "need_git_repo"
	// FieldMarsConfig holds the string denoting the mars_config field in the database.
	FieldMarsConfig = "mars_config"
	// 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"
	// Table holds the table name of the repo in the database.
	Table = "repos"
	// 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 = "repo_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
	// DefaultBranchValidator is a validator for the "default_branch" field. It is called by the builders before save.
	DefaultBranchValidator func(string) error
	// DefaultEnabled holds the default value on creation for the "enabled" field.
	DefaultEnabled bool
	// DefaultNeedGitRepo holds the default value on creation for the "need_git_repo" field.
	DefaultNeedGitRepo bool
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
)

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 repo fields.

Functions

func And

func And(predicates ...predicate.Repo) predicate.Repo

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Repo

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Repo

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Repo

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Repo

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Repo

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Repo

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Repo

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

func CreatedAtNotIn

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

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

func DefaultBranch

func DefaultBranch(v string) predicate.Repo

DefaultBranch applies equality check predicate on the "default_branch" field. It's identical to DefaultBranchEQ.

func DefaultBranchContains

func DefaultBranchContains(v string) predicate.Repo

DefaultBranchContains applies the Contains predicate on the "default_branch" field.

func DefaultBranchContainsFold

func DefaultBranchContainsFold(v string) predicate.Repo

DefaultBranchContainsFold applies the ContainsFold predicate on the "default_branch" field.

func DefaultBranchEQ

func DefaultBranchEQ(v string) predicate.Repo

DefaultBranchEQ applies the EQ predicate on the "default_branch" field.

func DefaultBranchEqualFold

func DefaultBranchEqualFold(v string) predicate.Repo

DefaultBranchEqualFold applies the EqualFold predicate on the "default_branch" field.

func DefaultBranchGT

func DefaultBranchGT(v string) predicate.Repo

DefaultBranchGT applies the GT predicate on the "default_branch" field.

func DefaultBranchGTE

func DefaultBranchGTE(v string) predicate.Repo

DefaultBranchGTE applies the GTE predicate on the "default_branch" field.

func DefaultBranchHasPrefix

func DefaultBranchHasPrefix(v string) predicate.Repo

DefaultBranchHasPrefix applies the HasPrefix predicate on the "default_branch" field.

func DefaultBranchHasSuffix

func DefaultBranchHasSuffix(v string) predicate.Repo

DefaultBranchHasSuffix applies the HasSuffix predicate on the "default_branch" field.

func DefaultBranchIn

func DefaultBranchIn(vs ...string) predicate.Repo

DefaultBranchIn applies the In predicate on the "default_branch" field.

func DefaultBranchIsNil

func DefaultBranchIsNil() predicate.Repo

DefaultBranchIsNil applies the IsNil predicate on the "default_branch" field.

func DefaultBranchLT

func DefaultBranchLT(v string) predicate.Repo

DefaultBranchLT applies the LT predicate on the "default_branch" field.

func DefaultBranchLTE

func DefaultBranchLTE(v string) predicate.Repo

DefaultBranchLTE applies the LTE predicate on the "default_branch" field.

func DefaultBranchNEQ

func DefaultBranchNEQ(v string) predicate.Repo

DefaultBranchNEQ applies the NEQ predicate on the "default_branch" field.

func DefaultBranchNotIn

func DefaultBranchNotIn(vs ...string) predicate.Repo

DefaultBranchNotIn applies the NotIn predicate on the "default_branch" field.

func DefaultBranchNotNil

func DefaultBranchNotNil() predicate.Repo

DefaultBranchNotNil applies the NotNil predicate on the "default_branch" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Repo

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Repo

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Repo

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Repo

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Repo

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Repo

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Repo

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Repo

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Repo

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

func Description

func Description(v string) predicate.Repo

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

func DescriptionContains

func DescriptionContains(v string) predicate.Repo

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Repo

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Repo

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Repo

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

func DescriptionGT

func DescriptionGT(v string) predicate.Repo

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Repo

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Repo

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Repo

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

func DescriptionIn

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

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

func DescriptionLT

func DescriptionLT(v string) predicate.Repo

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Repo

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Repo

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

func DescriptionNotIn

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

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

func Enabled

func Enabled(v bool) predicate.Repo

Enabled applies equality check predicate on the "enabled" field. It's identical to EnabledEQ.

func EnabledEQ

func EnabledEQ(v bool) predicate.Repo

EnabledEQ applies the EQ predicate on the "enabled" field.

func EnabledNEQ

func EnabledNEQ(v bool) predicate.Repo

EnabledNEQ applies the NEQ predicate on the "enabled" field.

func GitProjectID

func GitProjectID(v int32) predicate.Repo

GitProjectID applies equality check predicate on the "git_project_id" field. It's identical to GitProjectIDEQ.

func GitProjectIDEQ

func GitProjectIDEQ(v int32) predicate.Repo

GitProjectIDEQ applies the EQ predicate on the "git_project_id" field.

func GitProjectIDGT

func GitProjectIDGT(v int32) predicate.Repo

GitProjectIDGT applies the GT predicate on the "git_project_id" field.

func GitProjectIDGTE

func GitProjectIDGTE(v int32) predicate.Repo

GitProjectIDGTE applies the GTE predicate on the "git_project_id" field.

func GitProjectIDIn

func GitProjectIDIn(vs ...int32) predicate.Repo

GitProjectIDIn applies the In predicate on the "git_project_id" field.

func GitProjectIDIsNil

func GitProjectIDIsNil() predicate.Repo

GitProjectIDIsNil applies the IsNil predicate on the "git_project_id" field.

func GitProjectIDLT

func GitProjectIDLT(v int32) predicate.Repo

GitProjectIDLT applies the LT predicate on the "git_project_id" field.

func GitProjectIDLTE

func GitProjectIDLTE(v int32) predicate.Repo

GitProjectIDLTE applies the LTE predicate on the "git_project_id" field.

func GitProjectIDNEQ

func GitProjectIDNEQ(v int32) predicate.Repo

GitProjectIDNEQ applies the NEQ predicate on the "git_project_id" field.

func GitProjectIDNotIn

func GitProjectIDNotIn(vs ...int32) predicate.Repo

GitProjectIDNotIn applies the NotIn predicate on the "git_project_id" field.

func GitProjectIDNotNil

func GitProjectIDNotNil() predicate.Repo

GitProjectIDNotNil applies the NotNil predicate on the "git_project_id" field.

func GitProjectName

func GitProjectName(v string) predicate.Repo

GitProjectName applies equality check predicate on the "git_project_name" field. It's identical to GitProjectNameEQ.

func GitProjectNameContains

func GitProjectNameContains(v string) predicate.Repo

GitProjectNameContains applies the Contains predicate on the "git_project_name" field.

func GitProjectNameContainsFold

func GitProjectNameContainsFold(v string) predicate.Repo

GitProjectNameContainsFold applies the ContainsFold predicate on the "git_project_name" field.

func GitProjectNameEQ

func GitProjectNameEQ(v string) predicate.Repo

GitProjectNameEQ applies the EQ predicate on the "git_project_name" field.

func GitProjectNameEqualFold

func GitProjectNameEqualFold(v string) predicate.Repo

GitProjectNameEqualFold applies the EqualFold predicate on the "git_project_name" field.

func GitProjectNameGT

func GitProjectNameGT(v string) predicate.Repo

GitProjectNameGT applies the GT predicate on the "git_project_name" field.

func GitProjectNameGTE

func GitProjectNameGTE(v string) predicate.Repo

GitProjectNameGTE applies the GTE predicate on the "git_project_name" field.

func GitProjectNameHasPrefix

func GitProjectNameHasPrefix(v string) predicate.Repo

GitProjectNameHasPrefix applies the HasPrefix predicate on the "git_project_name" field.

func GitProjectNameHasSuffix

func GitProjectNameHasSuffix(v string) predicate.Repo

GitProjectNameHasSuffix applies the HasSuffix predicate on the "git_project_name" field.

func GitProjectNameIn

func GitProjectNameIn(vs ...string) predicate.Repo

GitProjectNameIn applies the In predicate on the "git_project_name" field.

func GitProjectNameIsNil

func GitProjectNameIsNil() predicate.Repo

GitProjectNameIsNil applies the IsNil predicate on the "git_project_name" field.

func GitProjectNameLT

func GitProjectNameLT(v string) predicate.Repo

GitProjectNameLT applies the LT predicate on the "git_project_name" field.

func GitProjectNameLTE

func GitProjectNameLTE(v string) predicate.Repo

GitProjectNameLTE applies the LTE predicate on the "git_project_name" field.

func GitProjectNameNEQ

func GitProjectNameNEQ(v string) predicate.Repo

GitProjectNameNEQ applies the NEQ predicate on the "git_project_name" field.

func GitProjectNameNotIn

func GitProjectNameNotIn(vs ...string) predicate.Repo

GitProjectNameNotIn applies the NotIn predicate on the "git_project_name" field.

func GitProjectNameNotNil

func GitProjectNameNotNil() predicate.Repo

GitProjectNameNotNil applies the NotNil predicate on the "git_project_name" field.

func HasProjects

func HasProjects() predicate.Repo

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

func HasProjectsWith

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

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

func ID

func ID(id int) predicate.Repo

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Repo

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Repo

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Repo

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Repo

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Repo

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Repo

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func MarsConfigIsNil

func MarsConfigIsNil() predicate.Repo

MarsConfigIsNil applies the IsNil predicate on the "mars_config" field.

func MarsConfigNotNil

func MarsConfigNotNil() predicate.Repo

MarsConfigNotNil applies the NotNil predicate on the "mars_config" field.

func Name

func Name(v string) predicate.Repo

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

func NameContains

func NameContains(v string) predicate.Repo

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

func NameContainsFold

func NameContainsFold(v string) predicate.Repo

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

func NameEQ

func NameEQ(v string) predicate.Repo

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

func NameEqualFold

func NameEqualFold(v string) predicate.Repo

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

func NameGT

func NameGT(v string) predicate.Repo

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

func NameGTE

func NameGTE(v string) predicate.Repo

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Repo

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Repo

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Repo

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

func NameLTE

func NameLTE(v string) predicate.Repo

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

func NameNEQ

func NameNEQ(v string) predicate.Repo

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

func NameNotIn

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

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

func NeedGitRepo

func NeedGitRepo(v bool) predicate.Repo

NeedGitRepo applies equality check predicate on the "need_git_repo" field. It's identical to NeedGitRepoEQ.

func NeedGitRepoEQ

func NeedGitRepoEQ(v bool) predicate.Repo

NeedGitRepoEQ applies the EQ predicate on the "need_git_repo" field.

func NeedGitRepoNEQ

func NeedGitRepoNEQ(v bool) predicate.Repo

NeedGitRepoNEQ applies the NEQ predicate on the "need_git_repo" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Repo) predicate.Repo

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Repo

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Repo

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Repo

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Repo

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Repo

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Repo

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Repo

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

func UpdatedAtNotIn

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

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 Repo queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDefaultBranch

func ByDefaultBranch(opts ...sql.OrderTermOption) OrderOption

ByDefaultBranch orders the results by the default_branch 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 ByEnabled

func ByEnabled(opts ...sql.OrderTermOption) OrderOption

ByEnabled orders the results by the enabled field.

func ByGitProjectID

func ByGitProjectID(opts ...sql.OrderTermOption) OrderOption

ByGitProjectID orders the results by the git_project_id field.

func ByGitProjectName

func ByGitProjectName(opts ...sql.OrderTermOption) OrderOption

ByGitProjectName orders the results by the git_project_name 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 ByNeedGitRepo

func ByNeedGitRepo(opts ...sql.OrderTermOption) OrderOption

ByNeedGitRepo orders the results by the need_git_repo 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