Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Service) predicate.Service
- func AnnotationsIsNil() predicate.Service
- func AnnotationsNotNil() predicate.Service
- func Attributes(v property.Values) predicate.Service
- func AttributesEQ(v property.Values) predicate.Service
- func AttributesGT(v property.Values) predicate.Service
- func AttributesGTE(v property.Values) predicate.Service
- func AttributesIn(vs ...property.Values) predicate.Service
- func AttributesIsNil() predicate.Service
- func AttributesLT(v property.Values) predicate.Service
- func AttributesLTE(v property.Values) predicate.Service
- func AttributesNEQ(v property.Values) predicate.Service
- func AttributesNotIn(vs ...property.Values) predicate.Service
- func AttributesNotNil() predicate.Service
- func CreateTime(v time.Time) predicate.Service
- func CreateTimeEQ(v time.Time) predicate.Service
- func CreateTimeGT(v time.Time) predicate.Service
- func CreateTimeGTE(v time.Time) predicate.Service
- func CreateTimeIn(vs ...time.Time) predicate.Service
- func CreateTimeLT(v time.Time) predicate.Service
- func CreateTimeLTE(v time.Time) predicate.Service
- func CreateTimeNEQ(v time.Time) predicate.Service
- func CreateTimeNotIn(vs ...time.Time) predicate.Service
- func Description(v string) predicate.Service
- func DescriptionContains(v string) predicate.Service
- func DescriptionContainsFold(v string) predicate.Service
- func DescriptionEQ(v string) predicate.Service
- func DescriptionEqualFold(v string) predicate.Service
- func DescriptionGT(v string) predicate.Service
- func DescriptionGTE(v string) predicate.Service
- func DescriptionHasPrefix(v string) predicate.Service
- func DescriptionHasSuffix(v string) predicate.Service
- func DescriptionIn(vs ...string) predicate.Service
- func DescriptionIsNil() predicate.Service
- func DescriptionLT(v string) predicate.Service
- func DescriptionLTE(v string) predicate.Service
- func DescriptionNEQ(v string) predicate.Service
- func DescriptionNotIn(vs ...string) predicate.Service
- func DescriptionNotNil() predicate.Service
- func EnvironmentID(v object.ID) predicate.Service
- func EnvironmentIDContains(v object.ID) predicate.Service
- func EnvironmentIDContainsFold(v object.ID) predicate.Service
- func EnvironmentIDEQ(v object.ID) predicate.Service
- func EnvironmentIDEqualFold(v object.ID) predicate.Service
- func EnvironmentIDGT(v object.ID) predicate.Service
- func EnvironmentIDGTE(v object.ID) predicate.Service
- func EnvironmentIDHasPrefix(v object.ID) predicate.Service
- func EnvironmentIDHasSuffix(v object.ID) predicate.Service
- func EnvironmentIDIn(vs ...object.ID) predicate.Service
- func EnvironmentIDLT(v object.ID) predicate.Service
- func EnvironmentIDLTE(v object.ID) predicate.Service
- func EnvironmentIDNEQ(v object.ID) predicate.Service
- func EnvironmentIDNotIn(vs ...object.ID) predicate.Service
- func HasDependencies() predicate.Service
- func HasDependenciesWith(preds ...predicate.ServiceRelationship) predicate.Service
- func HasEnvironment() predicate.Service
- func HasEnvironmentWith(preds ...predicate.Environment) predicate.Service
- func HasProject() predicate.Service
- func HasProjectWith(preds ...predicate.Project) predicate.Service
- func HasResources() predicate.Service
- func HasResourcesWith(preds ...predicate.ServiceResource) predicate.Service
- func HasRevisions() predicate.Service
- func HasRevisionsWith(preds ...predicate.ServiceRevision) predicate.Service
- func HasTemplate() predicate.Service
- func HasTemplateWith(preds ...predicate.TemplateVersion) predicate.Service
- func ID(id object.ID) predicate.Service
- func IDEQ(id object.ID) predicate.Service
- func IDGT(id object.ID) predicate.Service
- func IDGTE(id object.ID) predicate.Service
- func IDIn(ids ...object.ID) predicate.Service
- func IDLT(id object.ID) predicate.Service
- func IDLTE(id object.ID) predicate.Service
- func IDNEQ(id object.ID) predicate.Service
- func IDNotIn(ids ...object.ID) predicate.Service
- func LabelsIsNil() predicate.Service
- func LabelsNotNil() predicate.Service
- func Name(v string) predicate.Service
- func NameContains(v string) predicate.Service
- func NameContainsFold(v string) predicate.Service
- func NameEQ(v string) predicate.Service
- func NameEqualFold(v string) predicate.Service
- func NameGT(v string) predicate.Service
- func NameGTE(v string) predicate.Service
- func NameHasPrefix(v string) predicate.Service
- func NameHasSuffix(v string) predicate.Service
- func NameIn(vs ...string) predicate.Service
- func NameLT(v string) predicate.Service
- func NameLTE(v string) predicate.Service
- func NameNEQ(v string) predicate.Service
- func NameNotIn(vs ...string) predicate.Service
- func Not(p predicate.Service) predicate.Service
- func Or(predicates ...predicate.Service) predicate.Service
- func ProjectID(v object.ID) predicate.Service
- func ProjectIDContains(v object.ID) predicate.Service
- func ProjectIDContainsFold(v object.ID) predicate.Service
- func ProjectIDEQ(v object.ID) predicate.Service
- func ProjectIDEqualFold(v object.ID) predicate.Service
- func ProjectIDGT(v object.ID) predicate.Service
- func ProjectIDGTE(v object.ID) predicate.Service
- func ProjectIDHasPrefix(v object.ID) predicate.Service
- func ProjectIDHasSuffix(v object.ID) predicate.Service
- func ProjectIDIn(vs ...object.ID) predicate.Service
- func ProjectIDLT(v object.ID) predicate.Service
- func ProjectIDLTE(v object.ID) predicate.Service
- func ProjectIDNEQ(v object.ID) predicate.Service
- func ProjectIDNotIn(vs ...object.ID) predicate.Service
- func StatusIsNil() predicate.Service
- func StatusNotNil() predicate.Service
- func TemplateID(v object.ID) predicate.Service
- func TemplateIDContains(v object.ID) predicate.Service
- func TemplateIDContainsFold(v object.ID) predicate.Service
- func TemplateIDEQ(v object.ID) predicate.Service
- func TemplateIDEqualFold(v object.ID) predicate.Service
- func TemplateIDGT(v object.ID) predicate.Service
- func TemplateIDGTE(v object.ID) predicate.Service
- func TemplateIDHasPrefix(v object.ID) predicate.Service
- func TemplateIDHasSuffix(v object.ID) predicate.Service
- func TemplateIDIn(vs ...object.ID) predicate.Service
- func TemplateIDLT(v object.ID) predicate.Service
- func TemplateIDLTE(v object.ID) predicate.Service
- func TemplateIDNEQ(v object.ID) predicate.Service
- func TemplateIDNotIn(vs ...object.ID) predicate.Service
- func UpdateTime(v time.Time) predicate.Service
- func UpdateTimeEQ(v time.Time) predicate.Service
- func UpdateTimeGT(v time.Time) predicate.Service
- func UpdateTimeGTE(v time.Time) predicate.Service
- func UpdateTimeIn(vs ...time.Time) predicate.Service
- func UpdateTimeLT(v time.Time) predicate.Service
- func UpdateTimeLTE(v time.Time) predicate.Service
- func UpdateTimeNEQ(v time.Time) predicate.Service
- func UpdateTimeNotIn(vs ...time.Time) predicate.Service
- func ValidColumn(column string) bool
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByAttributes(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByDependencies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDependenciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentID(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 ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption
- func ByRevisions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRevisionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the service type in the database. Label = "service" // 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" // FieldProjectID holds the string denoting the project_id field in the database. FieldProjectID = "project_id" // FieldEnvironmentID holds the string denoting the environment_id field in the database. FieldEnvironmentID = "environment_id" // FieldTemplateID holds the string denoting the template_id field in the database. FieldTemplateID = "template_id" // FieldAttributes holds the string denoting the attributes field in the database. FieldAttributes = "attributes" // EdgeProject holds the string denoting the project edge name in mutations. EdgeProject = "project" // EdgeEnvironment holds the string denoting the environment edge name in mutations. EdgeEnvironment = "environment" // EdgeTemplate holds the string denoting the template edge name in mutations. EdgeTemplate = "template" // EdgeRevisions holds the string denoting the revisions edge name in mutations. EdgeRevisions = "revisions" // EdgeResources holds the string denoting the resources edge name in mutations. EdgeResources = "resources" // EdgeDependencies holds the string denoting the dependencies edge name in mutations. EdgeDependencies = "dependencies" // Table holds the table name of the service in the database. Table = "services" // ProjectTable is the table that holds the project relation/edge. ProjectTable = "services" // 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" // EnvironmentTable is the table that holds the environment relation/edge. EnvironmentTable = "services" // EnvironmentInverseTable is the table name for the Environment entity. // It exists in this package in order to avoid circular dependency with the "environment" package. EnvironmentInverseTable = "environments" // EnvironmentColumn is the table column denoting the environment relation/edge. EnvironmentColumn = "environment_id" // TemplateTable is the table that holds the template relation/edge. TemplateTable = "services" // TemplateInverseTable is the table name for the TemplateVersion entity. // It exists in this package in order to avoid circular dependency with the "templateversion" package. TemplateInverseTable = "template_versions" // TemplateColumn is the table column denoting the template relation/edge. TemplateColumn = "template_id" // RevisionsTable is the table that holds the revisions relation/edge. RevisionsTable = "service_revisions" // RevisionsInverseTable is the table name for the ServiceRevision entity. // It exists in this package in order to avoid circular dependency with the "servicerevision" package. RevisionsInverseTable = "service_revisions" // RevisionsColumn is the table column denoting the revisions relation/edge. RevisionsColumn = "service_id" // ResourcesTable is the table that holds the resources relation/edge. ResourcesTable = "service_resources" // ResourcesInverseTable is the table name for the ServiceResource entity. // It exists in this package in order to avoid circular dependency with the "serviceresource" package. ResourcesInverseTable = "service_resources" // ResourcesColumn is the table column denoting the resources relation/edge. ResourcesColumn = "service_id" // DependenciesTable is the table that holds the dependencies relation/edge. DependenciesTable = "service_relationships" // DependenciesInverseTable is the table name for the ServiceRelationship entity. // It exists in this package in order to avoid circular dependency with the "servicerelationship" package. DependenciesInverseTable = "service_relationships" // DependenciesColumn is the table column denoting the dependencies relation/edge. DependenciesColumn = "service_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 // ProjectIDValidator is a validator for the "project_id" field. It is called by the builders before save. ProjectIDValidator func(string) error // EnvironmentIDValidator is a validator for the "environment_id" field. It is called by the builders before save. EnvironmentIDValidator func(string) error // TemplateIDValidator is a validator for the "template_id" field. It is called by the builders before save. TemplateIDValidator 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, FieldProjectID, FieldEnvironmentID, FieldTemplateID, FieldAttributes, }
Columns holds all SQL columns for service 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 Attributes ¶
Attributes applies equality check predicate on the "attributes" field. It's identical to AttributesEQ.
func AttributesEQ ¶
AttributesEQ applies the EQ predicate on the "attributes" field.
func AttributesGT ¶
AttributesGT applies the GT predicate on the "attributes" field.
func AttributesGTE ¶
AttributesGTE applies the GTE predicate on the "attributes" field.
func AttributesIn ¶
AttributesIn applies the In predicate on the "attributes" field.
func AttributesIsNil ¶
AttributesIsNil applies the IsNil predicate on the "attributes" field.
func AttributesLT ¶
AttributesLT applies the LT predicate on the "attributes" field.
func AttributesLTE ¶
AttributesLTE applies the LTE predicate on the "attributes" field.
func AttributesNEQ ¶
AttributesNEQ applies the NEQ predicate on the "attributes" field.
func AttributesNotIn ¶
AttributesNotIn applies the NotIn predicate on the "attributes" field.
func AttributesNotNil ¶
AttributesNotNil applies the NotNil predicate on the "attributes" 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 EnvironmentID ¶
EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.
func EnvironmentIDContains ¶
EnvironmentIDContains applies the Contains predicate on the "environment_id" field.
func EnvironmentIDContainsFold ¶
EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.
func EnvironmentIDEQ ¶
EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.
func EnvironmentIDEqualFold ¶
EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.
func EnvironmentIDGT ¶
EnvironmentIDGT applies the GT predicate on the "environment_id" field.
func EnvironmentIDGTE ¶
EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.
func EnvironmentIDHasPrefix ¶
EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.
func EnvironmentIDHasSuffix ¶
EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.
func EnvironmentIDIn ¶
EnvironmentIDIn applies the In predicate on the "environment_id" field.
func EnvironmentIDLT ¶
EnvironmentIDLT applies the LT predicate on the "environment_id" field.
func EnvironmentIDLTE ¶
EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.
func EnvironmentIDNEQ ¶
EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.
func EnvironmentIDNotIn ¶
EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.
func HasDependencies ¶
HasDependencies applies the HasEdge predicate on the "dependencies" edge.
func HasDependenciesWith ¶
func HasDependenciesWith(preds ...predicate.ServiceRelationship) predicate.Service
HasDependenciesWith applies the HasEdge predicate on the "dependencies" edge with a given conditions (other predicates).
func HasEnvironment ¶
HasEnvironment applies the HasEdge predicate on the "environment" edge.
func HasEnvironmentWith ¶
func HasEnvironmentWith(preds ...predicate.Environment) predicate.Service
HasEnvironmentWith applies the HasEdge predicate on the "environment" edge with a given conditions (other predicates).
func HasProject ¶
HasProject applies the HasEdge predicate on the "project" edge.
func HasProjectWith ¶
HasProjectWith applies the HasEdge predicate on the "project" edge with a given conditions (other predicates).
func HasResources ¶
HasResources applies the HasEdge predicate on the "resources" edge.
func HasResourcesWith ¶
func HasResourcesWith(preds ...predicate.ServiceResource) predicate.Service
HasResourcesWith applies the HasEdge predicate on the "resources" edge with a given conditions (other predicates).
func HasRevisions ¶
HasRevisions applies the HasEdge predicate on the "revisions" edge.
func HasRevisionsWith ¶
func HasRevisionsWith(preds ...predicate.ServiceRevision) predicate.Service
HasRevisionsWith applies the HasEdge predicate on the "revisions" edge with a given conditions (other predicates).
func HasTemplate ¶
HasTemplate applies the HasEdge predicate on the "template" edge.
func HasTemplateWith ¶
func HasTemplateWith(preds ...predicate.TemplateVersion) predicate.Service
HasTemplateWith applies the HasEdge predicate on the "template" 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 ¶
ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.
func ProjectIDContains ¶
ProjectIDContains applies the Contains predicate on the "project_id" field.
func ProjectIDContainsFold ¶
ProjectIDContainsFold applies the ContainsFold predicate on the "project_id" field.
func ProjectIDEQ ¶
ProjectIDEQ applies the EQ predicate on the "project_id" field.
func ProjectIDEqualFold ¶
ProjectIDEqualFold applies the EqualFold predicate on the "project_id" field.
func ProjectIDGT ¶
ProjectIDGT applies the GT predicate on the "project_id" field.
func ProjectIDGTE ¶
ProjectIDGTE applies the GTE predicate on the "project_id" field.
func ProjectIDHasPrefix ¶
ProjectIDHasPrefix applies the HasPrefix predicate on the "project_id" field.
func ProjectIDHasSuffix ¶
ProjectIDHasSuffix applies the HasSuffix predicate on the "project_id" field.
func ProjectIDIn ¶
ProjectIDIn applies the In predicate on the "project_id" field.
func ProjectIDLT ¶
ProjectIDLT applies the LT predicate on the "project_id" field.
func ProjectIDLTE ¶
ProjectIDLTE applies the LTE predicate on the "project_id" field.
func ProjectIDNEQ ¶
ProjectIDNEQ applies the NEQ predicate on the "project_id" field.
func ProjectIDNotIn ¶
ProjectIDNotIn applies the NotIn predicate on the "project_id" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func TemplateID ¶
TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.
func TemplateIDContains ¶
TemplateIDContains applies the Contains predicate on the "template_id" field.
func TemplateIDContainsFold ¶
TemplateIDContainsFold applies the ContainsFold predicate on the "template_id" field.
func TemplateIDEQ ¶
TemplateIDEQ applies the EQ predicate on the "template_id" field.
func TemplateIDEqualFold ¶
TemplateIDEqualFold applies the EqualFold predicate on the "template_id" field.
func TemplateIDGT ¶
TemplateIDGT applies the GT predicate on the "template_id" field.
func TemplateIDGTE ¶
TemplateIDGTE applies the GTE predicate on the "template_id" field.
func TemplateIDHasPrefix ¶
TemplateIDHasPrefix applies the HasPrefix predicate on the "template_id" field.
func TemplateIDHasSuffix ¶
TemplateIDHasSuffix applies the HasSuffix predicate on the "template_id" field.
func TemplateIDIn ¶
TemplateIDIn applies the In predicate on the "template_id" field.
func TemplateIDLT ¶
TemplateIDLT applies the LT predicate on the "template_id" field.
func TemplateIDLTE ¶
TemplateIDLTE applies the LTE predicate on the "template_id" field.
func TemplateIDNEQ ¶
TemplateIDNEQ applies the NEQ predicate on the "template_id" field.
func TemplateIDNotIn ¶
TemplateIDNotIn applies the NotIn predicate on the "template_id" 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 Service queries.
func ByAttributes ¶
func ByAttributes(opts ...sql.OrderTermOption) OrderOption
ByAttributes orders the results by the attributes field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByDependencies ¶
func ByDependencies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDependencies orders the results by dependencies terms.
func ByDependenciesCount ¶
func ByDependenciesCount(opts ...sql.OrderTermOption) OrderOption
ByDependenciesCount orders the results by dependencies count.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEnvironmentField ¶
func ByEnvironmentField(field string, opts ...sql.OrderTermOption) OrderOption
ByEnvironmentField orders the results by environment field.
func ByEnvironmentID ¶
func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
ByEnvironmentID orders the results by the environment_id 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 ¶
func ByProjectField(field string, opts ...sql.OrderTermOption) OrderOption
ByProjectField orders the results by project field.
func ByProjectID ¶
func ByProjectID(opts ...sql.OrderTermOption) OrderOption
ByProjectID orders the results by the project_id field.
func ByResources ¶
func ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByResources orders the results by resources terms.
func ByResourcesCount ¶
func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption
ByResourcesCount orders the results by resources count.
func ByRevisions ¶
func ByRevisions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRevisions orders the results by revisions terms.
func ByRevisionsCount ¶
func ByRevisionsCount(opts ...sql.OrderTermOption) OrderOption
ByRevisionsCount orders the results by revisions count.
func ByTemplateField ¶
func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
ByTemplateField orders the results by template field.
func ByTemplateID ¶
func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
ByTemplateID orders the results by the template_id field.
func ByUpdateTime ¶
func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
ByUpdateTime orders the results by the update_time field.