templateversion

package
v0.4.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the templateversion type in the database.
	Label = "template_version"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldTemplateID holds the string denoting the template_id field in the database.
	FieldTemplateID = "template_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldSchema holds the string denoting the schema field in the database.
	FieldSchema = "schema"
	// FieldUiSchema holds the string denoting the uischema field in the database.
	FieldUiSchema = "ui_schema"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// EdgeTemplate holds the string denoting the template edge name in mutations.
	EdgeTemplate = "template"
	// EdgeResources holds the string denoting the resources edge name in mutations.
	EdgeResources = "resources"
	// EdgeResourceDefinitions holds the string denoting the resource_definitions edge name in mutations.
	EdgeResourceDefinitions = "resource_definitions"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// Table holds the table name of the templateversion in the database.
	Table = "template_versions"
	// TemplateTable is the table that holds the template relation/edge.
	TemplateTable = "template_versions"
	// TemplateInverseTable is the table name for the Template entity.
	// It exists in this package in order to avoid circular dependency with the "template" package.
	TemplateInverseTable = "templates"
	// TemplateColumn is the table column denoting the template relation/edge.
	TemplateColumn = "template_id"
	// ResourcesTable is the table that holds the resources relation/edge.
	ResourcesTable = "resources"
	// ResourcesInverseTable is the table name for the Resource entity.
	// It exists in this package in order to avoid circular dependency with the "resource" package.
	ResourcesInverseTable = "resources"
	// ResourcesColumn is the table column denoting the resources relation/edge.
	ResourcesColumn = "template_id"
	// ResourceDefinitionsTable is the table that holds the resource_definitions relation/edge.
	ResourceDefinitionsTable = "resource_definition_matching_rules"
	// ResourceDefinitionsInverseTable is the table name for the ResourceDefinitionMatchingRule entity.
	// It exists in this package in order to avoid circular dependency with the "resourcedefinitionmatchingrule" package.
	ResourceDefinitionsInverseTable = "resource_definition_matching_rules"
	// ResourceDefinitionsColumn is the table column denoting the resource_definitions relation/edge.
	ResourceDefinitionsColumn = "template_id"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "template_versions"
	// ProjectInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectInverseTable = "projects"
	// ProjectColumn is the table column denoting the project relation/edge.
	ProjectColumn = "project_id"
)

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// 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
	// TemplateIDValidator is a validator for the "template_id" field. It is called by the builders before save.
	TemplateIDValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(string) error
	// SourceValidator is a validator for the "source" field. It is called by the builders before save.
	SourceValidator func(string) error
	// DefaultSchema holds the default value on creation for the "schema" field.
	DefaultSchema types.TemplateVersionSchema
	// DefaultUiSchema holds the default value on creation for the "uiSchema" field.
	DefaultUiSchema types.UISchema
)

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

Functions

func And

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.TemplateVersion

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.TemplateVersion

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.TemplateVersion

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.TemplateVersion

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.TemplateVersion

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.TemplateVersion

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.TemplateVersion

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

func CreateTimeNotIn

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

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

func HasProject added in v0.4.0

func HasProject() predicate.TemplateVersion

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

func HasProjectWith added in v0.4.0

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

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

func HasResourceDefinitions added in v0.4.0

func HasResourceDefinitions() predicate.TemplateVersion

HasResourceDefinitions applies the HasEdge predicate on the "resource_definitions" edge.

func HasResourceDefinitionsWith added in v0.4.0

func HasResourceDefinitionsWith(preds ...predicate.ResourceDefinitionMatchingRule) predicate.TemplateVersion

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

func HasResources added in v0.4.0

func HasResources() predicate.TemplateVersion

HasResources applies the HasEdge predicate on the "resources" edge.

func HasResourcesWith added in v0.4.0

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

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

func HasTemplate

func HasTemplate() predicate.TemplateVersion

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

func HasTemplateWith

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

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

func NameContains

func NameContains(v string) predicate.TemplateVersion

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

func NameContainsFold

func NameContainsFold(v string) predicate.TemplateVersion

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

func NameEQ

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

func NameEqualFold

func NameEqualFold(v string) predicate.TemplateVersion

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

func NameGT

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

func NameGTE

func NameGTE(v string) predicate.TemplateVersion

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.TemplateVersion

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.TemplateVersion

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

func NameIn

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

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

func NameLT

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

func NameLTE

func NameLTE(v string) predicate.TemplateVersion

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

func NameNEQ

func NameNEQ(v string) predicate.TemplateVersion

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

func NameNotIn

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

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

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ProjectID added in v0.4.0

func ProjectID(v object.ID) predicate.TemplateVersion

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

func ProjectIDContains added in v0.4.0

func ProjectIDContains(v object.ID) predicate.TemplateVersion

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

func ProjectIDContainsFold added in v0.4.0

func ProjectIDContainsFold(v object.ID) predicate.TemplateVersion

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

func ProjectIDEQ added in v0.4.0

func ProjectIDEQ(v object.ID) predicate.TemplateVersion

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

func ProjectIDEqualFold added in v0.4.0

func ProjectIDEqualFold(v object.ID) predicate.TemplateVersion

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

func ProjectIDGT added in v0.4.0

func ProjectIDGT(v object.ID) predicate.TemplateVersion

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

func ProjectIDGTE added in v0.4.0

func ProjectIDGTE(v object.ID) predicate.TemplateVersion

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

func ProjectIDHasPrefix added in v0.4.0

func ProjectIDHasPrefix(v object.ID) predicate.TemplateVersion

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

func ProjectIDHasSuffix added in v0.4.0

func ProjectIDHasSuffix(v object.ID) predicate.TemplateVersion

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

func ProjectIDIn added in v0.4.0

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

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

func ProjectIDIsNil added in v0.4.0

func ProjectIDIsNil() predicate.TemplateVersion

ProjectIDIsNil applies the IsNil predicate on the "project_id" field.

func ProjectIDLT added in v0.4.0

func ProjectIDLT(v object.ID) predicate.TemplateVersion

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

func ProjectIDLTE added in v0.4.0

func ProjectIDLTE(v object.ID) predicate.TemplateVersion

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

func ProjectIDNEQ added in v0.4.0

func ProjectIDNEQ(v object.ID) predicate.TemplateVersion

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

func ProjectIDNotIn added in v0.4.0

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

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

func ProjectIDNotNil added in v0.4.0

func ProjectIDNotNil() predicate.TemplateVersion

ProjectIDNotNil applies the NotNil predicate on the "project_id" field.

func Source

Source applies equality check predicate on the "source" field. It's identical to SourceEQ.

func SourceContains

func SourceContains(v string) predicate.TemplateVersion

SourceContains applies the Contains predicate on the "source" field.

func SourceContainsFold

func SourceContainsFold(v string) predicate.TemplateVersion

SourceContainsFold applies the ContainsFold predicate on the "source" field.

func SourceEQ

func SourceEQ(v string) predicate.TemplateVersion

SourceEQ applies the EQ predicate on the "source" field.

func SourceEqualFold

func SourceEqualFold(v string) predicate.TemplateVersion

SourceEqualFold applies the EqualFold predicate on the "source" field.

func SourceGT

func SourceGT(v string) predicate.TemplateVersion

SourceGT applies the GT predicate on the "source" field.

func SourceGTE

func SourceGTE(v string) predicate.TemplateVersion

SourceGTE applies the GTE predicate on the "source" field.

func SourceHasPrefix

func SourceHasPrefix(v string) predicate.TemplateVersion

SourceHasPrefix applies the HasPrefix predicate on the "source" field.

func SourceHasSuffix

func SourceHasSuffix(v string) predicate.TemplateVersion

SourceHasSuffix applies the HasSuffix predicate on the "source" field.

func SourceIn

func SourceIn(vs ...string) predicate.TemplateVersion

SourceIn applies the In predicate on the "source" field.

func SourceLT

func SourceLT(v string) predicate.TemplateVersion

SourceLT applies the LT predicate on the "source" field.

func SourceLTE

func SourceLTE(v string) predicate.TemplateVersion

SourceLTE applies the LTE predicate on the "source" field.

func SourceNEQ

func SourceNEQ(v string) predicate.TemplateVersion

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...string) predicate.TemplateVersion

SourceNotIn applies the NotIn predicate on the "source" field.

func TemplateID

func TemplateID(v object.ID) predicate.TemplateVersion

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

func TemplateIDContains

func TemplateIDContains(v object.ID) predicate.TemplateVersion

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

func TemplateIDContainsFold

func TemplateIDContainsFold(v object.ID) predicate.TemplateVersion

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

func TemplateIDEQ

func TemplateIDEQ(v object.ID) predicate.TemplateVersion

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

func TemplateIDEqualFold

func TemplateIDEqualFold(v object.ID) predicate.TemplateVersion

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

func TemplateIDGT

func TemplateIDGT(v object.ID) predicate.TemplateVersion

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

func TemplateIDGTE

func TemplateIDGTE(v object.ID) predicate.TemplateVersion

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

func TemplateIDHasPrefix

func TemplateIDHasPrefix(v object.ID) predicate.TemplateVersion

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

func TemplateIDHasSuffix

func TemplateIDHasSuffix(v object.ID) predicate.TemplateVersion

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

func TemplateIDIn

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

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

func TemplateIDLT

func TemplateIDLT(v object.ID) predicate.TemplateVersion

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

func TemplateIDLTE

func TemplateIDLTE(v object.ID) predicate.TemplateVersion

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

func TemplateIDNEQ

func TemplateIDNEQ(v object.ID) predicate.TemplateVersion

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

func TemplateIDNotIn

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

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

func UpdateTime

func UpdateTime(v time.Time) predicate.TemplateVersion

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.TemplateVersion

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.TemplateVersion

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.TemplateVersion

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.TemplateVersion

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.TemplateVersion

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.TemplateVersion

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

func UpdateTimeNotIn

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

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 Version

func Version(v string) predicate.TemplateVersion

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.TemplateVersion

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.TemplateVersion

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.TemplateVersion

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.TemplateVersion

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.TemplateVersion

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.TemplateVersion

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.TemplateVersion

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.TemplateVersion

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.TemplateVersion

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.TemplateVersion

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.TemplateVersion

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.TemplateVersion

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.TemplateVersion

VersionNotIn applies the NotIn predicate on the "version" field.

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

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByProjectField added in v0.4.0

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

ByProjectField orders the results by project field.

func ByProjectID added in v0.4.0

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

ByProjectID orders the results by the project_id field.

func ByResourceDefinitions added in v0.4.0

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

ByResourceDefinitions orders the results by resource_definitions terms.

func ByResourceDefinitionsCount added in v0.4.0

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

ByResourceDefinitionsCount orders the results by resource_definitions count.

func ByResources added in v0.4.0

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

ByResources orders the results by resources terms.

func ByResourcesCount added in v0.4.0

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

ByResourcesCount orders the results by resources count.

func BySource

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

BySource orders the results by the source field.

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.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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