Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Catalog) predicate.Catalog
- func AnnotationsIsNil() predicate.Catalog
- func AnnotationsNotNil() predicate.Catalog
- func CreateTime(v time.Time) predicate.Catalog
- func CreateTimeEQ(v time.Time) predicate.Catalog
- func CreateTimeGT(v time.Time) predicate.Catalog
- func CreateTimeGTE(v time.Time) predicate.Catalog
- func CreateTimeIn(vs ...time.Time) predicate.Catalog
- func CreateTimeLT(v time.Time) predicate.Catalog
- func CreateTimeLTE(v time.Time) predicate.Catalog
- func CreateTimeNEQ(v time.Time) predicate.Catalog
- func CreateTimeNotIn(vs ...time.Time) predicate.Catalog
- func Description(v string) predicate.Catalog
- func DescriptionContains(v string) predicate.Catalog
- func DescriptionContainsFold(v string) predicate.Catalog
- func DescriptionEQ(v string) predicate.Catalog
- func DescriptionEqualFold(v string) predicate.Catalog
- func DescriptionGT(v string) predicate.Catalog
- func DescriptionGTE(v string) predicate.Catalog
- func DescriptionHasPrefix(v string) predicate.Catalog
- func DescriptionHasSuffix(v string) predicate.Catalog
- func DescriptionIn(vs ...string) predicate.Catalog
- func DescriptionIsNil() predicate.Catalog
- func DescriptionLT(v string) predicate.Catalog
- func DescriptionLTE(v string) predicate.Catalog
- func DescriptionNEQ(v string) predicate.Catalog
- func DescriptionNotIn(vs ...string) predicate.Catalog
- func DescriptionNotNil() predicate.Catalog
- func FilterPattern(v string) predicate.Catalog
- func FilterPatternContains(v string) predicate.Catalog
- func FilterPatternContainsFold(v string) predicate.Catalog
- func FilterPatternEQ(v string) predicate.Catalog
- func FilterPatternEqualFold(v string) predicate.Catalog
- func FilterPatternGT(v string) predicate.Catalog
- func FilterPatternGTE(v string) predicate.Catalog
- func FilterPatternHasPrefix(v string) predicate.Catalog
- func FilterPatternHasSuffix(v string) predicate.Catalog
- func FilterPatternIn(vs ...string) predicate.Catalog
- func FilterPatternIsNil() predicate.Catalog
- func FilterPatternLT(v string) predicate.Catalog
- func FilterPatternLTE(v string) predicate.Catalog
- func FilterPatternNEQ(v string) predicate.Catalog
- func FilterPatternNotIn(vs ...string) predicate.Catalog
- func FilterPatternNotNil() predicate.Catalog
- func HasProject() predicate.Catalog
- func HasProjectWith(preds ...predicate.Project) predicate.Catalog
- func HasTemplates() predicate.Catalog
- func HasTemplatesWith(preds ...predicate.Template) predicate.Catalog
- func ID(id object.ID) predicate.Catalog
- func IDEQ(id object.ID) predicate.Catalog
- func IDGT(id object.ID) predicate.Catalog
- func IDGTE(id object.ID) predicate.Catalog
- func IDIn(ids ...object.ID) predicate.Catalog
- func IDLT(id object.ID) predicate.Catalog
- func IDLTE(id object.ID) predicate.Catalog
- func IDNEQ(id object.ID) predicate.Catalog
- func IDNotIn(ids ...object.ID) predicate.Catalog
- func LabelsIsNil() predicate.Catalog
- func LabelsNotNil() predicate.Catalog
- func Name(v string) predicate.Catalog
- func NameContains(v string) predicate.Catalog
- func NameContainsFold(v string) predicate.Catalog
- func NameEQ(v string) predicate.Catalog
- func NameEqualFold(v string) predicate.Catalog
- func NameGT(v string) predicate.Catalog
- func NameGTE(v string) predicate.Catalog
- func NameHasPrefix(v string) predicate.Catalog
- func NameHasSuffix(v string) predicate.Catalog
- func NameIn(vs ...string) predicate.Catalog
- func NameLT(v string) predicate.Catalog
- func NameLTE(v string) predicate.Catalog
- func NameNEQ(v string) predicate.Catalog
- func NameNotIn(vs ...string) predicate.Catalog
- func Not(p predicate.Catalog) predicate.Catalog
- func Or(predicates ...predicate.Catalog) predicate.Catalog
- func ProjectID(v object.ID) predicate.Catalog
- func ProjectIDContains(v object.ID) predicate.Catalog
- func ProjectIDContainsFold(v object.ID) predicate.Catalog
- func ProjectIDEQ(v object.ID) predicate.Catalog
- func ProjectIDEqualFold(v object.ID) predicate.Catalog
- func ProjectIDGT(v object.ID) predicate.Catalog
- func ProjectIDGTE(v object.ID) predicate.Catalog
- func ProjectIDHasPrefix(v object.ID) predicate.Catalog
- func ProjectIDHasSuffix(v object.ID) predicate.Catalog
- func ProjectIDIn(vs ...object.ID) predicate.Catalog
- func ProjectIDIsNil() predicate.Catalog
- func ProjectIDLT(v object.ID) predicate.Catalog
- func ProjectIDLTE(v object.ID) predicate.Catalog
- func ProjectIDNEQ(v object.ID) predicate.Catalog
- func ProjectIDNotIn(vs ...object.ID) predicate.Catalog
- func ProjectIDNotNil() predicate.Catalog
- func Source(v string) predicate.Catalog
- func SourceContains(v string) predicate.Catalog
- func SourceContainsFold(v string) predicate.Catalog
- func SourceEQ(v string) predicate.Catalog
- func SourceEqualFold(v string) predicate.Catalog
- func SourceGT(v string) predicate.Catalog
- func SourceGTE(v string) predicate.Catalog
- func SourceHasPrefix(v string) predicate.Catalog
- func SourceHasSuffix(v string) predicate.Catalog
- func SourceIn(vs ...string) predicate.Catalog
- func SourceLT(v string) predicate.Catalog
- func SourceLTE(v string) predicate.Catalog
- func SourceNEQ(v string) predicate.Catalog
- func SourceNotIn(vs ...string) predicate.Catalog
- func StatusIsNil() predicate.Catalog
- func StatusNotNil() predicate.Catalog
- func SyncIsNil() predicate.Catalog
- func SyncNotNil() predicate.Catalog
- func Type(v string) predicate.Catalog
- func TypeContains(v string) predicate.Catalog
- func TypeContainsFold(v string) predicate.Catalog
- func TypeEQ(v string) predicate.Catalog
- func TypeEqualFold(v string) predicate.Catalog
- func TypeGT(v string) predicate.Catalog
- func TypeGTE(v string) predicate.Catalog
- func TypeHasPrefix(v string) predicate.Catalog
- func TypeHasSuffix(v string) predicate.Catalog
- func TypeIn(vs ...string) predicate.Catalog
- func TypeLT(v string) predicate.Catalog
- func TypeLTE(v string) predicate.Catalog
- func TypeNEQ(v string) predicate.Catalog
- func TypeNotIn(vs ...string) predicate.Catalog
- func UpdateTime(v time.Time) predicate.Catalog
- func UpdateTimeEQ(v time.Time) predicate.Catalog
- func UpdateTimeGT(v time.Time) predicate.Catalog
- func UpdateTimeGTE(v time.Time) predicate.Catalog
- func UpdateTimeIn(vs ...time.Time) predicate.Catalog
- func UpdateTimeLT(v time.Time) predicate.Catalog
- func UpdateTimeLTE(v time.Time) predicate.Catalog
- func UpdateTimeNEQ(v time.Time) predicate.Catalog
- func UpdateTimeNotIn(vs ...time.Time) predicate.Catalog
- func ValidColumn(column string) bool
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByFilterPattern(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectID(opts ...sql.OrderTermOption) OrderOption
- func BySource(opts ...sql.OrderTermOption) OrderOption
- func ByTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTemplatesCount(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the catalog type in the database. Label = "catalog" // FieldID holds the string denoting the id field in the database. FieldID = "id" // 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" // FieldLabels holds the string denoting the labels field in the database. FieldLabels = "labels" // FieldAnnotations holds the string denoting the annotations field in the database. FieldAnnotations = "annotations" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUpdateTime holds the string denoting the update_time field in the database. FieldUpdateTime = "update_time" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldSync holds the string denoting the sync field in the database. FieldSync = "sync" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldFilterPattern holds the string denoting the filter_pattern field in the database. FieldFilterPattern = "filter_pattern" // EdgeTemplates holds the string denoting the templates edge name in mutations. EdgeTemplates = "templates" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // Table holds the table name of the catalog in the database. Table = "catalogs" // TemplatesTable is the table that holds the templates relation/edge. TemplatesTable = "templates" // TemplatesInverseTable is the table name for the Template entity. // It exists in this package in order to avoid circular dependency with the "template" package. TemplatesInverseTable = "templates" // TemplatesColumn is the table column denoting the templates relation/edge. TemplatesColumn = "catalog_id" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "catalogs" // ProjectInverseTable is the table name for the Project entity. // It exists in this package in order to avoid circular dependency with the "project" package. ProjectInverseTable = "projects" // ProjectColumn is the table column denoting the project relation/edge. ProjectColumn = "project_id" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultLabels holds the default value on creation for the "labels" field. DefaultLabels map[string]string // DefaultAnnotations holds the default value on creation for the "annotations" field. DefaultAnnotations map[string]string // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // DefaultUpdateTime holds the default value on creation for the "update_time" field. DefaultUpdateTime func() time.Time // UpdateDefaultUpdateTime holds the default value on update for the "update_time" field. UpdateDefaultUpdateTime func() time.Time // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // SourceValidator is a validator for the "source" field. It is called by the builders before save. SourceValidator 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/seal-io/walrus/pkg/dao/model/runtime"
var Columns = []string{ FieldID, FieldName, FieldDescription, FieldLabels, FieldAnnotations, FieldCreateTime, FieldUpdateTime, FieldStatus, FieldType, FieldSource, FieldSync, FieldProjectID, FieldFilterPattern, }
Columns holds all SQL columns for catalog fields.
Functions ¶
func AnnotationsIsNil ¶
AnnotationsIsNil applies the IsNil predicate on the "annotations" field.
func AnnotationsNotNil ¶
AnnotationsNotNil applies the NotNil predicate on the "annotations" field.
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" 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 FilterPattern ¶ added in v0.6.0
FilterPattern applies equality check predicate on the "filter_pattern" field. It's identical to FilterPatternEQ.
func FilterPatternContains ¶ added in v0.6.0
FilterPatternContains applies the Contains predicate on the "filter_pattern" field.
func FilterPatternContainsFold ¶ added in v0.6.0
FilterPatternContainsFold applies the ContainsFold predicate on the "filter_pattern" field.
func FilterPatternEQ ¶ added in v0.6.0
FilterPatternEQ applies the EQ predicate on the "filter_pattern" field.
func FilterPatternEqualFold ¶ added in v0.6.0
FilterPatternEqualFold applies the EqualFold predicate on the "filter_pattern" field.
func FilterPatternGT ¶ added in v0.6.0
FilterPatternGT applies the GT predicate on the "filter_pattern" field.
func FilterPatternGTE ¶ added in v0.6.0
FilterPatternGTE applies the GTE predicate on the "filter_pattern" field.
func FilterPatternHasPrefix ¶ added in v0.6.0
FilterPatternHasPrefix applies the HasPrefix predicate on the "filter_pattern" field.
func FilterPatternHasSuffix ¶ added in v0.6.0
FilterPatternHasSuffix applies the HasSuffix predicate on the "filter_pattern" field.
func FilterPatternIn ¶ added in v0.6.0
FilterPatternIn applies the In predicate on the "filter_pattern" field.
func FilterPatternIsNil ¶ added in v0.6.0
FilterPatternIsNil applies the IsNil predicate on the "filter_pattern" field.
func FilterPatternLT ¶ added in v0.6.0
FilterPatternLT applies the LT predicate on the "filter_pattern" field.
func FilterPatternLTE ¶ added in v0.6.0
FilterPatternLTE applies the LTE predicate on the "filter_pattern" field.
func FilterPatternNEQ ¶ added in v0.6.0
FilterPatternNEQ applies the NEQ predicate on the "filter_pattern" field.
func FilterPatternNotIn ¶ added in v0.6.0
FilterPatternNotIn applies the NotIn predicate on the "filter_pattern" field.
func FilterPatternNotNil ¶ added in v0.6.0
FilterPatternNotNil applies the NotNil predicate on the "filter_pattern" field.
func HasProject ¶ added in v0.4.0
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶ added in v0.4.0
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasTemplates ¶
HasTemplates applies the HasEdge predicate on the "templates" edge.
func HasTemplatesWith ¶
HasTemplatesWith applies the HasEdge predicate on the "templates" edge with a given conditions (other predicates).
func LabelsIsNil ¶
LabelsIsNil applies the IsNil predicate on the "labels" field.
func LabelsNotNil ¶
LabelsNotNil applies the NotNil predicate on the "labels" 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 ProjectID ¶ added in v0.4.0
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDContains ¶ added in v0.4.0
ProjectIDContains applies the Contains predicate on the "project_id" field.
func ProjectIDContainsFold ¶ added in v0.4.0
ProjectIDContainsFold applies the ContainsFold predicate on the "project_id" field.
func ProjectIDEQ ¶ added in v0.4.0
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDEqualFold ¶ added in v0.4.0
ProjectIDEqualFold applies the EqualFold predicate on the "project_id" field.
func ProjectIDGT ¶ added in v0.4.0
ProjectIDGT applies the GT predicate on the "project_id" field.
func ProjectIDGTE ¶ added in v0.4.0
ProjectIDGTE applies the GTE predicate on the "project_id" field.
func ProjectIDHasPrefix ¶ added in v0.4.0
ProjectIDHasPrefix applies the HasPrefix predicate on the "project_id" field.
func ProjectIDHasSuffix ¶ added in v0.4.0
ProjectIDHasSuffix applies the HasSuffix predicate on the "project_id" field.
func ProjectIDIn ¶ added in v0.4.0
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDIsNil ¶ added in v0.4.0
ProjectIDIsNil applies the IsNil predicate on the "project_id" field.
func ProjectIDLT ¶ added in v0.4.0
ProjectIDLT applies the LT predicate on the "project_id" field.
func ProjectIDLTE ¶ added in v0.4.0
ProjectIDLTE applies the LTE predicate on the "project_id" field.
func ProjectIDNEQ ¶ added in v0.4.0
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶ added in v0.4.0
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func ProjectIDNotNil ¶ added in v0.4.0
ProjectIDNotNil applies the NotNil predicate on the "project_id" field.
func Source ¶
Source applies equality check predicate on the "source" field. It's identical to SourceEQ.
func SourceContains ¶
SourceContains applies the Contains predicate on the "source" field.
func SourceContainsFold ¶
SourceContainsFold applies the ContainsFold predicate on the "source" field.
func SourceEqualFold ¶
SourceEqualFold applies the EqualFold predicate on the "source" field.
func SourceHasPrefix ¶
SourceHasPrefix applies the HasPrefix predicate on the "source" field.
func SourceHasSuffix ¶
SourceHasSuffix applies the HasSuffix predicate on the "source" field.
func SourceNotIn ¶
SourceNotIn applies the NotIn predicate on the "source" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func SyncNotNil ¶
SyncNotNil applies the NotNil predicate on the "sync" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WithoutFields ¶
WithoutFields returns the fields ignored the given list.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Catalog queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByFilterPattern ¶ added in v0.6.0
func ByFilterPattern(opts ...sql.OrderTermOption) OrderOption
ByFilterPattern orders the results by the filter_pattern 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 ByProjectField ¶ added in v0.4.0
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶ added in v0.4.0
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func BySource ¶
func BySource(opts ...sql.OrderTermOption) OrderOption
BySource orders the results by the source field.
func ByTemplates ¶
func ByTemplates(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTemplates orders the results by templates terms.
func ByTemplatesCount ¶
func ByTemplatesCount(opts ...sql.OrderTermOption) OrderOption
ByTemplatesCount orders the results by templates count.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.