resource

package
v0.4.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 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"
	// 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"
	// EdgeResourceDefinition holds the string denoting the resource_definition edge name in mutations.
	EdgeResourceDefinition = "resource_definition"
	// 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"
	// 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 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 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 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 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 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 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 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