serviceresource

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the serviceresource type in the database.
	Label = "service_resource"
	// 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"
	// 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"
	// FieldServiceID holds the string denoting the service_id field in the database.
	FieldServiceID = "service_id"
	// FieldConnectorID holds the string denoting the connector_id field in the database.
	FieldConnectorID = "connector_id"
	// FieldCompositionID holds the string denoting the composition_id field in the database.
	FieldCompositionID = "composition_id"
	// FieldClassID holds the string denoting the class_id field in the database.
	FieldClassID = "class_id"
	// FieldMode holds the string denoting the mode field in the database.
	FieldMode = "mode"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDeployerType holds the string denoting the deployer_type field in the database.
	FieldDeployerType = "deployer_type"
	// FieldShape holds the string denoting the shape field in the database.
	FieldShape = "shape"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// 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"
	// EdgeService holds the string denoting the service edge name in mutations.
	EdgeService = "service"
	// EdgeConnector holds the string denoting the connector edge name in mutations.
	EdgeConnector = "connector"
	// EdgeComposition holds the string denoting the composition edge name in mutations.
	EdgeComposition = "composition"
	// EdgeComponents holds the string denoting the components edge name in mutations.
	EdgeComponents = "components"
	// EdgeClass holds the string denoting the class edge name in mutations.
	EdgeClass = "class"
	// EdgeInstances holds the string denoting the instances edge name in mutations.
	EdgeInstances = "instances"
	// EdgeDependencies holds the string denoting the dependencies edge name in mutations.
	EdgeDependencies = "dependencies"
	// Table holds the table name of the serviceresource in the database.
	Table = "service_resources"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "service_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 = "service_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"
	// ServiceTable is the table that holds the service relation/edge.
	ServiceTable = "service_resources"
	// ServiceInverseTable is the table name for the Service entity.
	// It exists in this package in order to avoid circular dependency with the "service" package.
	ServiceInverseTable = "services"
	// ServiceColumn is the table column denoting the service relation/edge.
	ServiceColumn = "service_id"
	// ConnectorTable is the table that holds the connector relation/edge.
	ConnectorTable = "service_resources"
	// ConnectorInverseTable is the table name for the Connector entity.
	// It exists in this package in order to avoid circular dependency with the "connector" package.
	ConnectorInverseTable = "connectors"
	// ConnectorColumn is the table column denoting the connector relation/edge.
	ConnectorColumn = "connector_id"
	// CompositionTable is the table that holds the composition relation/edge.
	CompositionTable = "service_resources"
	// CompositionColumn is the table column denoting the composition relation/edge.
	CompositionColumn = "composition_id"
	// ComponentsTable is the table that holds the components relation/edge.
	ComponentsTable = "service_resources"
	// ComponentsColumn is the table column denoting the components relation/edge.
	ComponentsColumn = "composition_id"
	// ClassTable is the table that holds the class relation/edge.
	ClassTable = "service_resources"
	// ClassColumn is the table column denoting the class relation/edge.
	ClassColumn = "class_id"
	// InstancesTable is the table that holds the instances relation/edge.
	InstancesTable = "service_resources"
	// InstancesColumn is the table column denoting the instances relation/edge.
	InstancesColumn = "class_id"
	// DependenciesTable is the table that holds the dependencies relation/edge.
	DependenciesTable = "service_resource_relationships"
	// DependenciesInverseTable is the table name for the ServiceResourceRelationship entity.
	// It exists in this package in order to avoid circular dependency with the "serviceresourcerelationship" package.
	DependenciesInverseTable = "service_resource_relationships"
	// DependenciesColumn is the table column denoting the dependencies relation/edge.
	DependenciesColumn = "service_resource_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
	// 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
	// ServiceIDValidator is a validator for the "service_id" field. It is called by the builders before save.
	ServiceIDValidator func(string) error
	// ConnectorIDValidator is a validator for the "connector_id" field. It is called by the builders before save.
	ConnectorIDValidator func(string) error
	// ModeValidator is a validator for the "mode" field. It is called by the builders before save.
	ModeValidator func(string) error
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DeployerTypeValidator is a validator for the "deployer_type" field. It is called by the builders before save.
	DeployerTypeValidator func(string) error
	// ShapeValidator is a validator for the "shape" field. It is called by the builders before save.
	ShapeValidator 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 serviceresource fields.

Functions

func And

And groups predicates with the AND operator between them.

func ClassID

ClassID applies equality check predicate on the "class_id" field. It's identical to ClassIDEQ.

func ClassIDContains

func ClassIDContains(v object.ID) predicate.ServiceResource

ClassIDContains applies the Contains predicate on the "class_id" field.

func ClassIDContainsFold

func ClassIDContainsFold(v object.ID) predicate.ServiceResource

ClassIDContainsFold applies the ContainsFold predicate on the "class_id" field.

func ClassIDEQ

func ClassIDEQ(v object.ID) predicate.ServiceResource

ClassIDEQ applies the EQ predicate on the "class_id" field.

func ClassIDEqualFold

func ClassIDEqualFold(v object.ID) predicate.ServiceResource

ClassIDEqualFold applies the EqualFold predicate on the "class_id" field.

func ClassIDGT

func ClassIDGT(v object.ID) predicate.ServiceResource

ClassIDGT applies the GT predicate on the "class_id" field.

func ClassIDGTE

func ClassIDGTE(v object.ID) predicate.ServiceResource

ClassIDGTE applies the GTE predicate on the "class_id" field.

func ClassIDHasPrefix

func ClassIDHasPrefix(v object.ID) predicate.ServiceResource

ClassIDHasPrefix applies the HasPrefix predicate on the "class_id" field.

func ClassIDHasSuffix

func ClassIDHasSuffix(v object.ID) predicate.ServiceResource

ClassIDHasSuffix applies the HasSuffix predicate on the "class_id" field.

func ClassIDIn

func ClassIDIn(vs ...object.ID) predicate.ServiceResource

ClassIDIn applies the In predicate on the "class_id" field.

func ClassIDIsNil

func ClassIDIsNil() predicate.ServiceResource

ClassIDIsNil applies the IsNil predicate on the "class_id" field.

func ClassIDLT

func ClassIDLT(v object.ID) predicate.ServiceResource

ClassIDLT applies the LT predicate on the "class_id" field.

func ClassIDLTE

func ClassIDLTE(v object.ID) predicate.ServiceResource

ClassIDLTE applies the LTE predicate on the "class_id" field.

func ClassIDNEQ

func ClassIDNEQ(v object.ID) predicate.ServiceResource

ClassIDNEQ applies the NEQ predicate on the "class_id" field.

func ClassIDNotIn

func ClassIDNotIn(vs ...object.ID) predicate.ServiceResource

ClassIDNotIn applies the NotIn predicate on the "class_id" field.

func ClassIDNotNil

func ClassIDNotNil() predicate.ServiceResource

ClassIDNotNil applies the NotNil predicate on the "class_id" field.

func CompositionID

func CompositionID(v object.ID) predicate.ServiceResource

CompositionID applies equality check predicate on the "composition_id" field. It's identical to CompositionIDEQ.

func CompositionIDContains

func CompositionIDContains(v object.ID) predicate.ServiceResource

CompositionIDContains applies the Contains predicate on the "composition_id" field.

func CompositionIDContainsFold

func CompositionIDContainsFold(v object.ID) predicate.ServiceResource

CompositionIDContainsFold applies the ContainsFold predicate on the "composition_id" field.

func CompositionIDEQ

func CompositionIDEQ(v object.ID) predicate.ServiceResource

CompositionIDEQ applies the EQ predicate on the "composition_id" field.

func CompositionIDEqualFold

func CompositionIDEqualFold(v object.ID) predicate.ServiceResource

CompositionIDEqualFold applies the EqualFold predicate on the "composition_id" field.

func CompositionIDGT

func CompositionIDGT(v object.ID) predicate.ServiceResource

CompositionIDGT applies the GT predicate on the "composition_id" field.

func CompositionIDGTE

func CompositionIDGTE(v object.ID) predicate.ServiceResource

CompositionIDGTE applies the GTE predicate on the "composition_id" field.

func CompositionIDHasPrefix

func CompositionIDHasPrefix(v object.ID) predicate.ServiceResource

CompositionIDHasPrefix applies the HasPrefix predicate on the "composition_id" field.

func CompositionIDHasSuffix

func CompositionIDHasSuffix(v object.ID) predicate.ServiceResource

CompositionIDHasSuffix applies the HasSuffix predicate on the "composition_id" field.

func CompositionIDIn

func CompositionIDIn(vs ...object.ID) predicate.ServiceResource

CompositionIDIn applies the In predicate on the "composition_id" field.

func CompositionIDIsNil

func CompositionIDIsNil() predicate.ServiceResource

CompositionIDIsNil applies the IsNil predicate on the "composition_id" field.

func CompositionIDLT

func CompositionIDLT(v object.ID) predicate.ServiceResource

CompositionIDLT applies the LT predicate on the "composition_id" field.

func CompositionIDLTE

func CompositionIDLTE(v object.ID) predicate.ServiceResource

CompositionIDLTE applies the LTE predicate on the "composition_id" field.

func CompositionIDNEQ

func CompositionIDNEQ(v object.ID) predicate.ServiceResource

CompositionIDNEQ applies the NEQ predicate on the "composition_id" field.

func CompositionIDNotIn

func CompositionIDNotIn(vs ...object.ID) predicate.ServiceResource

CompositionIDNotIn applies the NotIn predicate on the "composition_id" field.

func CompositionIDNotNil

func CompositionIDNotNil() predicate.ServiceResource

CompositionIDNotNil applies the NotNil predicate on the "composition_id" field.

func ConnectorID

func ConnectorID(v object.ID) predicate.ServiceResource

ConnectorID applies equality check predicate on the "connector_id" field. It's identical to ConnectorIDEQ.

func ConnectorIDContains

func ConnectorIDContains(v object.ID) predicate.ServiceResource

ConnectorIDContains applies the Contains predicate on the "connector_id" field.

func ConnectorIDContainsFold

func ConnectorIDContainsFold(v object.ID) predicate.ServiceResource

ConnectorIDContainsFold applies the ContainsFold predicate on the "connector_id" field.

func ConnectorIDEQ

func ConnectorIDEQ(v object.ID) predicate.ServiceResource

ConnectorIDEQ applies the EQ predicate on the "connector_id" field.

func ConnectorIDEqualFold

func ConnectorIDEqualFold(v object.ID) predicate.ServiceResource

ConnectorIDEqualFold applies the EqualFold predicate on the "connector_id" field.

func ConnectorIDGT

func ConnectorIDGT(v object.ID) predicate.ServiceResource

ConnectorIDGT applies the GT predicate on the "connector_id" field.

func ConnectorIDGTE

func ConnectorIDGTE(v object.ID) predicate.ServiceResource

ConnectorIDGTE applies the GTE predicate on the "connector_id" field.

func ConnectorIDHasPrefix

func ConnectorIDHasPrefix(v object.ID) predicate.ServiceResource

ConnectorIDHasPrefix applies the HasPrefix predicate on the "connector_id" field.

func ConnectorIDHasSuffix

func ConnectorIDHasSuffix(v object.ID) predicate.ServiceResource

ConnectorIDHasSuffix applies the HasSuffix predicate on the "connector_id" field.

func ConnectorIDIn

func ConnectorIDIn(vs ...object.ID) predicate.ServiceResource

ConnectorIDIn applies the In predicate on the "connector_id" field.

func ConnectorIDLT

func ConnectorIDLT(v object.ID) predicate.ServiceResource

ConnectorIDLT applies the LT predicate on the "connector_id" field.

func ConnectorIDLTE

func ConnectorIDLTE(v object.ID) predicate.ServiceResource

ConnectorIDLTE applies the LTE predicate on the "connector_id" field.

func ConnectorIDNEQ

func ConnectorIDNEQ(v object.ID) predicate.ServiceResource

ConnectorIDNEQ applies the NEQ predicate on the "connector_id" field.

func ConnectorIDNotIn

func ConnectorIDNotIn(vs ...object.ID) predicate.ServiceResource

ConnectorIDNotIn applies the NotIn predicate on the "connector_id" field.

func CreateTime

func CreateTime(v time.Time) predicate.ServiceResource

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.ServiceResource

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.ServiceResource

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.ServiceResource

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.ServiceResource

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.ServiceResource

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.ServiceResource

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

func CreateTimeNotIn

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

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

func DeployerType

func DeployerType(v string) predicate.ServiceResource

DeployerType applies equality check predicate on the "deployer_type" field. It's identical to DeployerTypeEQ.

func DeployerTypeContains

func DeployerTypeContains(v string) predicate.ServiceResource

DeployerTypeContains applies the Contains predicate on the "deployer_type" field.

func DeployerTypeContainsFold

func DeployerTypeContainsFold(v string) predicate.ServiceResource

DeployerTypeContainsFold applies the ContainsFold predicate on the "deployer_type" field.

func DeployerTypeEQ

func DeployerTypeEQ(v string) predicate.ServiceResource

DeployerTypeEQ applies the EQ predicate on the "deployer_type" field.

func DeployerTypeEqualFold

func DeployerTypeEqualFold(v string) predicate.ServiceResource

DeployerTypeEqualFold applies the EqualFold predicate on the "deployer_type" field.

func DeployerTypeGT

func DeployerTypeGT(v string) predicate.ServiceResource

DeployerTypeGT applies the GT predicate on the "deployer_type" field.

func DeployerTypeGTE

func DeployerTypeGTE(v string) predicate.ServiceResource

DeployerTypeGTE applies the GTE predicate on the "deployer_type" field.

func DeployerTypeHasPrefix

func DeployerTypeHasPrefix(v string) predicate.ServiceResource

DeployerTypeHasPrefix applies the HasPrefix predicate on the "deployer_type" field.

func DeployerTypeHasSuffix

func DeployerTypeHasSuffix(v string) predicate.ServiceResource

DeployerTypeHasSuffix applies the HasSuffix predicate on the "deployer_type" field.

func DeployerTypeIn

func DeployerTypeIn(vs ...string) predicate.ServiceResource

DeployerTypeIn applies the In predicate on the "deployer_type" field.

func DeployerTypeLT

func DeployerTypeLT(v string) predicate.ServiceResource

DeployerTypeLT applies the LT predicate on the "deployer_type" field.

func DeployerTypeLTE

func DeployerTypeLTE(v string) predicate.ServiceResource

DeployerTypeLTE applies the LTE predicate on the "deployer_type" field.

func DeployerTypeNEQ

func DeployerTypeNEQ(v string) predicate.ServiceResource

DeployerTypeNEQ applies the NEQ predicate on the "deployer_type" field.

func DeployerTypeNotIn

func DeployerTypeNotIn(vs ...string) predicate.ServiceResource

DeployerTypeNotIn applies the NotIn predicate on the "deployer_type" field.

func EnvironmentID

func EnvironmentID(v object.ID) predicate.ServiceResource

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

func EnvironmentIDContains

func EnvironmentIDContains(v object.ID) predicate.ServiceResource

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

func EnvironmentIDContainsFold

func EnvironmentIDContainsFold(v object.ID) predicate.ServiceResource

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

func EnvironmentIDEQ

func EnvironmentIDEQ(v object.ID) predicate.ServiceResource

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

func EnvironmentIDEqualFold

func EnvironmentIDEqualFold(v object.ID) predicate.ServiceResource

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

func EnvironmentIDGT

func EnvironmentIDGT(v object.ID) predicate.ServiceResource

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

func EnvironmentIDGTE

func EnvironmentIDGTE(v object.ID) predicate.ServiceResource

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

func EnvironmentIDHasPrefix

func EnvironmentIDHasPrefix(v object.ID) predicate.ServiceResource

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

func EnvironmentIDHasSuffix

func EnvironmentIDHasSuffix(v object.ID) predicate.ServiceResource

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

func EnvironmentIDIn

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

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

func EnvironmentIDLT

func EnvironmentIDLT(v object.ID) predicate.ServiceResource

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

func EnvironmentIDLTE

func EnvironmentIDLTE(v object.ID) predicate.ServiceResource

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

func EnvironmentIDNEQ

func EnvironmentIDNEQ(v object.ID) predicate.ServiceResource

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

func EnvironmentIDNotIn

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

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

func HasClass

func HasClass() predicate.ServiceResource

HasClass applies the HasEdge predicate on the "class" edge.

func HasClassWith

func HasClassWith(preds ...predicate.ServiceResource) predicate.ServiceResource

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

func HasComponents

func HasComponents() predicate.ServiceResource

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

func HasComponentsWith

func HasComponentsWith(preds ...predicate.ServiceResource) predicate.ServiceResource

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

func HasComposition

func HasComposition() predicate.ServiceResource

HasComposition applies the HasEdge predicate on the "composition" edge.

func HasCompositionWith

func HasCompositionWith(preds ...predicate.ServiceResource) predicate.ServiceResource

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

func HasConnector

func HasConnector() predicate.ServiceResource

HasConnector applies the HasEdge predicate on the "connector" edge.

func HasConnectorWith

func HasConnectorWith(preds ...predicate.Connector) predicate.ServiceResource

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

func HasDependencies

func HasDependencies() predicate.ServiceResource

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

func HasDependenciesWith

func HasDependenciesWith(preds ...predicate.ServiceResourceRelationship) predicate.ServiceResource

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

func HasEnvironment

func HasEnvironment() predicate.ServiceResource

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

func HasEnvironmentWith

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

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

func HasInstances

func HasInstances() predicate.ServiceResource

HasInstances applies the HasEdge predicate on the "instances" edge.

func HasInstancesWith

func HasInstancesWith(preds ...predicate.ServiceResource) predicate.ServiceResource

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

func HasProject

func HasProject() predicate.ServiceResource

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

func HasProjectWith

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

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

func HasService

func HasService() predicate.ServiceResource

HasService applies the HasEdge predicate on the "service" edge.

func HasServiceWith

func HasServiceWith(preds ...predicate.Service) predicate.ServiceResource

HasServiceWith applies the HasEdge predicate on the "service" 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.ServiceResource

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

IDNotIn applies the NotIn predicate on the ID field.

func Mode

Mode applies equality check predicate on the "mode" field. It's identical to ModeEQ.

func ModeContains

func ModeContains(v string) predicate.ServiceResource

ModeContains applies the Contains predicate on the "mode" field.

func ModeContainsFold

func ModeContainsFold(v string) predicate.ServiceResource

ModeContainsFold applies the ContainsFold predicate on the "mode" field.

func ModeEQ

ModeEQ applies the EQ predicate on the "mode" field.

func ModeEqualFold

func ModeEqualFold(v string) predicate.ServiceResource

ModeEqualFold applies the EqualFold predicate on the "mode" field.

func ModeGT

ModeGT applies the GT predicate on the "mode" field.

func ModeGTE

func ModeGTE(v string) predicate.ServiceResource

ModeGTE applies the GTE predicate on the "mode" field.

func ModeHasPrefix

func ModeHasPrefix(v string) predicate.ServiceResource

ModeHasPrefix applies the HasPrefix predicate on the "mode" field.

func ModeHasSuffix

func ModeHasSuffix(v string) predicate.ServiceResource

ModeHasSuffix applies the HasSuffix predicate on the "mode" field.

func ModeIn

func ModeIn(vs ...string) predicate.ServiceResource

ModeIn applies the In predicate on the "mode" field.

func ModeLT

ModeLT applies the LT predicate on the "mode" field.

func ModeLTE

func ModeLTE(v string) predicate.ServiceResource

ModeLTE applies the LTE predicate on the "mode" field.

func ModeNEQ

func ModeNEQ(v string) predicate.ServiceResource

ModeNEQ applies the NEQ predicate on the "mode" field.

func ModeNotIn

func ModeNotIn(vs ...string) predicate.ServiceResource

ModeNotIn applies the NotIn predicate on the "mode" field.

func Name

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

func NameContains

func NameContains(v string) predicate.ServiceResource

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

func NameContainsFold

func NameContainsFold(v string) predicate.ServiceResource

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

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

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.ServiceResource

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.ServiceResource

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

func NameIn

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

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

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

func NameNEQ

func NameNEQ(v string) predicate.ServiceResource

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

func NameNotIn

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

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

func ProjectID(v object.ID) predicate.ServiceResource

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

func ProjectIDContains

func ProjectIDContains(v object.ID) predicate.ServiceResource

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

func ProjectIDContainsFold

func ProjectIDContainsFold(v object.ID) predicate.ServiceResource

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

func ProjectIDEQ

func ProjectIDEQ(v object.ID) predicate.ServiceResource

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

func ProjectIDEqualFold

func ProjectIDEqualFold(v object.ID) predicate.ServiceResource

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

func ProjectIDGT

func ProjectIDGT(v object.ID) predicate.ServiceResource

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

func ProjectIDGTE

func ProjectIDGTE(v object.ID) predicate.ServiceResource

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

func ProjectIDHasPrefix

func ProjectIDHasPrefix(v object.ID) predicate.ServiceResource

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

func ProjectIDHasSuffix

func ProjectIDHasSuffix(v object.ID) predicate.ServiceResource

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

func ProjectIDIn

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

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

func ProjectIDLT

func ProjectIDLT(v object.ID) predicate.ServiceResource

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

func ProjectIDLTE

func ProjectIDLTE(v object.ID) predicate.ServiceResource

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

func ProjectIDNEQ

func ProjectIDNEQ(v object.ID) predicate.ServiceResource

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

func ProjectIDNotIn

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

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

func ServiceID

func ServiceID(v object.ID) predicate.ServiceResource

ServiceID applies equality check predicate on the "service_id" field. It's identical to ServiceIDEQ.

func ServiceIDContains

func ServiceIDContains(v object.ID) predicate.ServiceResource

ServiceIDContains applies the Contains predicate on the "service_id" field.

func ServiceIDContainsFold

func ServiceIDContainsFold(v object.ID) predicate.ServiceResource

ServiceIDContainsFold applies the ContainsFold predicate on the "service_id" field.

func ServiceIDEQ

func ServiceIDEQ(v object.ID) predicate.ServiceResource

ServiceIDEQ applies the EQ predicate on the "service_id" field.

func ServiceIDEqualFold

func ServiceIDEqualFold(v object.ID) predicate.ServiceResource

ServiceIDEqualFold applies the EqualFold predicate on the "service_id" field.

func ServiceIDGT

func ServiceIDGT(v object.ID) predicate.ServiceResource

ServiceIDGT applies the GT predicate on the "service_id" field.

func ServiceIDGTE

func ServiceIDGTE(v object.ID) predicate.ServiceResource

ServiceIDGTE applies the GTE predicate on the "service_id" field.

func ServiceIDHasPrefix

func ServiceIDHasPrefix(v object.ID) predicate.ServiceResource

ServiceIDHasPrefix applies the HasPrefix predicate on the "service_id" field.

func ServiceIDHasSuffix

func ServiceIDHasSuffix(v object.ID) predicate.ServiceResource

ServiceIDHasSuffix applies the HasSuffix predicate on the "service_id" field.

func ServiceIDIn

func ServiceIDIn(vs ...object.ID) predicate.ServiceResource

ServiceIDIn applies the In predicate on the "service_id" field.

func ServiceIDLT

func ServiceIDLT(v object.ID) predicate.ServiceResource

ServiceIDLT applies the LT predicate on the "service_id" field.

func ServiceIDLTE

func ServiceIDLTE(v object.ID) predicate.ServiceResource

ServiceIDLTE applies the LTE predicate on the "service_id" field.

func ServiceIDNEQ

func ServiceIDNEQ(v object.ID) predicate.ServiceResource

ServiceIDNEQ applies the NEQ predicate on the "service_id" field.

func ServiceIDNotIn

func ServiceIDNotIn(vs ...object.ID) predicate.ServiceResource

ServiceIDNotIn applies the NotIn predicate on the "service_id" field.

func Shape

Shape applies equality check predicate on the "shape" field. It's identical to ShapeEQ.

func ShapeContains

func ShapeContains(v string) predicate.ServiceResource

ShapeContains applies the Contains predicate on the "shape" field.

func ShapeContainsFold

func ShapeContainsFold(v string) predicate.ServiceResource

ShapeContainsFold applies the ContainsFold predicate on the "shape" field.

func ShapeEQ

func ShapeEQ(v string) predicate.ServiceResource

ShapeEQ applies the EQ predicate on the "shape" field.

func ShapeEqualFold

func ShapeEqualFold(v string) predicate.ServiceResource

ShapeEqualFold applies the EqualFold predicate on the "shape" field.

func ShapeGT

func ShapeGT(v string) predicate.ServiceResource

ShapeGT applies the GT predicate on the "shape" field.

func ShapeGTE

func ShapeGTE(v string) predicate.ServiceResource

ShapeGTE applies the GTE predicate on the "shape" field.

func ShapeHasPrefix

func ShapeHasPrefix(v string) predicate.ServiceResource

ShapeHasPrefix applies the HasPrefix predicate on the "shape" field.

func ShapeHasSuffix

func ShapeHasSuffix(v string) predicate.ServiceResource

ShapeHasSuffix applies the HasSuffix predicate on the "shape" field.

func ShapeIn

func ShapeIn(vs ...string) predicate.ServiceResource

ShapeIn applies the In predicate on the "shape" field.

func ShapeLT

func ShapeLT(v string) predicate.ServiceResource

ShapeLT applies the LT predicate on the "shape" field.

func ShapeLTE

func ShapeLTE(v string) predicate.ServiceResource

ShapeLTE applies the LTE predicate on the "shape" field.

func ShapeNEQ

func ShapeNEQ(v string) predicate.ServiceResource

ShapeNEQ applies the NEQ predicate on the "shape" field.

func ShapeNotIn

func ShapeNotIn(vs ...string) predicate.ServiceResource

ShapeNotIn applies the NotIn predicate on the "shape" field.

func StatusIsNil

func StatusIsNil() predicate.ServiceResource

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

func StatusNotNil

func StatusNotNil() predicate.ServiceResource

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

func Type

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

func TypeContains

func TypeContains(v string) predicate.ServiceResource

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

func TypeContainsFold

func TypeContainsFold(v string) predicate.ServiceResource

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

func TypeEQ

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

func TypeEqualFold

func TypeEqualFold(v string) predicate.ServiceResource

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

func TypeGT

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

func TypeGTE

func TypeGTE(v string) predicate.ServiceResource

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

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.ServiceResource

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

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.ServiceResource

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

func TypeIn

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

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

func TypeLT

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

func TypeLTE

func TypeLTE(v string) predicate.ServiceResource

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

func TypeNEQ

func TypeNEQ(v string) predicate.ServiceResource

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

func TypeNotIn

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

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

func UpdateTime

func UpdateTime(v time.Time) predicate.ServiceResource

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.ServiceResource

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.ServiceResource

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.ServiceResource

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.ServiceResource

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.ServiceResource

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.ServiceResource

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

func UpdateTimeNotIn

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

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

func ByClassField

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

ByClassField orders the results by class field.

func ByClassID

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

ByClassID orders the results by the class_id 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 ByCompositionField

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

ByCompositionField orders the results by composition field.

func ByCompositionID

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

ByCompositionID orders the results by the composition_id field.

func ByConnectorField

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

ByConnectorField orders the results by connector field.

func ByConnectorID

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

ByConnectorID orders the results by the connector_id 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 ByDeployerType

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

ByDeployerType orders the results by the deployer_type 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 ByInstances

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

ByInstances orders the results by instances terms.

func ByInstancesCount

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

ByInstancesCount orders the results by instances count.

func ByMode

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

ByMode orders the results by the mode 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 ByServiceField

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

ByServiceField orders the results by service field.

func ByServiceID

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

ByServiceID orders the results by the service_id field.

func ByShape

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

ByShape orders the results by the shape 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