connector

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the connector type in the database.
	Label = "connector"
	// 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"
	// FieldCategory holds the string denoting the category field in the database.
	FieldCategory = "category"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldApplicableEnvironmentType holds the string denoting the applicable_environment_type field in the database.
	FieldApplicableEnvironmentType = "applicable_environment_type"
	// FieldConfigVersion holds the string denoting the config_version field in the database.
	FieldConfigVersion = "config_version"
	// FieldConfigData holds the string denoting the config_data field in the database.
	FieldConfigData = "config_data"
	// FieldEnableFinOps holds the string denoting the enable_fin_ops field in the database.
	FieldEnableFinOps = "enable_fin_ops"
	// FieldFinOpsCustomPricing holds the string denoting the fin_ops_custom_pricing field in the database.
	FieldFinOpsCustomPricing = "fin_ops_custom_pricing"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeEnvironments holds the string denoting the environments edge name in mutations.
	EdgeEnvironments = "environments"
	// EdgeResourceComponents holds the string denoting the resource_components edge name in mutations.
	EdgeResourceComponents = "resource_components"
	// EdgeCostReports holds the string denoting the cost_reports edge name in mutations.
	EdgeCostReports = "cost_reports"
	// Table holds the table name of the connector in the database.
	Table = "connectors"
	// ProjectTable is the table that holds the project relation/edge.
	ProjectTable = "connectors"
	// 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"
	// EnvironmentsTable is the table that holds the environments relation/edge.
	EnvironmentsTable = "environment_connector_relationships"
	// EnvironmentsInverseTable is the table name for the EnvironmentConnectorRelationship entity.
	// It exists in this package in order to avoid circular dependency with the "environmentconnectorrelationship" package.
	EnvironmentsInverseTable = "environment_connector_relationships"
	// EnvironmentsColumn is the table column denoting the environments relation/edge.
	EnvironmentsColumn = "connector_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 = "connector_id"
	// CostReportsTable is the table that holds the cost_reports relation/edge.
	CostReportsTable = "cost_reports"
	// CostReportsInverseTable is the table name for the CostReport entity.
	// It exists in this package in order to avoid circular dependency with the "costreport" package.
	CostReportsInverseTable = "cost_reports"
	// CostReportsColumn is the table column denoting the cost_reports relation/edge.
	CostReportsColumn = "connector_id"
)

Variables

View Source
var (
	Hooks        [2]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
	// CategoryValidator is a validator for the "category" field. It is called by the builders before save.
	CategoryValidator func(string) error
	// TypeValidator is a validator for the "type" field. It is called by the builders before save.
	TypeValidator func(string) error
	// ApplicableEnvironmentTypeValidator is a validator for the "applicable_environment_type" field. It is called by the builders before save.
	ApplicableEnvironmentTypeValidator func(string) error
	// ConfigVersionValidator is a validator for the "config_version" field. It is called by the builders before save.
	ConfigVersionValidator func(string) error
	// DefaultConfigData holds the default value on creation for the "config_data" field.
	DefaultConfigData crypto.Properties
)

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

Functions

func And

func And(predicates ...predicate.Connector) predicate.Connector

And groups predicates with the AND operator between them.

func AnnotationsIsNil

func AnnotationsIsNil() predicate.Connector

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

func AnnotationsNotNil

func AnnotationsNotNil() predicate.Connector

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

func ApplicableEnvironmentType added in v0.4.0

func ApplicableEnvironmentType(v string) predicate.Connector

ApplicableEnvironmentType applies equality check predicate on the "applicable_environment_type" field. It's identical to ApplicableEnvironmentTypeEQ.

func ApplicableEnvironmentTypeContains added in v0.4.0

func ApplicableEnvironmentTypeContains(v string) predicate.Connector

ApplicableEnvironmentTypeContains applies the Contains predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeContainsFold added in v0.4.0

func ApplicableEnvironmentTypeContainsFold(v string) predicate.Connector

ApplicableEnvironmentTypeContainsFold applies the ContainsFold predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeEQ added in v0.4.0

func ApplicableEnvironmentTypeEQ(v string) predicate.Connector

ApplicableEnvironmentTypeEQ applies the EQ predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeEqualFold added in v0.4.0

func ApplicableEnvironmentTypeEqualFold(v string) predicate.Connector

ApplicableEnvironmentTypeEqualFold applies the EqualFold predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeGT added in v0.4.0

func ApplicableEnvironmentTypeGT(v string) predicate.Connector

ApplicableEnvironmentTypeGT applies the GT predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeGTE added in v0.4.0

func ApplicableEnvironmentTypeGTE(v string) predicate.Connector

ApplicableEnvironmentTypeGTE applies the GTE predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeHasPrefix added in v0.4.0

func ApplicableEnvironmentTypeHasPrefix(v string) predicate.Connector

ApplicableEnvironmentTypeHasPrefix applies the HasPrefix predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeHasSuffix added in v0.4.0

func ApplicableEnvironmentTypeHasSuffix(v string) predicate.Connector

ApplicableEnvironmentTypeHasSuffix applies the HasSuffix predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeIn added in v0.4.0

func ApplicableEnvironmentTypeIn(vs ...string) predicate.Connector

ApplicableEnvironmentTypeIn applies the In predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeLT added in v0.4.0

func ApplicableEnvironmentTypeLT(v string) predicate.Connector

ApplicableEnvironmentTypeLT applies the LT predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeLTE added in v0.4.0

func ApplicableEnvironmentTypeLTE(v string) predicate.Connector

ApplicableEnvironmentTypeLTE applies the LTE predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeNEQ added in v0.4.0

func ApplicableEnvironmentTypeNEQ(v string) predicate.Connector

ApplicableEnvironmentTypeNEQ applies the NEQ predicate on the "applicable_environment_type" field.

func ApplicableEnvironmentTypeNotIn added in v0.4.0

func ApplicableEnvironmentTypeNotIn(vs ...string) predicate.Connector

ApplicableEnvironmentTypeNotIn applies the NotIn predicate on the "applicable_environment_type" field.

func Category

func Category(v string) predicate.Connector

Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.

func CategoryContains

func CategoryContains(v string) predicate.Connector

CategoryContains applies the Contains predicate on the "category" field.

func CategoryContainsFold

func CategoryContainsFold(v string) predicate.Connector

CategoryContainsFold applies the ContainsFold predicate on the "category" field.

func CategoryEQ

func CategoryEQ(v string) predicate.Connector

CategoryEQ applies the EQ predicate on the "category" field.

func CategoryEqualFold

func CategoryEqualFold(v string) predicate.Connector

CategoryEqualFold applies the EqualFold predicate on the "category" field.

func CategoryGT

func CategoryGT(v string) predicate.Connector

CategoryGT applies the GT predicate on the "category" field.

func CategoryGTE

func CategoryGTE(v string) predicate.Connector

CategoryGTE applies the GTE predicate on the "category" field.

func CategoryHasPrefix

func CategoryHasPrefix(v string) predicate.Connector

CategoryHasPrefix applies the HasPrefix predicate on the "category" field.

func CategoryHasSuffix

func CategoryHasSuffix(v string) predicate.Connector

CategoryHasSuffix applies the HasSuffix predicate on the "category" field.

func CategoryIn

func CategoryIn(vs ...string) predicate.Connector

CategoryIn applies the In predicate on the "category" field.

func CategoryLT

func CategoryLT(v string) predicate.Connector

CategoryLT applies the LT predicate on the "category" field.

func CategoryLTE

func CategoryLTE(v string) predicate.Connector

CategoryLTE applies the LTE predicate on the "category" field.

func CategoryNEQ

func CategoryNEQ(v string) predicate.Connector

CategoryNEQ applies the NEQ predicate on the "category" field.

func CategoryNotIn

func CategoryNotIn(vs ...string) predicate.Connector

CategoryNotIn applies the NotIn predicate on the "category" field.

func ConfigData

func ConfigData(v crypto.Properties) predicate.Connector

ConfigData applies equality check predicate on the "config_data" field. It's identical to ConfigDataEQ.

func ConfigDataEQ

func ConfigDataEQ(v crypto.Properties) predicate.Connector

ConfigDataEQ applies the EQ predicate on the "config_data" field.

func ConfigDataGT

func ConfigDataGT(v crypto.Properties) predicate.Connector

ConfigDataGT applies the GT predicate on the "config_data" field.

func ConfigDataGTE

func ConfigDataGTE(v crypto.Properties) predicate.Connector

ConfigDataGTE applies the GTE predicate on the "config_data" field.

func ConfigDataIn

func ConfigDataIn(vs ...crypto.Properties) predicate.Connector

ConfigDataIn applies the In predicate on the "config_data" field.

func ConfigDataIsNil

func ConfigDataIsNil() predicate.Connector

ConfigDataIsNil applies the IsNil predicate on the "config_data" field.

func ConfigDataLT

func ConfigDataLT(v crypto.Properties) predicate.Connector

ConfigDataLT applies the LT predicate on the "config_data" field.

func ConfigDataLTE

func ConfigDataLTE(v crypto.Properties) predicate.Connector

ConfigDataLTE applies the LTE predicate on the "config_data" field.

func ConfigDataNEQ

func ConfigDataNEQ(v crypto.Properties) predicate.Connector

ConfigDataNEQ applies the NEQ predicate on the "config_data" field.

func ConfigDataNotIn

func ConfigDataNotIn(vs ...crypto.Properties) predicate.Connector

ConfigDataNotIn applies the NotIn predicate on the "config_data" field.

func ConfigDataNotNil

func ConfigDataNotNil() predicate.Connector

ConfigDataNotNil applies the NotNil predicate on the "config_data" field.

func ConfigVersion

func ConfigVersion(v string) predicate.Connector

ConfigVersion applies equality check predicate on the "config_version" field. It's identical to ConfigVersionEQ.

func ConfigVersionContains

func ConfigVersionContains(v string) predicate.Connector

ConfigVersionContains applies the Contains predicate on the "config_version" field.

func ConfigVersionContainsFold

func ConfigVersionContainsFold(v string) predicate.Connector

ConfigVersionContainsFold applies the ContainsFold predicate on the "config_version" field.

func ConfigVersionEQ

func ConfigVersionEQ(v string) predicate.Connector

ConfigVersionEQ applies the EQ predicate on the "config_version" field.

func ConfigVersionEqualFold

func ConfigVersionEqualFold(v string) predicate.Connector

ConfigVersionEqualFold applies the EqualFold predicate on the "config_version" field.

func ConfigVersionGT

func ConfigVersionGT(v string) predicate.Connector

ConfigVersionGT applies the GT predicate on the "config_version" field.

func ConfigVersionGTE

func ConfigVersionGTE(v string) predicate.Connector

ConfigVersionGTE applies the GTE predicate on the "config_version" field.

func ConfigVersionHasPrefix

func ConfigVersionHasPrefix(v string) predicate.Connector

ConfigVersionHasPrefix applies the HasPrefix predicate on the "config_version" field.

func ConfigVersionHasSuffix

func ConfigVersionHasSuffix(v string) predicate.Connector

ConfigVersionHasSuffix applies the HasSuffix predicate on the "config_version" field.

func ConfigVersionIn

func ConfigVersionIn(vs ...string) predicate.Connector

ConfigVersionIn applies the In predicate on the "config_version" field.

func ConfigVersionLT

func ConfigVersionLT(v string) predicate.Connector

ConfigVersionLT applies the LT predicate on the "config_version" field.

func ConfigVersionLTE

func ConfigVersionLTE(v string) predicate.Connector

ConfigVersionLTE applies the LTE predicate on the "config_version" field.

func ConfigVersionNEQ

func ConfigVersionNEQ(v string) predicate.Connector

ConfigVersionNEQ applies the NEQ predicate on the "config_version" field.

func ConfigVersionNotIn

func ConfigVersionNotIn(vs ...string) predicate.Connector

ConfigVersionNotIn applies the NotIn predicate on the "config_version" field.

func CreateTime

func CreateTime(v time.Time) predicate.Connector

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Connector

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Connector

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Connector

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Connector

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Connector

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Connector

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

func CreateTimeNotIn

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

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

func Description

func Description(v string) predicate.Connector

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

func DescriptionContains

func DescriptionContains(v string) predicate.Connector

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Connector

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Connector

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Connector

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

func DescriptionGT

func DescriptionGT(v string) predicate.Connector

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Connector

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Connector

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Connector

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Connector

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

func DescriptionLT

func DescriptionLT(v string) predicate.Connector

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Connector

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Connector

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Connector

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

func EnableFinOps

func EnableFinOps(v bool) predicate.Connector

EnableFinOps applies equality check predicate on the "enable_fin_ops" field. It's identical to EnableFinOpsEQ.

func EnableFinOpsEQ

func EnableFinOpsEQ(v bool) predicate.Connector

EnableFinOpsEQ applies the EQ predicate on the "enable_fin_ops" field.

func EnableFinOpsNEQ

func EnableFinOpsNEQ(v bool) predicate.Connector

EnableFinOpsNEQ applies the NEQ predicate on the "enable_fin_ops" field.

func FinOpsCustomPricingIsNil

func FinOpsCustomPricingIsNil() predicate.Connector

FinOpsCustomPricingIsNil applies the IsNil predicate on the "fin_ops_custom_pricing" field.

func FinOpsCustomPricingNotNil

func FinOpsCustomPricingNotNil() predicate.Connector

FinOpsCustomPricingNotNil applies the NotNil predicate on the "fin_ops_custom_pricing" field.

func HasCostReports

func HasCostReports() predicate.Connector

HasCostReports applies the HasEdge predicate on the "cost_reports" edge.

func HasCostReportsWith

func HasCostReportsWith(preds ...predicate.CostReport) predicate.Connector

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

func HasEnvironments

func HasEnvironments() predicate.Connector

HasEnvironments applies the HasEdge predicate on the "environments" edge.

func HasEnvironmentsWith

func HasEnvironmentsWith(preds ...predicate.EnvironmentConnectorRelationship) predicate.Connector

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

func HasProject

func HasProject() predicate.Connector

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

func HasProjectWith

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

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

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

func HasResourceComponentsWith added in v0.4.0

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

HasResourceComponentsWith applies the HasEdge predicate on the "resource_components" 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.Connector

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id object.ID) predicate.Connector

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id object.ID) predicate.Connector

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id object.ID) predicate.Connector

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id object.ID) predicate.Connector

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id object.ID) predicate.Connector

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LabelsIsNil

func LabelsIsNil() predicate.Connector

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

func LabelsNotNil

func LabelsNotNil() predicate.Connector

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

func Name

func Name(v string) predicate.Connector

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

func NameContains

func NameContains(v string) predicate.Connector

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

func NameContainsFold

func NameContainsFold(v string) predicate.Connector

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

func NameEQ

func NameEQ(v string) predicate.Connector

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

func NameEqualFold

func NameEqualFold(v string) predicate.Connector

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

func NameGT

func NameGT(v string) predicate.Connector

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

func NameGTE

func NameGTE(v string) predicate.Connector

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Connector

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Connector

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Connector

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

func NameLTE

func NameLTE(v string) predicate.Connector

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

func NameNEQ

func NameNEQ(v string) predicate.Connector

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func ProjectID

func ProjectID(v object.ID) predicate.Connector

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

func ProjectIDContains

func ProjectIDContains(v object.ID) predicate.Connector

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

func ProjectIDContainsFold

func ProjectIDContainsFold(v object.ID) predicate.Connector

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

func ProjectIDEQ

func ProjectIDEQ(v object.ID) predicate.Connector

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

func ProjectIDEqualFold

func ProjectIDEqualFold(v object.ID) predicate.Connector

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

func ProjectIDGT

func ProjectIDGT(v object.ID) predicate.Connector

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

func ProjectIDGTE

func ProjectIDGTE(v object.ID) predicate.Connector

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

func ProjectIDHasPrefix

func ProjectIDHasPrefix(v object.ID) predicate.Connector

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

func ProjectIDHasSuffix

func ProjectIDHasSuffix(v object.ID) predicate.Connector

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

func ProjectIDIn

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

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

func ProjectIDIsNil

func ProjectIDIsNil() predicate.Connector

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

func ProjectIDLT

func ProjectIDLT(v object.ID) predicate.Connector

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

func ProjectIDLTE

func ProjectIDLTE(v object.ID) predicate.Connector

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

func ProjectIDNEQ

func ProjectIDNEQ(v object.ID) predicate.Connector

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

func ProjectIDNotIn

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

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

func ProjectIDNotNil

func ProjectIDNotNil() predicate.Connector

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

func StatusIsNil

func StatusIsNil() predicate.Connector

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

func StatusNotNil

func StatusNotNil() predicate.Connector

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

func Type

func Type(v string) predicate.Connector

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

func TypeContains

func TypeContains(v string) predicate.Connector

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

func TypeContainsFold

func TypeContainsFold(v string) predicate.Connector

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

func TypeEQ

func TypeEQ(v string) predicate.Connector

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

func TypeEqualFold

func TypeEqualFold(v string) predicate.Connector

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

func TypeGT

func TypeGT(v string) predicate.Connector

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

func TypeGTE

func TypeGTE(v string) predicate.Connector

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

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Connector

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

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Connector

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

func TypeIn

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

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

func TypeLT

func TypeLT(v string) predicate.Connector

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

func TypeLTE

func TypeLTE(v string) predicate.Connector

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

func TypeNEQ

func TypeNEQ(v string) predicate.Connector

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

func TypeNotIn

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

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

func UpdateTime

func UpdateTime(v time.Time) predicate.Connector

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Connector

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Connector

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Connector

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Connector

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Connector

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Connector

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

func UpdateTimeNotIn

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

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

func ByApplicableEnvironmentType added in v0.4.0

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

ByApplicableEnvironmentType orders the results by the applicable_environment_type field.

func ByCategory

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

ByCategory orders the results by the category field.

func ByConfigData

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

ByConfigData orders the results by the config_data field.

func ByConfigVersion

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

ByConfigVersion orders the results by the config_version field.

func ByCostReports

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

ByCostReports orders the results by cost_reports terms.

func ByCostReportsCount

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

ByCostReportsCount orders the results by cost_reports 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 ByEnableFinOps

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

ByEnableFinOps orders the results by the enable_fin_ops field.

func ByEnvironments

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

ByEnvironments orders the results by environments terms.

func ByEnvironmentsCount

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

ByEnvironmentsCount orders the results by environments count.

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