environment

package
v0.5.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the environment type in the database.
	Label = "environment"
	// 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"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeConnectors holds the string denoting the connectors edge name in mutations.
	EdgeConnectors = "connectors"
	// EdgeResources holds the string denoting the resources edge name in mutations.
	EdgeResources = "resources"
	// EdgeResourceRevisions holds the string denoting the resource_revisions edge name in mutations.
	EdgeResourceRevisions = "resource_revisions"
	// EdgeResourceComponents holds the string denoting the resource_components edge name in mutations.
	EdgeResourceComponents = "resource_components"
	// EdgeVariables holds the string denoting the variables edge name in mutations.
	EdgeVariables = "variables"
	// Table holds the table name of the environment in the database.
	Table = "environments"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "environments"
	// 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"
	// ConnectorsTable is the table that holds the connectors relation/edge.
	ConnectorsTable = "environment_connector_relationships"
	// ConnectorsInverseTable is the table name for the EnvironmentConnectorRelationship entity.
	// It exists in this package in order to avoid circular dependency with the "environmentconnectorrelationship" package.
	ConnectorsInverseTable = "environment_connector_relationships"
	// ConnectorsColumn is the table column denoting the connectors relation/edge.
	ConnectorsColumn = "environment_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 = "environment_id"
	// ResourceRevisionsTable is the table that holds the resource_revisions relation/edge.
	ResourceRevisionsTable = "resource_revisions"
	// ResourceRevisionsInverseTable is the table name for the ResourceRevision entity.
	// It exists in this package in order to avoid circular dependency with the "resourcerevision" package.
	ResourceRevisionsInverseTable = "resource_revisions"
	// ResourceRevisionsColumn is the table column denoting the resource_revisions relation/edge.
	ResourceRevisionsColumn = "environment_id"
	// ResourceComponentsTable is the table that holds the resource_components relation/edge.
	ResourceComponentsTable = "resource_components"
	// ResourceComponentsInverseTable is the table name for the ResourceComponent entity.
	// It exists in this package in order to avoid circular dependency with the "resourcecomponent" package.
	ResourceComponentsInverseTable = "resource_components"
	// ResourceComponentsColumn is the table column denoting the resource_components relation/edge.
	ResourceComponentsColumn = "environment_id"
	// VariablesTable is the table that holds the variables relation/edge.
	VariablesTable = "variables"
	// VariablesInverseTable is the table name for the Variable entity.
	// It exists in this package in order to avoid circular dependency with the "variable" package.
	VariablesInverseTable = "variables"
	// VariablesColumn is the table column denoting the variables relation/edge.
	VariablesColumn = "environment_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
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator 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 environment fields.

Functions

func And

func And(predicates ...predicate.Environment) predicate.Environment

And groups predicates with the AND operator between them.

func AnnotationsIsNil

func AnnotationsIsNil() predicate.Environment

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

func AnnotationsNotNil

func AnnotationsNotNil() predicate.Environment

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

func CreateTime

func CreateTime(v time.Time) predicate.Environment

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Environment

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Environment

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Environment

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Environment

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Environment

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Environment

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

func CreateTimeNotIn

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

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

func Description

func Description(v string) predicate.Environment

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

func DescriptionContains

func DescriptionContains(v string) predicate.Environment

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Environment

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Environment

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Environment

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

func DescriptionGT

func DescriptionGT(v string) predicate.Environment

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Environment

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Environment

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Environment

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Environment

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

func DescriptionLT

func DescriptionLT(v string) predicate.Environment

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Environment

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Environment

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Environment

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

func HasConnectors

func HasConnectors() predicate.Environment

HasConnectors applies the HasEdge predicate on the "connectors" edge.

func HasConnectorsWith

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

func HasProject

func HasProject() predicate.Environment

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

func HasProjectWith

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

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

func HasResourceComponents added in v0.4.0

func HasResourceComponents() predicate.Environment

HasResourceComponents applies the HasEdge predicate on the "resource_components" edge.

func HasResourceComponentsWith added in v0.4.0

func HasResourceComponentsWith(preds ...predicate.ResourceComponent) predicate.Environment

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

func HasResourceRevisions added in v0.4.0

func HasResourceRevisions() predicate.Environment

HasResourceRevisions applies the HasEdge predicate on the "resource_revisions" edge.

func HasResourceRevisionsWith added in v0.4.0

func HasResourceRevisionsWith(preds ...predicate.ResourceRevision) predicate.Environment

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

func HasResources added in v0.4.0

func HasResources() predicate.Environment

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

func HasResourcesWith added in v0.4.0

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

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

func HasVariables

func HasVariables() predicate.Environment

HasVariables applies the HasEdge predicate on the "variables" edge.

func HasVariablesWith

func HasVariablesWith(preds ...predicate.Variable) predicate.Environment

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id object.ID) predicate.Environment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id object.ID) predicate.Environment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id object.ID) predicate.Environment

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id object.ID) predicate.Environment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id object.ID) predicate.Environment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id object.ID) predicate.Environment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LabelsIsNil

func LabelsIsNil() predicate.Environment

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

func LabelsNotNil

func LabelsNotNil() predicate.Environment

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

func Name

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

func NameContains

func NameContains(v string) predicate.Environment

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

func NameContainsFold

func NameContainsFold(v string) predicate.Environment

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

func NameEQ

func NameEQ(v string) predicate.Environment

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

func NameEqualFold

func NameEqualFold(v string) predicate.Environment

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

func NameGT

func NameGT(v string) predicate.Environment

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

func NameGTE

func NameGTE(v string) predicate.Environment

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Environment

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Environment

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Environment

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

func NameLTE

func NameLTE(v string) predicate.Environment

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

func NameNEQ

func NameNEQ(v string) predicate.Environment

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

func NameNotIn

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

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.Environment) predicate.Environment

Or groups predicates with the OR operator between them.

func ProjectID

func ProjectID(v object.ID) predicate.Environment

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

func ProjectIDContains

func ProjectIDContains(v object.ID) predicate.Environment

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

func ProjectIDContainsFold

func ProjectIDContainsFold(v object.ID) predicate.Environment

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

func ProjectIDEQ

func ProjectIDEQ(v object.ID) predicate.Environment

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

func ProjectIDEqualFold

func ProjectIDEqualFold(v object.ID) predicate.Environment

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

func ProjectIDGT

func ProjectIDGT(v object.ID) predicate.Environment

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

func ProjectIDGTE

func ProjectIDGTE(v object.ID) predicate.Environment

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

func ProjectIDHasPrefix

func ProjectIDHasPrefix(v object.ID) predicate.Environment

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

func ProjectIDHasSuffix

func ProjectIDHasSuffix(v object.ID) predicate.Environment

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

func ProjectIDIn

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

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

func ProjectIDLT

func ProjectIDLT(v object.ID) predicate.Environment

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

func ProjectIDLTE

func ProjectIDLTE(v object.ID) predicate.Environment

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

func ProjectIDNEQ

func ProjectIDNEQ(v object.ID) predicate.Environment

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

func ProjectIDNotIn

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

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

func Type added in v0.4.0

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

func TypeContains added in v0.4.0

func TypeContains(v string) predicate.Environment

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

func TypeContainsFold added in v0.4.0

func TypeContainsFold(v string) predicate.Environment

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

func TypeEQ added in v0.4.0

func TypeEQ(v string) predicate.Environment

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

func TypeEqualFold added in v0.4.0

func TypeEqualFold(v string) predicate.Environment

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

func TypeGT added in v0.4.0

func TypeGT(v string) predicate.Environment

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

func TypeGTE added in v0.4.0

func TypeGTE(v string) predicate.Environment

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

func TypeHasPrefix added in v0.4.0

func TypeHasPrefix(v string) predicate.Environment

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

func TypeHasSuffix added in v0.4.0

func TypeHasSuffix(v string) predicate.Environment

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

func TypeIn added in v0.4.0

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

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

func TypeLT added in v0.4.0

func TypeLT(v string) predicate.Environment

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

func TypeLTE added in v0.4.0

func TypeLTE(v string) predicate.Environment

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

func TypeNEQ added in v0.4.0

func TypeNEQ(v string) predicate.Environment

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

func TypeNotIn added in v0.4.0

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

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

func UpdateTime

func UpdateTime(v time.Time) predicate.Environment

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Environment

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Environment

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Environment

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Environment

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Environment

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Environment

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

func UpdateTimeNotIn

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

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

func ByConnectors

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

ByConnectors orders the results by connectors terms.

func ByConnectorsCount

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

ByConnectorsCount orders the results by connectors count.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByDescription

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

ByDescription orders the results by the description field.

func 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 ByResourceComponents added in v0.4.0

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

ByResourceComponents orders the results by resource_components terms.

func ByResourceComponentsCount added in v0.4.0

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

ByResourceComponentsCount orders the results by resource_components count.

func ByResourceRevisions added in v0.4.0

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

ByResourceRevisions orders the results by resource_revisions terms.

func ByResourceRevisionsCount added in v0.4.0

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

ByResourceRevisionsCount orders the results by resource_revisions 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 ByType added in v0.4.0

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.

func ByVariables

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

ByVariables orders the results by variables terms.

func ByVariablesCount

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

ByVariablesCount orders the results by variables count.

Jump to

Keyboard shortcuts

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