Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Container) predicate.Container
- func CPU(v int64) predicate.Container
- func CPUEQ(v int64) predicate.Container
- func CPUGT(v int64) predicate.Container
- func CPUGTE(v int64) predicate.Container
- func CPUIn(vs ...int64) predicate.Container
- func CPULT(v int64) predicate.Container
- func CPULTE(v int64) predicate.Container
- func CPUNEQ(v int64) predicate.Container
- func CPUNotIn(vs ...int64) predicate.Container
- func Cid(v string) predicate.Container
- func CidContains(v string) predicate.Container
- func CidContainsFold(v string) predicate.Container
- func CidEQ(v string) predicate.Container
- func CidEqualFold(v string) predicate.Container
- func CidGT(v string) predicate.Container
- func CidGTE(v string) predicate.Container
- func CidHasPrefix(v string) predicate.Container
- func CidHasSuffix(v string) predicate.Container
- func CidIn(vs ...string) predicate.Container
- func CidLT(v string) predicate.Container
- func CidLTE(v string) predicate.Container
- func CidNEQ(v string) predicate.Container
- func CidNotIn(vs ...string) predicate.Container
- func CreatedAt(v int64) predicate.Container
- func CreatedAtEQ(v int64) predicate.Container
- func CreatedAtGT(v int64) predicate.Container
- func CreatedAtGTE(v int64) predicate.Container
- func CreatedAtIn(vs ...int64) predicate.Container
- func CreatedAtLT(v int64) predicate.Container
- func CreatedAtLTE(v int64) predicate.Container
- func CreatedAtNEQ(v int64) predicate.Container
- func CreatedAtNotIn(vs ...int64) predicate.Container
- func HasJobs() predicate.Container
- func HasJobsWith(preds ...predicate.Job) predicate.Container
- func HasMounts() predicate.Container
- func HasMountsWith(preds ...predicate.Mount) predicate.Container
- func HasNode() predicate.Container
- func HasNodeWith(preds ...predicate.Node) predicate.Container
- func HasOwner() predicate.Container
- func HasOwnerWith(preds ...predicate.User) predicate.Container
- func HasPorts() predicate.Container
- func HasPortsWith(preds ...predicate.Port) predicate.Container
- func ID(id int) predicate.Container
- func IDEQ(id int) predicate.Container
- func IDGT(id int) predicate.Container
- func IDGTE(id int) predicate.Container
- func IDIn(ids ...int) predicate.Container
- func IDLT(id int) predicate.Container
- func IDLTE(id int) predicate.Container
- func IDNEQ(id int) predicate.Container
- func IDNotIn(ids ...int) predicate.Container
- func Image(v string) predicate.Container
- func ImageContains(v string) predicate.Container
- func ImageContainsFold(v string) predicate.Container
- func ImageEQ(v string) predicate.Container
- func ImageEqualFold(v string) predicate.Container
- func ImageGT(v string) predicate.Container
- func ImageGTE(v string) predicate.Container
- func ImageHasPrefix(v string) predicate.Container
- func ImageHasSuffix(v string) predicate.Container
- func ImageIn(vs ...string) predicate.Container
- func ImageLT(v string) predicate.Container
- func ImageLTE(v string) predicate.Container
- func ImageNEQ(v string) predicate.Container
- func ImageNotIn(vs ...string) predicate.Container
- func Memory(v int64) predicate.Container
- func MemoryEQ(v int64) predicate.Container
- func MemoryGT(v int64) predicate.Container
- func MemoryGTE(v int64) predicate.Container
- func MemoryIn(vs ...int64) predicate.Container
- func MemoryLT(v int64) predicate.Container
- func MemoryLTE(v int64) predicate.Container
- func MemoryNEQ(v int64) predicate.Container
- func MemoryNotIn(vs ...int64) predicate.Container
- func Name(v string) predicate.Container
- func NameContains(v string) predicate.Container
- func NameContainsFold(v string) predicate.Container
- func NameEQ(v string) predicate.Container
- func NameEqualFold(v string) predicate.Container
- func NameGT(v string) predicate.Container
- func NameGTE(v string) predicate.Container
- func NameHasPrefix(v string) predicate.Container
- func NameHasSuffix(v string) predicate.Container
- func NameIn(vs ...string) predicate.Container
- func NameLT(v string) predicate.Container
- func NameLTE(v string) predicate.Container
- func NameNEQ(v string) predicate.Container
- func NameNotIn(vs ...string) predicate.Container
- func Not(p predicate.Container) predicate.Container
- func Or(predicates ...predicate.Container) predicate.Container
- func UpdatedAt(v int64) predicate.Container
- func UpdatedAtEQ(v int64) predicate.Container
- func UpdatedAtGT(v int64) predicate.Container
- func UpdatedAtGTE(v int64) predicate.Container
- func UpdatedAtIn(vs ...int64) predicate.Container
- func UpdatedAtLT(v int64) predicate.Container
- func UpdatedAtLTE(v int64) predicate.Container
- func UpdatedAtNEQ(v int64) predicate.Container
- func UpdatedAtNotIn(vs ...int64) predicate.Container
- func ValidColumn(column string) bool
- type OrderOption
- func ByCPU(opts ...sql.OrderTermOption) OrderOption
- func ByCid(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImage(opts ...sql.OrderTermOption) OrderOption
- func ByJobs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByJobsCount(opts ...sql.OrderTermOption) OrderOption
- func ByMemory(opts ...sql.OrderTermOption) OrderOption
- func ByMounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMountsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNode(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNodeCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOwnerCount(opts ...sql.OrderTermOption) OrderOption
- func ByPorts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPortsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
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 )
var Columns = []string{ FieldID, FieldName, FieldCid, FieldImage, FieldCPU, FieldMemory, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for container fields.
Functions ¶
func CidContains ¶
CidContains applies the Contains predicate on the "cid" field.
func CidContainsFold ¶
CidContainsFold applies the ContainsFold predicate on the "cid" field.
func CidEqualFold ¶
CidEqualFold applies the EqualFold predicate on the "cid" field.
func CidHasPrefix ¶
CidHasPrefix applies the HasPrefix predicate on the "cid" field.
func CidHasSuffix ¶
CidHasSuffix applies the HasSuffix predicate on the "cid" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasJobsWith ¶
HasJobsWith applies the HasEdge predicate on the "jobs" edge with a given conditions (other predicates).
func HasMountsWith ¶
HasMountsWith applies the HasEdge predicate on the "mounts" edge with a given conditions (other predicates).
func HasNodeWith ¶
HasNodeWith applies the HasEdge predicate on the "node" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasPortsWith ¶
HasPortsWith applies the HasEdge predicate on the "ports" edge with a given conditions (other predicates).
func Image ¶
Image applies equality check predicate on the "image" field. It's identical to ImageEQ.
func ImageContains ¶
ImageContains applies the Contains predicate on the "image" field.
func ImageContainsFold ¶
ImageContainsFold applies the ContainsFold predicate on the "image" field.
func ImageEqualFold ¶
ImageEqualFold applies the EqualFold predicate on the "image" field.
func ImageHasPrefix ¶
ImageHasPrefix applies the HasPrefix predicate on the "image" field.
func ImageHasSuffix ¶
ImageHasSuffix applies the HasSuffix predicate on the "image" field.
func ImageNotIn ¶
ImageNotIn applies the NotIn predicate on the "image" field.
func Memory ¶
Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.
func MemoryNotIn ¶
MemoryNotIn applies the NotIn predicate on the "memory" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.