container

package
v0.0.0-...-0eef1dd Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the container type in the database.
	Label = "container"
	// 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"
	// FieldCid holds the string denoting the cid field in the database.
	FieldCid = "cid"
	// FieldImage holds the string denoting the image field in the database.
	FieldImage = "image"
	// FieldCPU holds the string denoting the cpu field in the database.
	FieldCPU = "cpu"
	// FieldMemory holds the string denoting the memory field in the database.
	FieldMemory = "memory"
	// 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"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeNode holds the string denoting the node edge name in mutations.
	EdgeNode = "node"
	// EdgeMounts holds the string denoting the mounts edge name in mutations.
	EdgeMounts = "mounts"
	// EdgePorts holds the string denoting the ports edge name in mutations.
	EdgePorts = "ports"
	// EdgeJobs holds the string denoting the jobs edge name in mutations.
	EdgeJobs = "jobs"
	// Table holds the table name of the container in the database.
	Table = "containers"
	// OwnerTable is the table that holds the owner relation/edge. The primary key declared below.
	OwnerTable = "user_containers"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// NodeTable is the table that holds the node relation/edge. The primary key declared below.
	NodeTable = "node_containers"
	// NodeInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	NodeInverseTable = "nodes"
	// MountsTable is the table that holds the mounts relation/edge. The primary key declared below.
	MountsTable = "container_mounts"
	// MountsInverseTable is the table name for the Mount entity.
	// It exists in this package in order to avoid circular dependency with the "mount" package.
	MountsInverseTable = "mounts"
	// PortsTable is the table that holds the ports relation/edge. The primary key declared below.
	PortsTable = "container_ports"
	// PortsInverseTable is the table name for the Port entity.
	// It exists in this package in order to avoid circular dependency with the "port" package.
	PortsInverseTable = "ports"
	// JobsTable is the table that holds the jobs relation/edge. The primary key declared below.
	JobsTable = "container_jobs"
	// JobsInverseTable is the table name for the Job entity.
	// It exists in this package in order to avoid circular dependency with the "job" package.
	JobsInverseTable = "jobs"
)

Variables

View Source
var (
	// OwnerPrimaryKey and OwnerColumn2 are the table columns denoting the
	// primary key for the owner relation (M2M).
	OwnerPrimaryKey = []string{"user_id", "container_id"}
	// NodePrimaryKey and NodeColumn2 are the table columns denoting the
	// primary key for the node relation (M2M).
	NodePrimaryKey = []string{"node_id", "container_id"}
	// MountsPrimaryKey and MountsColumn2 are the table columns denoting the
	// primary key for the mounts relation (M2M).
	MountsPrimaryKey = []string{"container_id", "mount_id"}
	// PortsPrimaryKey and PortsColumn2 are the table columns denoting the
	// primary key for the ports relation (M2M).
	PortsPrimaryKey = []string{"container_id", "port_id"}
	// JobsPrimaryKey and JobsColumn2 are the table columns denoting the
	// primary key for the jobs relation (M2M).
	JobsPrimaryKey = []string{"container_id", "job_id"}
)
View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() int64
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() int64
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() int64
)

Columns holds all SQL columns for container fields.

Functions

func And

func And(predicates ...predicate.Container) predicate.Container

And groups predicates with the AND operator between them.

func CPU

func CPU(v int64) predicate.Container

CPU applies equality check predicate on the "cpu" field. It's identical to CPUEQ.

func CPUEQ

func CPUEQ(v int64) predicate.Container

CPUEQ applies the EQ predicate on the "cpu" field.

func CPUGT

func CPUGT(v int64) predicate.Container

CPUGT applies the GT predicate on the "cpu" field.

func CPUGTE

func CPUGTE(v int64) predicate.Container

CPUGTE applies the GTE predicate on the "cpu" field.

func CPUIn

func CPUIn(vs ...int64) predicate.Container

CPUIn applies the In predicate on the "cpu" field.

func CPULT

func CPULT(v int64) predicate.Container

CPULT applies the LT predicate on the "cpu" field.

func CPULTE

func CPULTE(v int64) predicate.Container

CPULTE applies the LTE predicate on the "cpu" field.

func CPUNEQ

func CPUNEQ(v int64) predicate.Container

CPUNEQ applies the NEQ predicate on the "cpu" field.

func CPUNotIn

func CPUNotIn(vs ...int64) predicate.Container

CPUNotIn applies the NotIn predicate on the "cpu" field.

func Cid

func Cid(v string) predicate.Container

Cid applies equality check predicate on the "cid" field. It's identical to CidEQ.

func CidContains

func CidContains(v string) predicate.Container

CidContains applies the Contains predicate on the "cid" field.

func CidContainsFold

func CidContainsFold(v string) predicate.Container

CidContainsFold applies the ContainsFold predicate on the "cid" field.

func CidEQ

func CidEQ(v string) predicate.Container

CidEQ applies the EQ predicate on the "cid" field.

func CidEqualFold

func CidEqualFold(v string) predicate.Container

CidEqualFold applies the EqualFold predicate on the "cid" field.

func CidGT

func CidGT(v string) predicate.Container

CidGT applies the GT predicate on the "cid" field.

func CidGTE

func CidGTE(v string) predicate.Container

CidGTE applies the GTE predicate on the "cid" field.

func CidHasPrefix

func CidHasPrefix(v string) predicate.Container

CidHasPrefix applies the HasPrefix predicate on the "cid" field.

func CidHasSuffix

func CidHasSuffix(v string) predicate.Container

CidHasSuffix applies the HasSuffix predicate on the "cid" field.

func CidIn

func CidIn(vs ...string) predicate.Container

CidIn applies the In predicate on the "cid" field.

func CidLT

func CidLT(v string) predicate.Container

CidLT applies the LT predicate on the "cid" field.

func CidLTE

func CidLTE(v string) predicate.Container

CidLTE applies the LTE predicate on the "cid" field.

func CidNEQ

func CidNEQ(v string) predicate.Container

CidNEQ applies the NEQ predicate on the "cid" field.

func CidNotIn

func CidNotIn(vs ...string) predicate.Container

CidNotIn applies the NotIn predicate on the "cid" field.

func CreatedAt

func CreatedAt(v int64) predicate.Container

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

func CreatedAtEQ

func CreatedAtEQ(v int64) predicate.Container

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

func CreatedAtGT

func CreatedAtGT(v int64) predicate.Container

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

func CreatedAtGTE

func CreatedAtGTE(v int64) predicate.Container

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

func CreatedAtIn

func CreatedAtIn(vs ...int64) predicate.Container

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

func CreatedAtLT

func CreatedAtLT(v int64) predicate.Container

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

func CreatedAtLTE

func CreatedAtLTE(v int64) predicate.Container

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

func CreatedAtNEQ

func CreatedAtNEQ(v int64) predicate.Container

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

func CreatedAtNotIn

func CreatedAtNotIn(vs ...int64) predicate.Container

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

func HasJobs

func HasJobs() predicate.Container

HasJobs applies the HasEdge predicate on the "jobs" edge.

func HasJobsWith

func HasJobsWith(preds ...predicate.Job) predicate.Container

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

func HasMounts

func HasMounts() predicate.Container

HasMounts applies the HasEdge predicate on the "mounts" edge.

func HasMountsWith

func HasMountsWith(preds ...predicate.Mount) predicate.Container

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

func HasNode

func HasNode() predicate.Container

HasNode applies the HasEdge predicate on the "node" edge.

func HasNodeWith

func HasNodeWith(preds ...predicate.Node) predicate.Container

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

func HasOwner

func HasOwner() predicate.Container

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.Container

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

func HasPorts

func HasPorts() predicate.Container

HasPorts applies the HasEdge predicate on the "ports" edge.

func HasPortsWith

func HasPortsWith(preds ...predicate.Port) predicate.Container

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

func ID

func ID(id int) predicate.Container

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Container

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Container

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Container

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Container

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Container

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Container

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Container

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Container

IDNotIn applies the NotIn predicate on the ID field.

func Image

func Image(v string) predicate.Container

Image applies equality check predicate on the "image" field. It's identical to ImageEQ.

func ImageContains

func ImageContains(v string) predicate.Container

ImageContains applies the Contains predicate on the "image" field.

func ImageContainsFold

func ImageContainsFold(v string) predicate.Container

ImageContainsFold applies the ContainsFold predicate on the "image" field.

func ImageEQ

func ImageEQ(v string) predicate.Container

ImageEQ applies the EQ predicate on the "image" field.

func ImageEqualFold

func ImageEqualFold(v string) predicate.Container

ImageEqualFold applies the EqualFold predicate on the "image" field.

func ImageGT

func ImageGT(v string) predicate.Container

ImageGT applies the GT predicate on the "image" field.

func ImageGTE

func ImageGTE(v string) predicate.Container

ImageGTE applies the GTE predicate on the "image" field.

func ImageHasPrefix

func ImageHasPrefix(v string) predicate.Container

ImageHasPrefix applies the HasPrefix predicate on the "image" field.

func ImageHasSuffix

func ImageHasSuffix(v string) predicate.Container

ImageHasSuffix applies the HasSuffix predicate on the "image" field.

func ImageIn

func ImageIn(vs ...string) predicate.Container

ImageIn applies the In predicate on the "image" field.

func ImageLT

func ImageLT(v string) predicate.Container

ImageLT applies the LT predicate on the "image" field.

func ImageLTE

func ImageLTE(v string) predicate.Container

ImageLTE applies the LTE predicate on the "image" field.

func ImageNEQ

func ImageNEQ(v string) predicate.Container

ImageNEQ applies the NEQ predicate on the "image" field.

func ImageNotIn

func ImageNotIn(vs ...string) predicate.Container

ImageNotIn applies the NotIn predicate on the "image" field.

func Memory

func Memory(v int64) predicate.Container

Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.

func MemoryEQ

func MemoryEQ(v int64) predicate.Container

MemoryEQ applies the EQ predicate on the "memory" field.

func MemoryGT

func MemoryGT(v int64) predicate.Container

MemoryGT applies the GT predicate on the "memory" field.

func MemoryGTE

func MemoryGTE(v int64) predicate.Container

MemoryGTE applies the GTE predicate on the "memory" field.

func MemoryIn

func MemoryIn(vs ...int64) predicate.Container

MemoryIn applies the In predicate on the "memory" field.

func MemoryLT

func MemoryLT(v int64) predicate.Container

MemoryLT applies the LT predicate on the "memory" field.

func MemoryLTE

func MemoryLTE(v int64) predicate.Container

MemoryLTE applies the LTE predicate on the "memory" field.

func MemoryNEQ

func MemoryNEQ(v int64) predicate.Container

MemoryNEQ applies the NEQ predicate on the "memory" field.

func MemoryNotIn

func MemoryNotIn(vs ...int64) predicate.Container

MemoryNotIn applies the NotIn predicate on the "memory" field.

func Name

func Name(v string) predicate.Container

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

func NameContains

func NameContains(v string) predicate.Container

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

func NameContainsFold

func NameContainsFold(v string) predicate.Container

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

func NameEQ

func NameEQ(v string) predicate.Container

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

func NameEqualFold

func NameEqualFold(v string) predicate.Container

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

func NameGT

func NameGT(v string) predicate.Container

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

func NameGTE

func NameGTE(v string) predicate.Container

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Container

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Container

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.Container

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

func NameLTE

func NameLTE(v string) predicate.Container

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

func NameNEQ

func NameNEQ(v string) predicate.Container

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

func NameNotIn

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

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

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v int64) predicate.Container

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

func UpdatedAtEQ

func UpdatedAtEQ(v int64) predicate.Container

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

func UpdatedAtGT

func UpdatedAtGT(v int64) predicate.Container

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

func UpdatedAtGTE

func UpdatedAtGTE(v int64) predicate.Container

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

func UpdatedAtIn

func UpdatedAtIn(vs ...int64) predicate.Container

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

func UpdatedAtLT

func UpdatedAtLT(v int64) predicate.Container

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

func UpdatedAtLTE

func UpdatedAtLTE(v int64) predicate.Container

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v int64) predicate.Container

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...int64) predicate.Container

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

func ByCPU

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

ByCPU orders the results by the cpu field.

func ByCid

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

ByCid orders the results by the cid field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByImage

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

ByImage orders the results by the image field.

func ByJobs

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

ByJobs orders the results by jobs terms.

func ByJobsCount

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

ByJobsCount orders the results by jobs count.

func ByMemory

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

ByMemory orders the results by the memory field.

func ByMounts

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

ByMounts orders the results by mounts terms.

func ByMountsCount

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

ByMountsCount orders the results by mounts count.

func ByName

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

ByName orders the results by the name field.

func ByNode

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

ByNode orders the results by node terms.

func ByNodeCount

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

ByNodeCount orders the results by node count.

func ByOwner

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

ByOwner orders the results by owner terms.

func ByOwnerCount

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

ByOwnerCount orders the results by owner count.

func ByPorts

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

ByPorts orders the results by ports terms.

func ByPortsCount

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

ByPortsCount orders the results by ports 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