Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Project) predicate.Project
- func AnnotationsIsNil() predicate.Project
- func AnnotationsNotNil() predicate.Project
- func CreateTime(v time.Time) predicate.Project
- func CreateTimeEQ(v time.Time) predicate.Project
- func CreateTimeGT(v time.Time) predicate.Project
- func CreateTimeGTE(v time.Time) predicate.Project
- func CreateTimeIn(vs ...time.Time) predicate.Project
- func CreateTimeLT(v time.Time) predicate.Project
- func CreateTimeLTE(v time.Time) predicate.Project
- func CreateTimeNEQ(v time.Time) predicate.Project
- func CreateTimeNotIn(vs ...time.Time) predicate.Project
- func Description(v string) predicate.Project
- func DescriptionContains(v string) predicate.Project
- func DescriptionContainsFold(v string) predicate.Project
- func DescriptionEQ(v string) predicate.Project
- func DescriptionEqualFold(v string) predicate.Project
- func DescriptionGT(v string) predicate.Project
- func DescriptionGTE(v string) predicate.Project
- func DescriptionHasPrefix(v string) predicate.Project
- func DescriptionHasSuffix(v string) predicate.Project
- func DescriptionIn(vs ...string) predicate.Project
- func DescriptionIsNil() predicate.Project
- func DescriptionLT(v string) predicate.Project
- func DescriptionLTE(v string) predicate.Project
- func DescriptionNEQ(v string) predicate.Project
- func DescriptionNotIn(vs ...string) predicate.Project
- func DescriptionNotNil() predicate.Project
- func HasConnectors() predicate.Project
- func HasConnectorsWith(preds ...predicate.Connector) predicate.Project
- func HasEnvironments() predicate.Project
- func HasEnvironmentsWith(preds ...predicate.Environment) predicate.Project
- func HasServiceResources() predicate.Project
- func HasServiceResourcesWith(preds ...predicate.ServiceResource) predicate.Project
- func HasServiceRevisions() predicate.Project
- func HasServiceRevisionsWith(preds ...predicate.ServiceRevision) predicate.Project
- func HasServices() predicate.Project
- func HasServicesWith(preds ...predicate.Service) predicate.Project
- func HasSubjectRoles() predicate.Project
- func HasSubjectRolesWith(preds ...predicate.SubjectRoleRelationship) predicate.Project
- func HasVariables() predicate.Project
- func HasVariablesWith(preds ...predicate.Variable) predicate.Project
- func ID(id object.ID) predicate.Project
- func IDEQ(id object.ID) predicate.Project
- func IDGT(id object.ID) predicate.Project
- func IDGTE(id object.ID) predicate.Project
- func IDIn(ids ...object.ID) predicate.Project
- func IDLT(id object.ID) predicate.Project
- func IDLTE(id object.ID) predicate.Project
- func IDNEQ(id object.ID) predicate.Project
- func IDNotIn(ids ...object.ID) predicate.Project
- func LabelsIsNil() predicate.Project
- func LabelsNotNil() predicate.Project
- func Name(v string) predicate.Project
- func NameContains(v string) predicate.Project
- func NameContainsFold(v string) predicate.Project
- func NameEQ(v string) predicate.Project
- func NameEqualFold(v string) predicate.Project
- func NameGT(v string) predicate.Project
- func NameGTE(v string) predicate.Project
- func NameHasPrefix(v string) predicate.Project
- func NameHasSuffix(v string) predicate.Project
- func NameIn(vs ...string) predicate.Project
- func NameLT(v string) predicate.Project
- func NameLTE(v string) predicate.Project
- func NameNEQ(v string) predicate.Project
- func NameNotIn(vs ...string) predicate.Project
- func Not(p predicate.Project) predicate.Project
- func Or(predicates ...predicate.Project) predicate.Project
- func UpdateTime(v time.Time) predicate.Project
- func UpdateTimeEQ(v time.Time) predicate.Project
- func UpdateTimeGT(v time.Time) predicate.Project
- func UpdateTimeGTE(v time.Time) predicate.Project
- func UpdateTimeIn(vs ...time.Time) predicate.Project
- func UpdateTimeLT(v time.Time) predicate.Project
- func UpdateTimeLTE(v time.Time) predicate.Project
- func UpdateTimeNEQ(v time.Time) predicate.Project
- func UpdateTimeNotIn(vs ...time.Time) predicate.Project
- func ValidColumn(column string) bool
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByConnectors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByConnectorsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEnvironmentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByServiceResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByServiceResourcesCount(opts ...sql.OrderTermOption) OrderOption
- func ByServiceRevisions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByServiceRevisionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByServices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByServicesCount(opts ...sql.OrderTermOption) OrderOption
- func BySubjectRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubjectRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByVariables(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVariablesCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the project type in the database. Label = "project" // 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" // EdgeEnvironments holds the string denoting the environments edge name in mutations. EdgeEnvironments = "environments" // EdgeConnectors holds the string denoting the connectors edge name in mutations. EdgeConnectors = "connectors" // EdgeSubjectRoles holds the string denoting the subject_roles edge name in mutations. EdgeSubjectRoles = "subject_roles" // EdgeServices holds the string denoting the services edge name in mutations. EdgeServices = "services" // EdgeServiceResources holds the string denoting the service_resources edge name in mutations. EdgeServiceResources = "service_resources" // EdgeServiceRevisions holds the string denoting the service_revisions edge name in mutations. EdgeServiceRevisions = "service_revisions" // EdgeVariables holds the string denoting the variables edge name in mutations. EdgeVariables = "variables" // Table holds the table name of the project in the database. Table = "projects" // EnvironmentsTable is the table that holds the environments relation/edge. EnvironmentsTable = "environments" // EnvironmentsInverseTable is the table name for the Environment entity. // It exists in this package in order to avoid circular dependency with the "environment" package. EnvironmentsInverseTable = "environments" // EnvironmentsColumn is the table column denoting the environments relation/edge. EnvironmentsColumn = "project_id" // ConnectorsTable is the table that holds the connectors relation/edge. ConnectorsTable = "connectors" // ConnectorsInverseTable is the table name for the Connector entity. // It exists in this package in order to avoid circular dependency with the "connector" package. ConnectorsInverseTable = "connectors" // ConnectorsColumn is the table column denoting the connectors relation/edge. ConnectorsColumn = "project_id" // SubjectRolesTable is the table that holds the subject_roles relation/edge. SubjectRolesTable = "subject_role_relationships" // SubjectRolesInverseTable is the table name for the SubjectRoleRelationship entity. // It exists in this package in order to avoid circular dependency with the "subjectrolerelationship" package. SubjectRolesInverseTable = "subject_role_relationships" // SubjectRolesColumn is the table column denoting the subject_roles relation/edge. SubjectRolesColumn = "project_id" // ServicesTable is the table that holds the services relation/edge. ServicesTable = "services" // ServicesInverseTable is the table name for the Service entity. // It exists in this package in order to avoid circular dependency with the "service" package. ServicesInverseTable = "services" // ServicesColumn is the table column denoting the services relation/edge. ServicesColumn = "project_id" // ServiceResourcesTable is the table that holds the service_resources relation/edge. ServiceResourcesTable = "service_resources" // ServiceResourcesInverseTable is the table name for the ServiceResource entity. // It exists in this package in order to avoid circular dependency with the "serviceresource" package. ServiceResourcesInverseTable = "service_resources" // ServiceResourcesColumn is the table column denoting the service_resources relation/edge. ServiceResourcesColumn = "project_id" // ServiceRevisionsTable is the table that holds the service_revisions relation/edge. ServiceRevisionsTable = "service_revisions" // ServiceRevisionsInverseTable is the table name for the ServiceRevision entity. // It exists in this package in order to avoid circular dependency with the "servicerevision" package. ServiceRevisionsInverseTable = "service_revisions" // ServiceRevisionsColumn is the table column denoting the service_revisions relation/edge. ServiceRevisionsColumn = "project_id" // VariablesTable is the table that holds the variables relation/edge. VariablesTable = "variables" // VariablesInverseTable is the table name for the Variable entity. // It exists in this package in order to avoid circular dependency with the "variable" package. VariablesInverseTable = "variables" // VariablesColumn is the table column denoting the variables relation/edge. VariablesColumn = "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 )
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, }
Columns holds all SQL columns for project 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 HasConnectors ¶
HasConnectors applies the HasEdge predicate on the "connectors" edge.
func HasConnectorsWith ¶
HasConnectorsWith applies the HasEdge predicate on the "connectors" edge with a given conditions (other predicates).
func HasEnvironments ¶
HasEnvironments applies the HasEdge predicate on the "environments" edge.
func HasEnvironmentsWith ¶
func HasEnvironmentsWith(preds ...predicate.Environment) predicate.Project
HasEnvironmentsWith applies the HasEdge predicate on the "environments" edge with a given conditions (other predicates).
func HasServiceResources ¶
HasServiceResources applies the HasEdge predicate on the "service_resources" edge.
func HasServiceResourcesWith ¶
func HasServiceResourcesWith(preds ...predicate.ServiceResource) predicate.Project
HasServiceResourcesWith applies the HasEdge predicate on the "service_resources" edge with a given conditions (other predicates).
func HasServiceRevisions ¶
HasServiceRevisions applies the HasEdge predicate on the "service_revisions" edge.
func HasServiceRevisionsWith ¶
func HasServiceRevisionsWith(preds ...predicate.ServiceRevision) predicate.Project
HasServiceRevisionsWith applies the HasEdge predicate on the "service_revisions" edge with a given conditions (other predicates).
func HasServices ¶
HasServices applies the HasEdge predicate on the "services" edge.
func HasServicesWith ¶
HasServicesWith applies the HasEdge predicate on the "services" edge with a given conditions (other predicates).
func HasSubjectRoles ¶
HasSubjectRoles applies the HasEdge predicate on the "subject_roles" edge.
func HasSubjectRolesWith ¶
func HasSubjectRolesWith(preds ...predicate.SubjectRoleRelationship) predicate.Project
HasSubjectRolesWith applies the HasEdge predicate on the "subject_roles" edge with a given conditions (other predicates).
func HasVariables ¶
HasVariables applies the HasEdge predicate on the "variables" edge.
func HasVariablesWith ¶
HasVariablesWith applies the HasEdge predicate on the "variables" 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 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 Project queries.
func ByConnectors ¶
func ByConnectors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByConnectors orders the results by connectors terms.
func ByConnectorsCount ¶
func ByConnectorsCount(opts ...sql.OrderTermOption) OrderOption
ByConnectorsCount orders the results by connectors count.
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 ByEnvironments ¶
func ByEnvironments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEnvironments orders the results by environments terms.
func ByEnvironmentsCount ¶
func ByEnvironmentsCount(opts ...sql.OrderTermOption) OrderOption
ByEnvironmentsCount orders the results by environments count.
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 ByServiceResources ¶
func ByServiceResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByServiceResources orders the results by service_resources terms.
func ByServiceResourcesCount ¶
func ByServiceResourcesCount(opts ...sql.OrderTermOption) OrderOption
ByServiceResourcesCount orders the results by service_resources count.
func ByServiceRevisions ¶
func ByServiceRevisions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByServiceRevisions orders the results by service_revisions terms.
func ByServiceRevisionsCount ¶
func ByServiceRevisionsCount(opts ...sql.OrderTermOption) OrderOption
ByServiceRevisionsCount orders the results by service_revisions count.
func ByServices ¶
func ByServices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByServices orders the results by services terms.
func ByServicesCount ¶
func ByServicesCount(opts ...sql.OrderTermOption) OrderOption
ByServicesCount orders the results by services count.
func BySubjectRoles ¶
func BySubjectRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySubjectRoles orders the results by subject_roles terms.
func BySubjectRolesCount ¶
func BySubjectRolesCount(opts ...sql.OrderTermOption) OrderOption
BySubjectRolesCount orders the results by subject_roles count.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.
func ByVariables ¶
func ByVariables(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVariables orders the results by variables terms.
func ByVariablesCount ¶
func ByVariablesCount(opts ...sql.OrderTermOption) OrderOption
ByVariablesCount orders the results by variables count.