resource

package
v0.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the resource type in the database.
	Label = "resource"
	// 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"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldResourceDefinitionID holds the string denoting the resource_definition_id field in the database.
	FieldResourceDefinitionID = "resource_definition_id"
	// FieldResourceDefinitionMatchingRuleID holds the string denoting the resource_definition_matching_rule_id field in the database.
	FieldResourceDefinitionMatchingRuleID = "resource_definition_matching_rule_id"
	// FieldAttributes holds the string denoting the attributes field in the database.
	FieldAttributes = "attributes"
	// FieldComputedAttributes holds the string denoting the computed_attributes field in the database.
	FieldComputedAttributes = "computed_attributes"
	// FieldEndpoints holds the string denoting the endpoints field in the database.
	FieldEndpoints = "endpoints"
	// FieldChangeComment holds the string denoting the change_comment field in the database.
	FieldChangeComment = "change_comment"
	// 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"
	// EdgeResourceDefinition holds the string denoting the resource_definition edge name in mutations.
	EdgeResourceDefinition = "resource_definition"
	// EdgeResourceDefinitionMatchingRule holds the string denoting the resource_definition_matching_rule edge name in mutations.
	EdgeResourceDefinitionMatchingRule = "resource_definition_matching_rule"
	// EdgeRevisions holds the string denoting the revisions edge name in mutations.
	EdgeRevisions = "revisions"
	// EdgeComponents holds the string denoting the components edge name in mutations.
	EdgeComponents = "components"
	// EdgeDependencies holds the string denoting the dependencies edge name in mutations.
	EdgeDependencies = "dependencies"
	// Table holds the table name of the resource in the database.
	Table = "resources"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "resources"
	// 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 = "resources"
	// 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 = "resources"
	// 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"
	// ResourceDefinitionTable is the table that holds the resource_definition relation/edge.
	ResourceDefinitionTable = "resources"
	// ResourceDefinitionInverseTable is the table name for the ResourceDefinition entity.
	// It exists in this package in order to avoid circular dependency with the "resourcedefinition" package.
	ResourceDefinitionInverseTable = "resource_definitions"
	// ResourceDefinitionColumn is the table column denoting the resource_definition relation/edge.
	ResourceDefinitionColumn = "resource_definition_id"
	// ResourceDefinitionMatchingRuleTable is the table that holds the resource_definition_matching_rule relation/edge.
	ResourceDefinitionMatchingRuleTable = "resources"
	// ResourceDefinitionMatchingRuleInverseTable is the table name for the ResourceDefinitionMatchingRule entity.
	// It exists in this package in order to avoid circular dependency with the "resourcedefinitionmatchingrule" package.
	ResourceDefinitionMatchingRuleInverseTable = "resource_definition_matching_rules"
	// ResourceDefinitionMatchingRuleColumn is the table column denoting the resource_definition_matching_rule relation/edge.
	ResourceDefinitionMatchingRuleColumn = "resource_definition_matching_rule_id"
	// RevisionsTable is the table that holds the revisions relation/edge.
	RevisionsTable = "resource_revisions"
	// RevisionsInverseTable is the table name for the ResourceRevision entity.
	// It exists in this package in order to avoid circular dependency with the "resourcerevision" package.
	RevisionsInverseTable = "resource_revisions"
	// RevisionsColumn is the table column denoting the revisions relation/edge.
	RevisionsColumn = "resource_id"
	// ComponentsTable is the table that holds the components relation/edge.
	ComponentsTable = "resource_components"
	// ComponentsInverseTable is the table name for the ResourceComponent entity.
	// It exists in this package in order to avoid circular dependency with the "resourcecomponent" package.
	ComponentsInverseTable = "resource_components"
	// ComponentsColumn is the table column denoting the components relation/edge.
	ComponentsColumn = "resource_id"
	// DependenciesTable is the table that holds the dependencies relation/edge.
	DependenciesTable = "resource_relationships"
	// DependenciesInverseTable is the table name for the ResourceRelationship entity.
	// It exists in this package in order to avoid circular dependency with the "resourcerelationship" package.
	DependenciesInverseTable = "resource_relationships"
	// DependenciesColumn is the table column denoting the dependencies relation/edge.
	DependenciesColumn = "resource_id"
)

Variables

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

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"

Columns holds all SQL columns for resource fields.

Functions

func And

func And(predicates ...predicate.Resource) predicate.Resource

And groups predicates with the AND operator between them.

func AnnotationsIsNil

func AnnotationsIsNil() predicate.Resource

AnnotationsIsNil applies the IsNil predicate on the "annotations" field.

func AnnotationsNotNil

func AnnotationsNotNil() predicate.Resource

AnnotationsNotNil applies the NotNil predicate on the "annotations" field.

func Attributes

func Attributes(v property.Values) predicate.Resource

Attributes applies equality check predicate on the "attributes" field. It's identical to AttributesEQ.

func AttributesEQ

func AttributesEQ(v property.Values) predicate.Resource

AttributesEQ applies the EQ predicate on the "attributes" field.

func AttributesGT

func AttributesGT(v property.Values) predicate.Resource

AttributesGT applies the GT predicate on the "attributes" field.

func AttributesGTE

func AttributesGTE(v property.Values) predicate.Resource

AttributesGTE applies the GTE predicate on the "attributes" field.

func AttributesIn

func AttributesIn(vs ...property.Values) predicate.Resource

AttributesIn applies the In predicate on the "attributes" field.

func AttributesIsNil

func AttributesIsNil() predicate.Resource

AttributesIsNil applies the IsNil predicate on the "attributes" field.

func AttributesLT

func AttributesLT(v property.Values) predicate.Resource

AttributesLT applies the LT predicate on the "attributes" field.

func AttributesLTE

func AttributesLTE(v property.Values) predicate.Resource

AttributesLTE applies the LTE predicate on the "attributes" field.

func AttributesNEQ

func AttributesNEQ(v property.Values) predicate.Resource

AttributesNEQ applies the NEQ predicate on the "attributes" field.

func AttributesNotIn

func AttributesNotIn(vs ...property.Values) predicate.Resource

AttributesNotIn applies the NotIn predicate on the "attributes" field.

func AttributesNotNil

func AttributesNotNil() predicate.Resource

AttributesNotNil applies the NotNil predicate on the "attributes" field.

func ChangeComment added in v0.5.0

func ChangeComment(v string) predicate.Resource

ChangeComment applies equality check predicate on the "change_comment" field. It's identical to ChangeCommentEQ.

func ChangeCommentContains added in v0.5.0

func ChangeCommentContains(v string) predicate.Resource

ChangeCommentContains applies the Contains predicate on the "change_comment" field.

func ChangeCommentContainsFold added in v0.5.0

func ChangeCommentContainsFold(v string) predicate.Resource

ChangeCommentContainsFold applies the ContainsFold predicate on the "change_comment" field.

func ChangeCommentEQ added in v0.5.0

func ChangeCommentEQ(v string) predicate.Resource

ChangeCommentEQ applies the EQ predicate on the "change_comment" field.

func ChangeCommentEqualFold added in v0.5.0

func ChangeCommentEqualFold(v string) predicate.Resource

ChangeCommentEqualFold applies the EqualFold predicate on the "change_comment" field.

func ChangeCommentGT added in v0.5.0

func ChangeCommentGT(v string) predicate.Resource

ChangeCommentGT applies the GT predicate on the "change_comment" field.

func ChangeCommentGTE added in v0.5.0

func ChangeCommentGTE(v string) predicate.Resource

ChangeCommentGTE applies the GTE predicate on the "change_comment" field.

func ChangeCommentHasPrefix added in v0.5.0

func ChangeCommentHasPrefix(v string) predicate.Resource

ChangeCommentHasPrefix applies the HasPrefix predicate on the "change_comment" field.

func ChangeCommentHasSuffix added in v0.5.0

func ChangeCommentHasSuffix(v string) predicate.Resource

ChangeCommentHasSuffix applies the HasSuffix predicate on the "change_comment" field.

func ChangeCommentIn added in v0.5.0

func ChangeCommentIn(vs ...string) predicate.Resource

ChangeCommentIn applies the In predicate on the "change_comment" field.

func ChangeCommentIsNil added in v0.5.0

func ChangeCommentIsNil() predicate.Resource

ChangeCommentIsNil applies the IsNil predicate on the "change_comment" field.

func ChangeCommentLT added in v0.5.0

func ChangeCommentLT(v string) predicate.Resource

ChangeCommentLT applies the LT predicate on the "change_comment" field.

func ChangeCommentLTE added in v0.5.0

func ChangeCommentLTE(v string) predicate.Resource

ChangeCommentLTE applies the LTE predicate on the "change_comment" field.

func ChangeCommentNEQ added in v0.5.0

func ChangeCommentNEQ(v string) predicate.Resource

ChangeCommentNEQ applies the NEQ predicate on the "change_comment" field.

func ChangeCommentNotIn added in v0.5.0

func ChangeCommentNotIn(vs ...string) predicate.Resource

ChangeCommentNotIn applies the NotIn predicate on the "change_comment" field.

func ChangeCommentNotNil added in v0.5.0

func ChangeCommentNotNil() predicate.Resource

ChangeCommentNotNil applies the NotNil predicate on the "change_comment" field.

func ComputedAttributes added in v0.5.0

func ComputedAttributes(v property.Values) predicate.Resource

ComputedAttributes applies equality check predicate on the "computed_attributes" field. It's identical to ComputedAttributesEQ.

func ComputedAttributesEQ added in v0.5.0

func ComputedAttributesEQ(v property.Values) predicate.Resource

ComputedAttributesEQ applies the EQ predicate on the "computed_attributes" field.

func ComputedAttributesGT added in v0.5.0

func ComputedAttributesGT(v property.Values) predicate.Resource

ComputedAttributesGT applies the GT predicate on the "computed_attributes" field.

func ComputedAttributesGTE added in v0.5.0

func ComputedAttributesGTE(v property.Values) predicate.Resource

ComputedAttributesGTE applies the GTE predicate on the "computed_attributes" field.

func ComputedAttributesIn added in v0.5.0

func ComputedAttributesIn(vs ...property.Values) predicate.Resource

ComputedAttributesIn applies the In predicate on the "computed_attributes" field.

func ComputedAttributesIsNil added in v0.5.0

func ComputedAttributesIsNil() predicate.Resource

ComputedAttributesIsNil applies the IsNil predicate on the "computed_attributes" field.

func ComputedAttributesLT added in v0.5.0

func ComputedAttributesLT(v property.Values) predicate.Resource

ComputedAttributesLT applies the LT predicate on the "computed_attributes" field.

func ComputedAttributesLTE added in v0.5.0

func ComputedAttributesLTE(v property.Values) predicate.Resource

ComputedAttributesLTE applies the LTE predicate on the "computed_attributes" field.

func ComputedAttributesNEQ added in v0.5.0

func ComputedAttributesNEQ(v property.Values) predicate.Resource

ComputedAttributesNEQ applies the NEQ predicate on the "computed_attributes" field.

func ComputedAttributesNotIn added in v0.5.0

func ComputedAttributesNotIn(vs ...property.Values) predicate.Resource

ComputedAttributesNotIn applies the NotIn predicate on the "computed_attributes" field.

func ComputedAttributesNotNil added in v0.5.0

func ComputedAttributesNotNil() predicate.Resource

ComputedAttributesNotNil applies the NotNil predicate on the "computed_attributes" field.

func CreateTime

func CreateTime(v time.Time) predicate.Resource

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Resource

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Resource

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Resource

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Resource

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Resource

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Resource

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Resource

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Resource

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Description

func Description(v string) predicate.Resource

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

func DescriptionContains

func DescriptionContains(v string) predicate.Resource

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Resource

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Resource

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Resource

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

func DescriptionGT

func DescriptionGT(v string) predicate.Resource

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Resource

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Resource

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Resource

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Resource

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

func DescriptionLT

func DescriptionLT(v string) predicate.Resource

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Resource

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Resource

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Resource

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

func EndpointsIsNil added in v0.5.0

func EndpointsIsNil() predicate.Resource

EndpointsIsNil applies the IsNil predicate on the "endpoints" field.

func EndpointsNotNil added in v0.5.0

func EndpointsNotNil() predicate.Resource

EndpointsNotNil applies the NotNil predicate on the "endpoints" field.

func EnvironmentID

func EnvironmentID(v object.ID) predicate.Resource

EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.

func EnvironmentIDContains

func EnvironmentIDContains(v object.ID) predicate.Resource

EnvironmentIDContains applies the Contains predicate on the "environment_id" field.

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v object.ID) predicate.Resource

EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.

func EnvironmentIDEQ

func EnvironmentIDEQ(v object.ID) predicate.Resource

EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v object.ID) predicate.Resource

EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.

func EnvironmentIDGT

func EnvironmentIDGT(v object.ID) predicate.Resource

EnvironmentIDGT applies the GT predicate on the "environment_id" field.

func EnvironmentIDGTE

func EnvironmentIDGTE(v object.ID) predicate.Resource

EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v object.ID) predicate.Resource

EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v object.ID) predicate.Resource

EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.

func EnvironmentIDIn

func EnvironmentIDIn(vs ...object.ID) predicate.Resource

EnvironmentIDIn applies the In predicate on the "environment_id" field.

func EnvironmentIDLT

func EnvironmentIDLT(v object.ID) predicate.Resource

EnvironmentIDLT applies the LT predicate on the "environment_id" field.

func EnvironmentIDLTE

func EnvironmentIDLTE(v object.ID) predicate.Resource

EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.

func EnvironmentIDNEQ

func EnvironmentIDNEQ(v object.ID) predicate.Resource

EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.

func EnvironmentIDNotIn

func EnvironmentIDNotIn(vs ...object.ID) predicate.Resource

EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.

func HasComponents

func HasComponents() predicate.Resource

HasComponents applies the HasEdge predicate on the "components" edge.

func HasComponentsWith

func HasComponentsWith(preds ...predicate.ResourceComponent) predicate.Resource

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

func HasDependencies

func HasDependencies() predicate.Resource

HasDependencies applies the HasEdge predicate on the "dependencies" edge.

func HasDependenciesWith

func HasDependenciesWith(preds ...predicate.ResourceRelationship) predicate.Resource

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

func HasEnvironment

func HasEnvironment() predicate.Resource

HasEnvironment applies the HasEdge predicate on the "environment" edge.

func HasEnvironmentWith

func HasEnvironmentWith(preds ...predicate.Environment) predicate.Resource

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

func HasProject

func HasProject() predicate.Resource

HasProject applies the HasEdge predicate on the "project" edge.

func HasProjectWith

func HasProjectWith(preds ...predicate.Project) predicate.Resource

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

func HasResourceDefinition

func HasResourceDefinition() predicate.Resource

HasResourceDefinition applies the HasEdge predicate on the "resource_definition" edge.

func HasResourceDefinitionMatchingRule added in v0.5.0

func HasResourceDefinitionMatchingRule() predicate.Resource

HasResourceDefinitionMatchingRule applies the HasEdge predicate on the "resource_definition_matching_rule" edge.

func HasResourceDefinitionMatchingRuleWith added in v0.5.0

func HasResourceDefinitionMatchingRuleWith(preds ...predicate.ResourceDefinitionMatchingRule) predicate.Resource

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

func HasResourceDefinitionWith

func HasResourceDefinitionWith(preds ...predicate.ResourceDefinition) predicate.Resource

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

func HasRevisions

func HasRevisions() predicate.Resource

HasRevisions applies the HasEdge predicate on the "revisions" edge.

func HasRevisionsWith

func HasRevisionsWith(preds ...predicate.ResourceRevision) predicate.Resource

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

func HasTemplate

func HasTemplate() predicate.Resource

HasTemplate applies the HasEdge predicate on the "template" edge.

func HasTemplateWith

func HasTemplateWith(preds ...predicate.TemplateVersion) predicate.Resource

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

func ID

func ID(id object.ID) predicate.Resource

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id object.ID) predicate.Resource

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id object.ID) predicate.Resource

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id object.ID) predicate.Resource

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...object.ID) predicate.Resource

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id object.ID) predicate.Resource

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id object.ID) predicate.Resource

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id object.ID) predicate.Resource

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...object.ID) predicate.Resource

IDNotIn applies the NotIn predicate on the ID field.

func LabelsIsNil

func LabelsIsNil() predicate.Resource

LabelsIsNil applies the IsNil predicate on the "labels" field.

func LabelsNotNil

func LabelsNotNil() predicate.Resource

LabelsNotNil applies the NotNil predicate on the "labels" field.

func Name

func Name(v string) predicate.Resource

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

func NameContains

func NameContains(v string) predicate.Resource

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

func NameContainsFold

func NameContainsFold(v string) predicate.Resource

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

func NameEQ

func NameEQ(v string) predicate.Resource

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

func NameEqualFold

func NameEqualFold(v string) predicate.Resource

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

func NameGT

func NameGT(v string) predicate.Resource

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

func NameGTE

func NameGTE(v string) predicate.Resource

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Resource

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Resource

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Resource

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

func NameLTE

func NameLTE(v string) predicate.Resource

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

func NameNEQ

func NameNEQ(v string) predicate.Resource

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Resource) predicate.Resource

Or groups predicates with the OR operator between them.

func ProjectID

func ProjectID(v object.ID) predicate.Resource

ProjectID applies equality check predicate on the "project_id" field. It's identical to ProjectIDEQ.

func ProjectIDContains

func ProjectIDContains(v object.ID) predicate.Resource

ProjectIDContains applies the Contains predicate on the "project_id" field.

func ProjectIDContainsFold

func ProjectIDContainsFold(v object.ID) predicate.Resource

ProjectIDContainsFold applies the ContainsFold predicate on the "project_id" field.

func ProjectIDEQ

func ProjectIDEQ(v object.ID) predicate.Resource

ProjectIDEQ applies the EQ predicate on the "project_id" field.

func ProjectIDEqualFold

func ProjectIDEqualFold(v object.ID) predicate.Resource

ProjectIDEqualFold applies the EqualFold predicate on the "project_id" field.

func ProjectIDGT

func ProjectIDGT(v object.ID) predicate.Resource

ProjectIDGT applies the GT predicate on the "project_id" field.

func ProjectIDGTE

func ProjectIDGTE(v object.ID) predicate.Resource

ProjectIDGTE applies the GTE predicate on the "project_id" field.

func ProjectIDHasPrefix

func ProjectIDHasPrefix(v object.ID) predicate.Resource

ProjectIDHasPrefix applies the HasPrefix predicate on the "project_id" field.

func ProjectIDHasSuffix

func ProjectIDHasSuffix(v object.ID) predicate.Resource

ProjectIDHasSuffix applies the HasSuffix predicate on the "project_id" field.

func ProjectIDIn

func ProjectIDIn(vs ...object.ID) predicate.Resource

ProjectIDIn applies the In predicate on the "project_id" field.

func ProjectIDLT

func ProjectIDLT(v object.ID) predicate.Resource

ProjectIDLT applies the LT predicate on the "project_id" field.

func ProjectIDLTE

func ProjectIDLTE(v object.ID) predicate.Resource

ProjectIDLTE applies the LTE predicate on the "project_id" field.

func ProjectIDNEQ

func ProjectIDNEQ(v object.ID) predicate.Resource

ProjectIDNEQ applies the NEQ predicate on the "project_id" field.

func ProjectIDNotIn

func ProjectIDNotIn(vs ...object.ID) predicate.Resource

ProjectIDNotIn applies the NotIn predicate on the "project_id" field.

func ResourceDefinitionID

func ResourceDefinitionID(v object.ID) predicate.Resource

ResourceDefinitionID applies equality check predicate on the "resource_definition_id" field. It's identical to ResourceDefinitionIDEQ.

func ResourceDefinitionIDContains

func ResourceDefinitionIDContains(v object.ID) predicate.Resource

ResourceDefinitionIDContains applies the Contains predicate on the "resource_definition_id" field.

func ResourceDefinitionIDContainsFold

func ResourceDefinitionIDContainsFold(v object.ID) predicate.Resource

ResourceDefinitionIDContainsFold applies the ContainsFold predicate on the "resource_definition_id" field.

func ResourceDefinitionIDEQ

func ResourceDefinitionIDEQ(v object.ID) predicate.Resource

ResourceDefinitionIDEQ applies the EQ predicate on the "resource_definition_id" field.

func ResourceDefinitionIDEqualFold

func ResourceDefinitionIDEqualFold(v object.ID) predicate.Resource

ResourceDefinitionIDEqualFold applies the EqualFold predicate on the "resource_definition_id" field.

func ResourceDefinitionIDGT

func ResourceDefinitionIDGT(v object.ID) predicate.Resource

ResourceDefinitionIDGT applies the GT predicate on the "resource_definition_id" field.

func ResourceDefinitionIDGTE

func ResourceDefinitionIDGTE(v object.ID) predicate.Resource

ResourceDefinitionIDGTE applies the GTE predicate on the "resource_definition_id" field.

func ResourceDefinitionIDHasPrefix

func ResourceDefinitionIDHasPrefix(v object.ID) predicate.Resource

ResourceDefinitionIDHasPrefix applies the HasPrefix predicate on the "resource_definition_id" field.

func ResourceDefinitionIDHasSuffix

func ResourceDefinitionIDHasSuffix(v object.ID) predicate.Resource

ResourceDefinitionIDHasSuffix applies the HasSuffix predicate on the "resource_definition_id" field.

func ResourceDefinitionIDIn

func ResourceDefinitionIDIn(vs ...object.ID) predicate.Resource

ResourceDefinitionIDIn applies the In predicate on the "resource_definition_id" field.

func ResourceDefinitionIDIsNil

func ResourceDefinitionIDIsNil() predicate.Resource

ResourceDefinitionIDIsNil applies the IsNil predicate on the "resource_definition_id" field.

func ResourceDefinitionIDLT

func ResourceDefinitionIDLT(v object.ID) predicate.Resource

ResourceDefinitionIDLT applies the LT predicate on the "resource_definition_id" field.

func ResourceDefinitionIDLTE

func ResourceDefinitionIDLTE(v object.ID) predicate.Resource

ResourceDefinitionIDLTE applies the LTE predicate on the "resource_definition_id" field.

func ResourceDefinitionIDNEQ

func ResourceDefinitionIDNEQ(v object.ID) predicate.Resource

ResourceDefinitionIDNEQ applies the NEQ predicate on the "resource_definition_id" field.

func ResourceDefinitionIDNotIn

func ResourceDefinitionIDNotIn(vs ...object.ID) predicate.Resource

ResourceDefinitionIDNotIn applies the NotIn predicate on the "resource_definition_id" field.

func ResourceDefinitionIDNotNil

func ResourceDefinitionIDNotNil() predicate.Resource

ResourceDefinitionIDNotNil applies the NotNil predicate on the "resource_definition_id" field.

func ResourceDefinitionMatchingRuleID added in v0.5.0

func ResourceDefinitionMatchingRuleID(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleID applies equality check predicate on the "resource_definition_matching_rule_id" field. It's identical to ResourceDefinitionMatchingRuleIDEQ.

func ResourceDefinitionMatchingRuleIDContains added in v0.5.0

func ResourceDefinitionMatchingRuleIDContains(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDContains applies the Contains predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDContainsFold added in v0.5.0

func ResourceDefinitionMatchingRuleIDContainsFold(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDContainsFold applies the ContainsFold predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDEQ added in v0.5.0

func ResourceDefinitionMatchingRuleIDEQ(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDEQ applies the EQ predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDEqualFold added in v0.5.0

func ResourceDefinitionMatchingRuleIDEqualFold(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDEqualFold applies the EqualFold predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDGT added in v0.5.0

func ResourceDefinitionMatchingRuleIDGT(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDGT applies the GT predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDGTE added in v0.5.0

func ResourceDefinitionMatchingRuleIDGTE(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDGTE applies the GTE predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDHasPrefix added in v0.5.0

func ResourceDefinitionMatchingRuleIDHasPrefix(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDHasPrefix applies the HasPrefix predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDHasSuffix added in v0.5.0

func ResourceDefinitionMatchingRuleIDHasSuffix(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDHasSuffix applies the HasSuffix predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDIn added in v0.5.0

func ResourceDefinitionMatchingRuleIDIn(vs ...object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDIn applies the In predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDIsNil added in v0.5.0

func ResourceDefinitionMatchingRuleIDIsNil() predicate.Resource

ResourceDefinitionMatchingRuleIDIsNil applies the IsNil predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDLT added in v0.5.0

func ResourceDefinitionMatchingRuleIDLT(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDLT applies the LT predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDLTE added in v0.5.0

func ResourceDefinitionMatchingRuleIDLTE(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDLTE applies the LTE predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDNEQ added in v0.5.0

func ResourceDefinitionMatchingRuleIDNEQ(v object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDNEQ applies the NEQ predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDNotIn added in v0.5.0

func ResourceDefinitionMatchingRuleIDNotIn(vs ...object.ID) predicate.Resource

ResourceDefinitionMatchingRuleIDNotIn applies the NotIn predicate on the "resource_definition_matching_rule_id" field.

func ResourceDefinitionMatchingRuleIDNotNil added in v0.5.0

func ResourceDefinitionMatchingRuleIDNotNil() predicate.Resource

ResourceDefinitionMatchingRuleIDNotNil applies the NotNil predicate on the "resource_definition_matching_rule_id" field.

func StatusIsNil

func StatusIsNil() predicate.Resource

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Resource

StatusNotNil applies the NotNil predicate on the "status" field.

func TemplateID

func TemplateID(v object.ID) predicate.Resource

TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.

func TemplateIDContains

func TemplateIDContains(v object.ID) predicate.Resource

TemplateIDContains applies the Contains predicate on the "template_id" field.

func TemplateIDContainsFold

func TemplateIDContainsFold(v object.ID) predicate.Resource

TemplateIDContainsFold applies the ContainsFold predicate on the "template_id" field.

func TemplateIDEQ

func TemplateIDEQ(v object.ID) predicate.Resource

TemplateIDEQ applies the EQ predicate on the "template_id" field.

func TemplateIDEqualFold

func TemplateIDEqualFold(v object.ID) predicate.Resource

TemplateIDEqualFold applies the EqualFold predicate on the "template_id" field.

func TemplateIDGT

func TemplateIDGT(v object.ID) predicate.Resource

TemplateIDGT applies the GT predicate on the "template_id" field.

func TemplateIDGTE

func TemplateIDGTE(v object.ID) predicate.Resource

TemplateIDGTE applies the GTE predicate on the "template_id" field.

func TemplateIDHasPrefix

func TemplateIDHasPrefix(v object.ID) predicate.Resource

TemplateIDHasPrefix applies the HasPrefix predicate on the "template_id" field.

func TemplateIDHasSuffix

func TemplateIDHasSuffix(v object.ID) predicate.Resource

TemplateIDHasSuffix applies the HasSuffix predicate on the "template_id" field.

func TemplateIDIn

func TemplateIDIn(vs ...object.ID) predicate.Resource

TemplateIDIn applies the In predicate on the "template_id" field.

func TemplateIDIsNil

func TemplateIDIsNil() predicate.Resource

TemplateIDIsNil applies the IsNil predicate on the "template_id" field.

func TemplateIDLT

func TemplateIDLT(v object.ID) predicate.Resource

TemplateIDLT applies the LT predicate on the "template_id" field.

func TemplateIDLTE

func TemplateIDLTE(v object.ID) predicate.Resource

TemplateIDLTE applies the LTE predicate on the "template_id" field.

func TemplateIDNEQ

func TemplateIDNEQ(v object.ID) predicate.Resource

TemplateIDNEQ applies the NEQ predicate on the "template_id" field.

func TemplateIDNotIn

func TemplateIDNotIn(vs ...object.ID) predicate.Resource

TemplateIDNotIn applies the NotIn predicate on the "template_id" field.

func TemplateIDNotNil

func TemplateIDNotNil() predicate.Resource

TemplateIDNotNil applies the NotNil predicate on the "template_id" field.

func Type

func Type(v string) predicate.Resource

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Resource

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Resource

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Resource

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Resource

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Resource

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Resource

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Resource

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Resource

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

func TypeIn(vs ...string) predicate.Resource

TypeIn applies the In predicate on the "type" field.

func TypeIsNil

func TypeIsNil() predicate.Resource

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Resource

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Resource

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Resource

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...string) predicate.Resource

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil

func TypeNotNil() predicate.Resource

TypeNotNil applies the NotNil predicate on the "type" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Resource

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Resource

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Resource

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Resource

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Resource

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Resource

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Resource

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Resource

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Resource

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

func WithoutFields

func WithoutFields(ignores ...string) []string

WithoutFields returns the fields ignored the given list.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Resource queries.

func ByAttributes

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

ByAttributes orders the results by the attributes field.

func ByChangeComment added in v0.5.0

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

ByChangeComment orders the results by the change_comment field.

func ByComponents

func ByComponents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByComponents orders the results by components terms.

func ByComponentsCount

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

ByComponentsCount orders the results by components count.

func ByComputedAttributes added in v0.5.0

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

ByComputedAttributes orders the results by the computed_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 ByResourceDefinitionField

func ByResourceDefinitionField(field string, opts ...sql.OrderTermOption) OrderOption

ByResourceDefinitionField orders the results by resource_definition field.

func ByResourceDefinitionID

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

ByResourceDefinitionID orders the results by the resource_definition_id field.

func ByResourceDefinitionMatchingRuleField added in v0.5.0

func ByResourceDefinitionMatchingRuleField(field string, opts ...sql.OrderTermOption) OrderOption

ByResourceDefinitionMatchingRuleField orders the results by resource_definition_matching_rule field.

func ByResourceDefinitionMatchingRuleID added in v0.5.0

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

ByResourceDefinitionMatchingRuleID orders the results by the resource_definition_matching_rule_id field.

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

Jump to

Keyboard shortcuts

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