envbuild

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the envbuild type in the database.
	Label = "env_build"
	// 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"
	// FieldFinishedAt holds the string denoting the finished_at field in the database.
	FieldFinishedAt = "finished_at"
	// FieldEnvID holds the string denoting the env_id field in the database.
	FieldEnvID = "env_id"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldDockerfile holds the string denoting the dockerfile field in the database.
	FieldDockerfile = "dockerfile"
	// FieldStartCmd holds the string denoting the start_cmd field in the database.
	FieldStartCmd = "start_cmd"
	// FieldVcpu holds the string denoting the vcpu field in the database.
	FieldVcpu = "vcpu"
	// FieldRAMMB holds the string denoting the ram_mb field in the database.
	FieldRAMMB = "ram_mb"
	// FieldFreeDiskSizeMB holds the string denoting the free_disk_size_mb field in the database.
	FieldFreeDiskSizeMB = "free_disk_size_mb"
	// FieldTotalDiskSizeMB holds the string denoting the total_disk_size_mb field in the database.
	FieldTotalDiskSizeMB = "total_disk_size_mb"
	// FieldKernelVersion holds the string denoting the kernel_version field in the database.
	FieldKernelVersion = "kernel_version"
	// FieldFirecrackerVersion holds the string denoting the firecracker_version field in the database.
	FieldFirecrackerVersion = "firecracker_version"
	// EdgeEnv holds the string denoting the env edge name in mutations.
	EdgeEnv = "env"
	// Table holds the table name of the envbuild in the database.
	Table = "env_builds"
	// EnvTable is the table that holds the env relation/edge.
	EnvTable = "env_builds"
	// EnvInverseTable is the table name for the Env entity.
	// It exists in this package in order to avoid circular dependency with the "env" package.
	EnvInverseTable = "envs"
	// EnvColumn is the table column denoting the env relation/edge.
	EnvColumn = "env_id"
)
View Source
const DefaultStatus = StatusWaiting

StatusWaiting is the default value of the Status enum.

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
	// DefaultKernelVersion holds the default value on creation for the "kernel_version" field.
	DefaultKernelVersion string
	// DefaultFirecrackerVersion holds the default value on creation for the "firecracker_version" field.
	DefaultFirecrackerVersion string
)

Columns holds all SQL columns for envbuild fields.

Functions

func And

func And(predicates ...predicate.EnvBuild) predicate.EnvBuild

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.EnvBuild

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.EnvBuild

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.EnvBuild

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.EnvBuild

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.EnvBuild

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.EnvBuild

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.EnvBuild

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

func CreatedAtNotIn

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

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

func Dockerfile

func Dockerfile(v string) predicate.EnvBuild

Dockerfile applies equality check predicate on the "dockerfile" field. It's identical to DockerfileEQ.

func DockerfileContains

func DockerfileContains(v string) predicate.EnvBuild

DockerfileContains applies the Contains predicate on the "dockerfile" field.

func DockerfileContainsFold

func DockerfileContainsFold(v string) predicate.EnvBuild

DockerfileContainsFold applies the ContainsFold predicate on the "dockerfile" field.

func DockerfileEQ

func DockerfileEQ(v string) predicate.EnvBuild

DockerfileEQ applies the EQ predicate on the "dockerfile" field.

func DockerfileEqualFold

func DockerfileEqualFold(v string) predicate.EnvBuild

DockerfileEqualFold applies the EqualFold predicate on the "dockerfile" field.

func DockerfileGT

func DockerfileGT(v string) predicate.EnvBuild

DockerfileGT applies the GT predicate on the "dockerfile" field.

func DockerfileGTE

func DockerfileGTE(v string) predicate.EnvBuild

DockerfileGTE applies the GTE predicate on the "dockerfile" field.

func DockerfileHasPrefix

func DockerfileHasPrefix(v string) predicate.EnvBuild

DockerfileHasPrefix applies the HasPrefix predicate on the "dockerfile" field.

func DockerfileHasSuffix

func DockerfileHasSuffix(v string) predicate.EnvBuild

DockerfileHasSuffix applies the HasSuffix predicate on the "dockerfile" field.

func DockerfileIn

func DockerfileIn(vs ...string) predicate.EnvBuild

DockerfileIn applies the In predicate on the "dockerfile" field.

func DockerfileIsNil

func DockerfileIsNil() predicate.EnvBuild

DockerfileIsNil applies the IsNil predicate on the "dockerfile" field.

func DockerfileLT

func DockerfileLT(v string) predicate.EnvBuild

DockerfileLT applies the LT predicate on the "dockerfile" field.

func DockerfileLTE

func DockerfileLTE(v string) predicate.EnvBuild

DockerfileLTE applies the LTE predicate on the "dockerfile" field.

func DockerfileNEQ

func DockerfileNEQ(v string) predicate.EnvBuild

DockerfileNEQ applies the NEQ predicate on the "dockerfile" field.

func DockerfileNotIn

func DockerfileNotIn(vs ...string) predicate.EnvBuild

DockerfileNotIn applies the NotIn predicate on the "dockerfile" field.

func DockerfileNotNil

func DockerfileNotNil() predicate.EnvBuild

DockerfileNotNil applies the NotNil predicate on the "dockerfile" field.

func EnvID

func EnvID(v string) predicate.EnvBuild

EnvID applies equality check predicate on the "env_id" field. It's identical to EnvIDEQ.

func EnvIDContains

func EnvIDContains(v string) predicate.EnvBuild

EnvIDContains applies the Contains predicate on the "env_id" field.

func EnvIDContainsFold

func EnvIDContainsFold(v string) predicate.EnvBuild

EnvIDContainsFold applies the ContainsFold predicate on the "env_id" field.

func EnvIDEQ

func EnvIDEQ(v string) predicate.EnvBuild

EnvIDEQ applies the EQ predicate on the "env_id" field.

func EnvIDEqualFold

func EnvIDEqualFold(v string) predicate.EnvBuild

EnvIDEqualFold applies the EqualFold predicate on the "env_id" field.

func EnvIDGT

func EnvIDGT(v string) predicate.EnvBuild

EnvIDGT applies the GT predicate on the "env_id" field.

func EnvIDGTE

func EnvIDGTE(v string) predicate.EnvBuild

EnvIDGTE applies the GTE predicate on the "env_id" field.

func EnvIDHasPrefix

func EnvIDHasPrefix(v string) predicate.EnvBuild

EnvIDHasPrefix applies the HasPrefix predicate on the "env_id" field.

func EnvIDHasSuffix

func EnvIDHasSuffix(v string) predicate.EnvBuild

EnvIDHasSuffix applies the HasSuffix predicate on the "env_id" field.

func EnvIDIn

func EnvIDIn(vs ...string) predicate.EnvBuild

EnvIDIn applies the In predicate on the "env_id" field.

func EnvIDIsNil

func EnvIDIsNil() predicate.EnvBuild

EnvIDIsNil applies the IsNil predicate on the "env_id" field.

func EnvIDLT

func EnvIDLT(v string) predicate.EnvBuild

EnvIDLT applies the LT predicate on the "env_id" field.

func EnvIDLTE

func EnvIDLTE(v string) predicate.EnvBuild

EnvIDLTE applies the LTE predicate on the "env_id" field.

func EnvIDNEQ

func EnvIDNEQ(v string) predicate.EnvBuild

EnvIDNEQ applies the NEQ predicate on the "env_id" field.

func EnvIDNotIn

func EnvIDNotIn(vs ...string) predicate.EnvBuild

EnvIDNotIn applies the NotIn predicate on the "env_id" field.

func EnvIDNotNil

func EnvIDNotNil() predicate.EnvBuild

EnvIDNotNil applies the NotNil predicate on the "env_id" field.

func FinishedAt

func FinishedAt(v time.Time) predicate.EnvBuild

FinishedAt applies equality check predicate on the "finished_at" field. It's identical to FinishedAtEQ.

func FinishedAtEQ

func FinishedAtEQ(v time.Time) predicate.EnvBuild

FinishedAtEQ applies the EQ predicate on the "finished_at" field.

func FinishedAtGT

func FinishedAtGT(v time.Time) predicate.EnvBuild

FinishedAtGT applies the GT predicate on the "finished_at" field.

func FinishedAtGTE

func FinishedAtGTE(v time.Time) predicate.EnvBuild

FinishedAtGTE applies the GTE predicate on the "finished_at" field.

func FinishedAtIn

func FinishedAtIn(vs ...time.Time) predicate.EnvBuild

FinishedAtIn applies the In predicate on the "finished_at" field.

func FinishedAtIsNil

func FinishedAtIsNil() predicate.EnvBuild

FinishedAtIsNil applies the IsNil predicate on the "finished_at" field.

func FinishedAtLT

func FinishedAtLT(v time.Time) predicate.EnvBuild

FinishedAtLT applies the LT predicate on the "finished_at" field.

func FinishedAtLTE

func FinishedAtLTE(v time.Time) predicate.EnvBuild

FinishedAtLTE applies the LTE predicate on the "finished_at" field.

func FinishedAtNEQ

func FinishedAtNEQ(v time.Time) predicate.EnvBuild

FinishedAtNEQ applies the NEQ predicate on the "finished_at" field.

func FinishedAtNotIn

func FinishedAtNotIn(vs ...time.Time) predicate.EnvBuild

FinishedAtNotIn applies the NotIn predicate on the "finished_at" field.

func FinishedAtNotNil

func FinishedAtNotNil() predicate.EnvBuild

FinishedAtNotNil applies the NotNil predicate on the "finished_at" field.

func FirecrackerVersion

func FirecrackerVersion(v string) predicate.EnvBuild

FirecrackerVersion applies equality check predicate on the "firecracker_version" field. It's identical to FirecrackerVersionEQ.

func FirecrackerVersionContains

func FirecrackerVersionContains(v string) predicate.EnvBuild

FirecrackerVersionContains applies the Contains predicate on the "firecracker_version" field.

func FirecrackerVersionContainsFold

func FirecrackerVersionContainsFold(v string) predicate.EnvBuild

FirecrackerVersionContainsFold applies the ContainsFold predicate on the "firecracker_version" field.

func FirecrackerVersionEQ

func FirecrackerVersionEQ(v string) predicate.EnvBuild

FirecrackerVersionEQ applies the EQ predicate on the "firecracker_version" field.

func FirecrackerVersionEqualFold

func FirecrackerVersionEqualFold(v string) predicate.EnvBuild

FirecrackerVersionEqualFold applies the EqualFold predicate on the "firecracker_version" field.

func FirecrackerVersionGT

func FirecrackerVersionGT(v string) predicate.EnvBuild

FirecrackerVersionGT applies the GT predicate on the "firecracker_version" field.

func FirecrackerVersionGTE

func FirecrackerVersionGTE(v string) predicate.EnvBuild

FirecrackerVersionGTE applies the GTE predicate on the "firecracker_version" field.

func FirecrackerVersionHasPrefix

func FirecrackerVersionHasPrefix(v string) predicate.EnvBuild

FirecrackerVersionHasPrefix applies the HasPrefix predicate on the "firecracker_version" field.

func FirecrackerVersionHasSuffix

func FirecrackerVersionHasSuffix(v string) predicate.EnvBuild

FirecrackerVersionHasSuffix applies the HasSuffix predicate on the "firecracker_version" field.

func FirecrackerVersionIn

func FirecrackerVersionIn(vs ...string) predicate.EnvBuild

FirecrackerVersionIn applies the In predicate on the "firecracker_version" field.

func FirecrackerVersionLT

func FirecrackerVersionLT(v string) predicate.EnvBuild

FirecrackerVersionLT applies the LT predicate on the "firecracker_version" field.

func FirecrackerVersionLTE

func FirecrackerVersionLTE(v string) predicate.EnvBuild

FirecrackerVersionLTE applies the LTE predicate on the "firecracker_version" field.

func FirecrackerVersionNEQ

func FirecrackerVersionNEQ(v string) predicate.EnvBuild

FirecrackerVersionNEQ applies the NEQ predicate on the "firecracker_version" field.

func FirecrackerVersionNotIn

func FirecrackerVersionNotIn(vs ...string) predicate.EnvBuild

FirecrackerVersionNotIn applies the NotIn predicate on the "firecracker_version" field.

func FreeDiskSizeMB

func FreeDiskSizeMB(v int64) predicate.EnvBuild

FreeDiskSizeMB applies equality check predicate on the "free_disk_size_mb" field. It's identical to FreeDiskSizeMBEQ.

func FreeDiskSizeMBEQ

func FreeDiskSizeMBEQ(v int64) predicate.EnvBuild

FreeDiskSizeMBEQ applies the EQ predicate on the "free_disk_size_mb" field.

func FreeDiskSizeMBGT

func FreeDiskSizeMBGT(v int64) predicate.EnvBuild

FreeDiskSizeMBGT applies the GT predicate on the "free_disk_size_mb" field.

func FreeDiskSizeMBGTE

func FreeDiskSizeMBGTE(v int64) predicate.EnvBuild

FreeDiskSizeMBGTE applies the GTE predicate on the "free_disk_size_mb" field.

func FreeDiskSizeMBIn

func FreeDiskSizeMBIn(vs ...int64) predicate.EnvBuild

FreeDiskSizeMBIn applies the In predicate on the "free_disk_size_mb" field.

func FreeDiskSizeMBLT

func FreeDiskSizeMBLT(v int64) predicate.EnvBuild

FreeDiskSizeMBLT applies the LT predicate on the "free_disk_size_mb" field.

func FreeDiskSizeMBLTE

func FreeDiskSizeMBLTE(v int64) predicate.EnvBuild

FreeDiskSizeMBLTE applies the LTE predicate on the "free_disk_size_mb" field.

func FreeDiskSizeMBNEQ

func FreeDiskSizeMBNEQ(v int64) predicate.EnvBuild

FreeDiskSizeMBNEQ applies the NEQ predicate on the "free_disk_size_mb" field.

func FreeDiskSizeMBNotIn

func FreeDiskSizeMBNotIn(vs ...int64) predicate.EnvBuild

FreeDiskSizeMBNotIn applies the NotIn predicate on the "free_disk_size_mb" field.

func HasEnv

func HasEnv() predicate.EnvBuild

HasEnv applies the HasEdge predicate on the "env" edge.

func HasEnvWith

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

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

func ID

func ID(id uuid.UUID) predicate.EnvBuild

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.EnvBuild

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.EnvBuild

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.EnvBuild

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.EnvBuild

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.EnvBuild

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.EnvBuild

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func KernelVersion

func KernelVersion(v string) predicate.EnvBuild

KernelVersion applies equality check predicate on the "kernel_version" field. It's identical to KernelVersionEQ.

func KernelVersionContains

func KernelVersionContains(v string) predicate.EnvBuild

KernelVersionContains applies the Contains predicate on the "kernel_version" field.

func KernelVersionContainsFold

func KernelVersionContainsFold(v string) predicate.EnvBuild

KernelVersionContainsFold applies the ContainsFold predicate on the "kernel_version" field.

func KernelVersionEQ

func KernelVersionEQ(v string) predicate.EnvBuild

KernelVersionEQ applies the EQ predicate on the "kernel_version" field.

func KernelVersionEqualFold

func KernelVersionEqualFold(v string) predicate.EnvBuild

KernelVersionEqualFold applies the EqualFold predicate on the "kernel_version" field.

func KernelVersionGT

func KernelVersionGT(v string) predicate.EnvBuild

KernelVersionGT applies the GT predicate on the "kernel_version" field.

func KernelVersionGTE

func KernelVersionGTE(v string) predicate.EnvBuild

KernelVersionGTE applies the GTE predicate on the "kernel_version" field.

func KernelVersionHasPrefix

func KernelVersionHasPrefix(v string) predicate.EnvBuild

KernelVersionHasPrefix applies the HasPrefix predicate on the "kernel_version" field.

func KernelVersionHasSuffix

func KernelVersionHasSuffix(v string) predicate.EnvBuild

KernelVersionHasSuffix applies the HasSuffix predicate on the "kernel_version" field.

func KernelVersionIn

func KernelVersionIn(vs ...string) predicate.EnvBuild

KernelVersionIn applies the In predicate on the "kernel_version" field.

func KernelVersionLT

func KernelVersionLT(v string) predicate.EnvBuild

KernelVersionLT applies the LT predicate on the "kernel_version" field.

func KernelVersionLTE

func KernelVersionLTE(v string) predicate.EnvBuild

KernelVersionLTE applies the LTE predicate on the "kernel_version" field.

func KernelVersionNEQ

func KernelVersionNEQ(v string) predicate.EnvBuild

KernelVersionNEQ applies the NEQ predicate on the "kernel_version" field.

func KernelVersionNotIn

func KernelVersionNotIn(vs ...string) predicate.EnvBuild

KernelVersionNotIn applies the NotIn predicate on the "kernel_version" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.EnvBuild) predicate.EnvBuild

Or groups predicates with the OR operator between them.

func RAMMB

func RAMMB(v int64) predicate.EnvBuild

RAMMB applies equality check predicate on the "ram_mb" field. It's identical to RAMMBEQ.

func RAMMBEQ

func RAMMBEQ(v int64) predicate.EnvBuild

RAMMBEQ applies the EQ predicate on the "ram_mb" field.

func RAMMBGT

func RAMMBGT(v int64) predicate.EnvBuild

RAMMBGT applies the GT predicate on the "ram_mb" field.

func RAMMBGTE

func RAMMBGTE(v int64) predicate.EnvBuild

RAMMBGTE applies the GTE predicate on the "ram_mb" field.

func RAMMBIn

func RAMMBIn(vs ...int64) predicate.EnvBuild

RAMMBIn applies the In predicate on the "ram_mb" field.

func RAMMBLT

func RAMMBLT(v int64) predicate.EnvBuild

RAMMBLT applies the LT predicate on the "ram_mb" field.

func RAMMBLTE

func RAMMBLTE(v int64) predicate.EnvBuild

RAMMBLTE applies the LTE predicate on the "ram_mb" field.

func RAMMBNEQ

func RAMMBNEQ(v int64) predicate.EnvBuild

RAMMBNEQ applies the NEQ predicate on the "ram_mb" field.

func RAMMBNotIn

func RAMMBNotIn(vs ...int64) predicate.EnvBuild

RAMMBNotIn applies the NotIn predicate on the "ram_mb" field.

func StartCmd

func StartCmd(v string) predicate.EnvBuild

StartCmd applies equality check predicate on the "start_cmd" field. It's identical to StartCmdEQ.

func StartCmdContains

func StartCmdContains(v string) predicate.EnvBuild

StartCmdContains applies the Contains predicate on the "start_cmd" field.

func StartCmdContainsFold

func StartCmdContainsFold(v string) predicate.EnvBuild

StartCmdContainsFold applies the ContainsFold predicate on the "start_cmd" field.

func StartCmdEQ

func StartCmdEQ(v string) predicate.EnvBuild

StartCmdEQ applies the EQ predicate on the "start_cmd" field.

func StartCmdEqualFold

func StartCmdEqualFold(v string) predicate.EnvBuild

StartCmdEqualFold applies the EqualFold predicate on the "start_cmd" field.

func StartCmdGT

func StartCmdGT(v string) predicate.EnvBuild

StartCmdGT applies the GT predicate on the "start_cmd" field.

func StartCmdGTE

func StartCmdGTE(v string) predicate.EnvBuild

StartCmdGTE applies the GTE predicate on the "start_cmd" field.

func StartCmdHasPrefix

func StartCmdHasPrefix(v string) predicate.EnvBuild

StartCmdHasPrefix applies the HasPrefix predicate on the "start_cmd" field.

func StartCmdHasSuffix

func StartCmdHasSuffix(v string) predicate.EnvBuild

StartCmdHasSuffix applies the HasSuffix predicate on the "start_cmd" field.

func StartCmdIn

func StartCmdIn(vs ...string) predicate.EnvBuild

StartCmdIn applies the In predicate on the "start_cmd" field.

func StartCmdIsNil

func StartCmdIsNil() predicate.EnvBuild

StartCmdIsNil applies the IsNil predicate on the "start_cmd" field.

func StartCmdLT

func StartCmdLT(v string) predicate.EnvBuild

StartCmdLT applies the LT predicate on the "start_cmd" field.

func StartCmdLTE

func StartCmdLTE(v string) predicate.EnvBuild

StartCmdLTE applies the LTE predicate on the "start_cmd" field.

func StartCmdNEQ

func StartCmdNEQ(v string) predicate.EnvBuild

StartCmdNEQ applies the NEQ predicate on the "start_cmd" field.

func StartCmdNotIn

func StartCmdNotIn(vs ...string) predicate.EnvBuild

StartCmdNotIn applies the NotIn predicate on the "start_cmd" field.

func StartCmdNotNil

func StartCmdNotNil() predicate.EnvBuild

StartCmdNotNil applies the NotNil predicate on the "start_cmd" field.

func StatusEQ

func StatusEQ(v Status) predicate.EnvBuild

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.EnvBuild

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.EnvBuild

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.EnvBuild

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TotalDiskSizeMB

func TotalDiskSizeMB(v int64) predicate.EnvBuild

TotalDiskSizeMB applies equality check predicate on the "total_disk_size_mb" field. It's identical to TotalDiskSizeMBEQ.

func TotalDiskSizeMBEQ

func TotalDiskSizeMBEQ(v int64) predicate.EnvBuild

TotalDiskSizeMBEQ applies the EQ predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBGT

func TotalDiskSizeMBGT(v int64) predicate.EnvBuild

TotalDiskSizeMBGT applies the GT predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBGTE

func TotalDiskSizeMBGTE(v int64) predicate.EnvBuild

TotalDiskSizeMBGTE applies the GTE predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBIn

func TotalDiskSizeMBIn(vs ...int64) predicate.EnvBuild

TotalDiskSizeMBIn applies the In predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBIsNil

func TotalDiskSizeMBIsNil() predicate.EnvBuild

TotalDiskSizeMBIsNil applies the IsNil predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBLT

func TotalDiskSizeMBLT(v int64) predicate.EnvBuild

TotalDiskSizeMBLT applies the LT predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBLTE

func TotalDiskSizeMBLTE(v int64) predicate.EnvBuild

TotalDiskSizeMBLTE applies the LTE predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBNEQ

func TotalDiskSizeMBNEQ(v int64) predicate.EnvBuild

TotalDiskSizeMBNEQ applies the NEQ predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBNotIn

func TotalDiskSizeMBNotIn(vs ...int64) predicate.EnvBuild

TotalDiskSizeMBNotIn applies the NotIn predicate on the "total_disk_size_mb" field.

func TotalDiskSizeMBNotNil

func TotalDiskSizeMBNotNil() predicate.EnvBuild

TotalDiskSizeMBNotNil applies the NotNil predicate on the "total_disk_size_mb" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.EnvBuild

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.EnvBuild

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.EnvBuild

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.EnvBuild

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.EnvBuild

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.EnvBuild

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.EnvBuild

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

func UpdatedAtNotIn

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

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

func Vcpu

func Vcpu(v int64) predicate.EnvBuild

Vcpu applies equality check predicate on the "vcpu" field. It's identical to VcpuEQ.

func VcpuEQ

func VcpuEQ(v int64) predicate.EnvBuild

VcpuEQ applies the EQ predicate on the "vcpu" field.

func VcpuGT

func VcpuGT(v int64) predicate.EnvBuild

VcpuGT applies the GT predicate on the "vcpu" field.

func VcpuGTE

func VcpuGTE(v int64) predicate.EnvBuild

VcpuGTE applies the GTE predicate on the "vcpu" field.

func VcpuIn

func VcpuIn(vs ...int64) predicate.EnvBuild

VcpuIn applies the In predicate on the "vcpu" field.

func VcpuLT

func VcpuLT(v int64) predicate.EnvBuild

VcpuLT applies the LT predicate on the "vcpu" field.

func VcpuLTE

func VcpuLTE(v int64) predicate.EnvBuild

VcpuLTE applies the LTE predicate on the "vcpu" field.

func VcpuNEQ

func VcpuNEQ(v int64) predicate.EnvBuild

VcpuNEQ applies the NEQ predicate on the "vcpu" field.

func VcpuNotIn

func VcpuNotIn(vs ...int64) predicate.EnvBuild

VcpuNotIn applies the NotIn predicate on the "vcpu" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the EnvBuild queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDockerfile

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

ByDockerfile orders the results by the dockerfile field.

func ByEnvField

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

ByEnvField orders the results by env field.

func ByEnvID

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

ByEnvID orders the results by the env_id field.

func ByFinishedAt

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

ByFinishedAt orders the results by the finished_at field.

func ByFirecrackerVersion

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

ByFirecrackerVersion orders the results by the firecracker_version field.

func ByFreeDiskSizeMB

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

ByFreeDiskSizeMB orders the results by the free_disk_size_mb field.

func ByID

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

ByID orders the results by the id field.

func ByKernelVersion

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

ByKernelVersion orders the results by the kernel_version field.

func ByRAMMB

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

ByRAMMB orders the results by the ram_mb field.

func ByStartCmd

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

ByStartCmd orders the results by the start_cmd field.

func ByStatus

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

ByStatus orders the results by the status field.

func ByTotalDiskSizeMB

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

ByTotalDiskSizeMB orders the results by the total_disk_size_mb field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByVcpu

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

ByVcpu orders the results by the vcpu field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusWaiting  Status = "waiting"
	StatusBuilding Status = "building"
	StatusFailed   Status = "failed"
	StatusSuccess  Status = "success"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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