env

package
v0.0.0-...-af2bad0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the env type in the database.
	Label = "env"
	// 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"
	// FieldTeamID holds the string denoting the team_id field in the database.
	FieldTeamID = "team_id"
	// FieldPublic holds the string denoting the public field in the database.
	FieldPublic = "public"
	// FieldBuildCount holds the string denoting the build_count field in the database.
	FieldBuildCount = "build_count"
	// FieldSpawnCount holds the string denoting the spawn_count field in the database.
	FieldSpawnCount = "spawn_count"
	// FieldLastSpawnedAt holds the string denoting the last_spawned_at field in the database.
	FieldLastSpawnedAt = "last_spawned_at"
	// EdgeTeam holds the string denoting the team edge name in mutations.
	EdgeTeam = "team"
	// EdgeEnvAliases holds the string denoting the env_aliases edge name in mutations.
	EdgeEnvAliases = "env_aliases"
	// EdgeBuilds holds the string denoting the builds edge name in mutations.
	EdgeBuilds = "builds"
	// EnvAliasFieldID holds the string denoting the ID field of the EnvAlias.
	EnvAliasFieldID = "alias"
	// Table holds the table name of the env in the database.
	Table = "envs"
	// TeamTable is the table that holds the team relation/edge.
	TeamTable = "envs"
	// TeamInverseTable is the table name for the Team entity.
	// It exists in this package in order to avoid circular dependency with the "team" package.
	TeamInverseTable = "teams"
	// TeamColumn is the table column denoting the team relation/edge.
	TeamColumn = "team_id"
	// EnvAliasesTable is the table that holds the env_aliases relation/edge.
	EnvAliasesTable = "env_aliases"
	// EnvAliasesInverseTable is the table name for the EnvAlias entity.
	// It exists in this package in order to avoid circular dependency with the "envalias" package.
	EnvAliasesInverseTable = "env_aliases"
	// EnvAliasesColumn is the table column denoting the env_aliases relation/edge.
	EnvAliasesColumn = "env_id"
	// BuildsTable is the table that holds the builds relation/edge.
	BuildsTable = "env_builds"
	// BuildsInverseTable is the table name for the EnvBuild entity.
	// It exists in this package in order to avoid circular dependency with the "envbuild" package.
	BuildsInverseTable = "env_builds"
	// BuildsColumn is the table column denoting the builds relation/edge.
	BuildsColumn = "env_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
	// DefaultBuildCount holds the default value on creation for the "build_count" field.
	DefaultBuildCount int32
	// DefaultSpawnCount holds the default value on creation for the "spawn_count" field.
	DefaultSpawnCount int64
)

Columns holds all SQL columns for env fields.

Functions

func And

func And(predicates ...predicate.Env) predicate.Env

And groups predicates with the AND operator between them.

func BuildCount

func BuildCount(v int32) predicate.Env

BuildCount applies equality check predicate on the "build_count" field. It's identical to BuildCountEQ.

func BuildCountEQ

func BuildCountEQ(v int32) predicate.Env

BuildCountEQ applies the EQ predicate on the "build_count" field.

func BuildCountGT

func BuildCountGT(v int32) predicate.Env

BuildCountGT applies the GT predicate on the "build_count" field.

func BuildCountGTE

func BuildCountGTE(v int32) predicate.Env

BuildCountGTE applies the GTE predicate on the "build_count" field.

func BuildCountIn

func BuildCountIn(vs ...int32) predicate.Env

BuildCountIn applies the In predicate on the "build_count" field.

func BuildCountLT

func BuildCountLT(v int32) predicate.Env

BuildCountLT applies the LT predicate on the "build_count" field.

func BuildCountLTE

func BuildCountLTE(v int32) predicate.Env

BuildCountLTE applies the LTE predicate on the "build_count" field.

func BuildCountNEQ

func BuildCountNEQ(v int32) predicate.Env

BuildCountNEQ applies the NEQ predicate on the "build_count" field.

func BuildCountNotIn

func BuildCountNotIn(vs ...int32) predicate.Env

BuildCountNotIn applies the NotIn predicate on the "build_count" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Env

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Env

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Env

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Env

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Env

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Env

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Env

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

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasBuilds

func HasBuilds() predicate.Env

HasBuilds applies the HasEdge predicate on the "builds" edge.

func HasBuildsWith

func HasBuildsWith(preds ...predicate.EnvBuild) predicate.Env

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

func HasEnvAliases

func HasEnvAliases() predicate.Env

HasEnvAliases applies the HasEdge predicate on the "env_aliases" edge.

func HasEnvAliasesWith

func HasEnvAliasesWith(preds ...predicate.EnvAlias) predicate.Env

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

func HasTeam

func HasTeam() predicate.Env

HasTeam applies the HasEdge predicate on the "team" edge.

func HasTeamWith

func HasTeamWith(preds ...predicate.Team) predicate.Env

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

func ID

func ID(id string) predicate.Env

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Env

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Env

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Env

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Env

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Env

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Env

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Env

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Env

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Env

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Env

IDNotIn applies the NotIn predicate on the ID field.

func LastSpawnedAt

func LastSpawnedAt(v time.Time) predicate.Env

LastSpawnedAt applies equality check predicate on the "last_spawned_at" field. It's identical to LastSpawnedAtEQ.

func LastSpawnedAtEQ

func LastSpawnedAtEQ(v time.Time) predicate.Env

LastSpawnedAtEQ applies the EQ predicate on the "last_spawned_at" field.

func LastSpawnedAtGT

func LastSpawnedAtGT(v time.Time) predicate.Env

LastSpawnedAtGT applies the GT predicate on the "last_spawned_at" field.

func LastSpawnedAtGTE

func LastSpawnedAtGTE(v time.Time) predicate.Env

LastSpawnedAtGTE applies the GTE predicate on the "last_spawned_at" field.

func LastSpawnedAtIn

func LastSpawnedAtIn(vs ...time.Time) predicate.Env

LastSpawnedAtIn applies the In predicate on the "last_spawned_at" field.

func LastSpawnedAtIsNil

func LastSpawnedAtIsNil() predicate.Env

LastSpawnedAtIsNil applies the IsNil predicate on the "last_spawned_at" field.

func LastSpawnedAtLT

func LastSpawnedAtLT(v time.Time) predicate.Env

LastSpawnedAtLT applies the LT predicate on the "last_spawned_at" field.

func LastSpawnedAtLTE

func LastSpawnedAtLTE(v time.Time) predicate.Env

LastSpawnedAtLTE applies the LTE predicate on the "last_spawned_at" field.

func LastSpawnedAtNEQ

func LastSpawnedAtNEQ(v time.Time) predicate.Env

LastSpawnedAtNEQ applies the NEQ predicate on the "last_spawned_at" field.

func LastSpawnedAtNotIn

func LastSpawnedAtNotIn(vs ...time.Time) predicate.Env

LastSpawnedAtNotIn applies the NotIn predicate on the "last_spawned_at" field.

func LastSpawnedAtNotNil

func LastSpawnedAtNotNil() predicate.Env

LastSpawnedAtNotNil applies the NotNil predicate on the "last_spawned_at" field.

func Not

func Not(p predicate.Env) predicate.Env

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Env) predicate.Env

Or groups predicates with the OR operator between them.

func Public

func Public(v bool) predicate.Env

Public applies equality check predicate on the "public" field. It's identical to PublicEQ.

func PublicEQ

func PublicEQ(v bool) predicate.Env

PublicEQ applies the EQ predicate on the "public" field.

func PublicNEQ

func PublicNEQ(v bool) predicate.Env

PublicNEQ applies the NEQ predicate on the "public" field.

func SpawnCount

func SpawnCount(v int64) predicate.Env

SpawnCount applies equality check predicate on the "spawn_count" field. It's identical to SpawnCountEQ.

func SpawnCountEQ

func SpawnCountEQ(v int64) predicate.Env

SpawnCountEQ applies the EQ predicate on the "spawn_count" field.

func SpawnCountGT

func SpawnCountGT(v int64) predicate.Env

SpawnCountGT applies the GT predicate on the "spawn_count" field.

func SpawnCountGTE

func SpawnCountGTE(v int64) predicate.Env

SpawnCountGTE applies the GTE predicate on the "spawn_count" field.

func SpawnCountIn

func SpawnCountIn(vs ...int64) predicate.Env

SpawnCountIn applies the In predicate on the "spawn_count" field.

func SpawnCountLT

func SpawnCountLT(v int64) predicate.Env

SpawnCountLT applies the LT predicate on the "spawn_count" field.

func SpawnCountLTE

func SpawnCountLTE(v int64) predicate.Env

SpawnCountLTE applies the LTE predicate on the "spawn_count" field.

func SpawnCountNEQ

func SpawnCountNEQ(v int64) predicate.Env

SpawnCountNEQ applies the NEQ predicate on the "spawn_count" field.

func SpawnCountNotIn

func SpawnCountNotIn(vs ...int64) predicate.Env

SpawnCountNotIn applies the NotIn predicate on the "spawn_count" field.

func TeamID

func TeamID(v uuid.UUID) predicate.Env

TeamID applies equality check predicate on the "team_id" field. It's identical to TeamIDEQ.

func TeamIDEQ

func TeamIDEQ(v uuid.UUID) predicate.Env

TeamIDEQ applies the EQ predicate on the "team_id" field.

func TeamIDIn

func TeamIDIn(vs ...uuid.UUID) predicate.Env

TeamIDIn applies the In predicate on the "team_id" field.

func TeamIDNEQ

func TeamIDNEQ(v uuid.UUID) predicate.Env

TeamIDNEQ applies the NEQ predicate on the "team_id" field.

func TeamIDNotIn

func TeamIDNotIn(vs ...uuid.UUID) predicate.Env

TeamIDNotIn applies the NotIn predicate on the "team_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Env

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Env

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Env

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Env

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Env

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Env

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Env

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

func UpdatedAtNotIn

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

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

func ByBuildCount

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

ByBuildCount orders the results by the build_count field.

func ByBuilds

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

ByBuilds orders the results by builds terms.

func ByBuildsCount

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

ByBuildsCount orders the results by builds count.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEnvAliases

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

ByEnvAliases orders the results by env_aliases terms.

func ByEnvAliasesCount

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

ByEnvAliasesCount orders the results by env_aliases count.

func ByID

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

ByID orders the results by the id field.

func ByLastSpawnedAt

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

ByLastSpawnedAt orders the results by the last_spawned_at field.

func ByPublic

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

ByPublic orders the results by the public field.

func BySpawnCount

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

BySpawnCount orders the results by the spawn_count field.

func ByTeamField

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

ByTeamField orders the results by team field.

func ByTeamID

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

ByTeamID orders the results by the team_id field.

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