environment

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 5 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"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldKubernetesName holds the string denoting the kubernetes_name field in the database.
	FieldKubernetesName = "kubernetes_name"
	// 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"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldProjectID holds the string denoting the project_id field in the database.
	FieldProjectID = "project_id"
	// FieldKubernetesSecret holds the string denoting the kubernetes_secret field in the database.
	FieldKubernetesSecret = "kubernetes_secret"
	// EdgeProject holds the string denoting the project edge name in mutations.
	EdgeProject = "project"
	// EdgeServices holds the string denoting the services edge name in mutations.
	EdgeServices = "services"
	// EdgeProjectDefault holds the string denoting the project_default edge name in mutations.
	EdgeProjectDefault = "project_default"
	// EdgeServiceGroups holds the string denoting the service_groups edge name in mutations.
	EdgeServiceGroups = "service_groups"
	// 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"
	// ServicesTable is the table that holds the services relation/edge.
	ServicesTable = "services"
	// ServicesInverseTable is the table name for the Service entity.
	// It exists in this package in order to avoid circular dependency with the "service" package.
	ServicesInverseTable = "services"
	// ServicesColumn is the table column denoting the services relation/edge.
	ServicesColumn = "environment_id"
	// ProjectDefaultTable is the table that holds the project_default relation/edge.
	ProjectDefaultTable = "projects"
	// ProjectDefaultInverseTable is the table name for the Project entity.
	// It exists in this package in order to avoid circular dependency with the "project" package.
	ProjectDefaultInverseTable = "projects"
	// ProjectDefaultColumn is the table column denoting the project_default relation/edge.
	ProjectDefaultColumn = "default_environment_id"
	// ServiceGroupsTable is the table that holds the service_groups relation/edge.
	ServiceGroupsTable = "service_groups"
	// ServiceGroupsInverseTable is the table name for the ServiceGroup entity.
	// It exists in this package in order to avoid circular dependency with the "servicegroup" package.
	ServiceGroupsInverseTable = "service_groups"
	// ServiceGroupsColumn is the table column denoting the service_groups relation/edge.
	ServiceGroupsColumn = "environment_id"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// KubernetesNameValidator is a validator for the "kubernetes_name" field. It is called by the builders before save.
	KubernetesNameValidator func(string) error
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for environment fields.

Functions

func Active

func Active(v bool) predicate.Environment

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.Environment

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.Environment

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Environment

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Environment

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Environment

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Environment

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Environment

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Environment

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Environment

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" 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 HasProject

func HasProject() predicate.Environment

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

func HasProjectDefault

func HasProjectDefault() predicate.Environment

HasProjectDefault applies the HasEdge predicate on the "project_default" edge.

func HasProjectDefaultWith

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

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

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 HasServiceGroups

func HasServiceGroups() predicate.Environment

HasServiceGroups applies the HasEdge predicate on the "service_groups" edge.

func HasServiceGroupsWith

func HasServiceGroupsWith(preds ...predicate.ServiceGroup) predicate.Environment

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

func HasServices

func HasServices() predicate.Environment

HasServices applies the HasEdge predicate on the "services" edge.

func HasServicesWith

func HasServicesWith(preds ...predicate.Service) predicate.Environment

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Environment

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Environment

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Environment

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Environment

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Environment

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Environment

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Environment

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Environment

IDNotIn applies the NotIn predicate on the ID field.

func KubernetesName

func KubernetesName(v string) predicate.Environment

KubernetesName applies equality check predicate on the "kubernetes_name" field. It's identical to KubernetesNameEQ.

func KubernetesNameContains

func KubernetesNameContains(v string) predicate.Environment

KubernetesNameContains applies the Contains predicate on the "kubernetes_name" field.

func KubernetesNameContainsFold

func KubernetesNameContainsFold(v string) predicate.Environment

KubernetesNameContainsFold applies the ContainsFold predicate on the "kubernetes_name" field.

func KubernetesNameEQ

func KubernetesNameEQ(v string) predicate.Environment

KubernetesNameEQ applies the EQ predicate on the "kubernetes_name" field.

func KubernetesNameEqualFold

func KubernetesNameEqualFold(v string) predicate.Environment

KubernetesNameEqualFold applies the EqualFold predicate on the "kubernetes_name" field.

func KubernetesNameGT

func KubernetesNameGT(v string) predicate.Environment

KubernetesNameGT applies the GT predicate on the "kubernetes_name" field.

func KubernetesNameGTE

func KubernetesNameGTE(v string) predicate.Environment

KubernetesNameGTE applies the GTE predicate on the "kubernetes_name" field.

func KubernetesNameHasPrefix

func KubernetesNameHasPrefix(v string) predicate.Environment

KubernetesNameHasPrefix applies the HasPrefix predicate on the "kubernetes_name" field.

func KubernetesNameHasSuffix

func KubernetesNameHasSuffix(v string) predicate.Environment

KubernetesNameHasSuffix applies the HasSuffix predicate on the "kubernetes_name" field.

func KubernetesNameIn

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

KubernetesNameIn applies the In predicate on the "kubernetes_name" field.

func KubernetesNameLT

func KubernetesNameLT(v string) predicate.Environment

KubernetesNameLT applies the LT predicate on the "kubernetes_name" field.

func KubernetesNameLTE

func KubernetesNameLTE(v string) predicate.Environment

KubernetesNameLTE applies the LTE predicate on the "kubernetes_name" field.

func KubernetesNameNEQ

func KubernetesNameNEQ(v string) predicate.Environment

KubernetesNameNEQ applies the NEQ predicate on the "kubernetes_name" field.

func KubernetesNameNotIn

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

KubernetesNameNotIn applies the NotIn predicate on the "kubernetes_name" field.

func KubernetesSecret

func KubernetesSecret(v string) predicate.Environment

KubernetesSecret applies equality check predicate on the "kubernetes_secret" field. It's identical to KubernetesSecretEQ.

func KubernetesSecretContains

func KubernetesSecretContains(v string) predicate.Environment

KubernetesSecretContains applies the Contains predicate on the "kubernetes_secret" field.

func KubernetesSecretContainsFold

func KubernetesSecretContainsFold(v string) predicate.Environment

KubernetesSecretContainsFold applies the ContainsFold predicate on the "kubernetes_secret" field.

func KubernetesSecretEQ

func KubernetesSecretEQ(v string) predicate.Environment

KubernetesSecretEQ applies the EQ predicate on the "kubernetes_secret" field.

func KubernetesSecretEqualFold

func KubernetesSecretEqualFold(v string) predicate.Environment

KubernetesSecretEqualFold applies the EqualFold predicate on the "kubernetes_secret" field.

func KubernetesSecretGT

func KubernetesSecretGT(v string) predicate.Environment

KubernetesSecretGT applies the GT predicate on the "kubernetes_secret" field.

func KubernetesSecretGTE

func KubernetesSecretGTE(v string) predicate.Environment

KubernetesSecretGTE applies the GTE predicate on the "kubernetes_secret" field.

func KubernetesSecretHasPrefix

func KubernetesSecretHasPrefix(v string) predicate.Environment

KubernetesSecretHasPrefix applies the HasPrefix predicate on the "kubernetes_secret" field.

func KubernetesSecretHasSuffix

func KubernetesSecretHasSuffix(v string) predicate.Environment

KubernetesSecretHasSuffix applies the HasSuffix predicate on the "kubernetes_secret" field.

func KubernetesSecretIn

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

KubernetesSecretIn applies the In predicate on the "kubernetes_secret" field.

func KubernetesSecretLT

func KubernetesSecretLT(v string) predicate.Environment

KubernetesSecretLT applies the LT predicate on the "kubernetes_secret" field.

func KubernetesSecretLTE

func KubernetesSecretLTE(v string) predicate.Environment

KubernetesSecretLTE applies the LTE predicate on the "kubernetes_secret" field.

func KubernetesSecretNEQ

func KubernetesSecretNEQ(v string) predicate.Environment

KubernetesSecretNEQ applies the NEQ predicate on the "kubernetes_secret" field.

func KubernetesSecretNotIn

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

KubernetesSecretNotIn applies the NotIn predicate on the "kubernetes_secret" 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 uuid.UUID) predicate.Environment

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

func ProjectIDEQ

func ProjectIDEQ(v uuid.UUID) predicate.Environment

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

func ProjectIDIn

func ProjectIDIn(vs ...uuid.UUID) predicate.Environment

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

func ProjectIDNEQ

func ProjectIDNEQ(v uuid.UUID) predicate.Environment

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

func ProjectIDNotIn

func ProjectIDNotIn(vs ...uuid.UUID) predicate.Environment

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Environment

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Environment

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Environment

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Environment

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Environment

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Environment

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Environment

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Environment queries.

func ByActive

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

ByActive orders the results by the active field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at 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 ByKubernetesName

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

ByKubernetesName orders the results by the kubernetes_name field.

func ByKubernetesSecret

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

ByKubernetesSecret orders the results by the kubernetes_secret field.

func ByName

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

ByName orders the results by the name field.

func ByProjectDefault

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

ByProjectDefault orders the results by project_default terms.

func ByProjectDefaultCount

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

ByProjectDefaultCount orders the results by project_default count.

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 ByServiceGroups

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

ByServiceGroups orders the results by service_groups terms.

func ByServiceGroupsCount

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

ByServiceGroupsCount orders the results by service_groups count.

func ByServices

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

ByServices orders the results by services terms.

func ByServicesCount

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

ByServicesCount orders the results by services count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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