container

package
v0.0.0-...-5f03dfb Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: Apache-2.0 Imports: 4 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"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldContainerId holds the string denoting the containerid field in the database.
	FieldContainerId = "container_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldImage holds the string denoting the image field in the database.
	FieldImage = "image"
	// FieldInfo holds the string denoting the info field in the database.
	FieldInfo = "info"
	// FieldClusterId holds the string denoting the clusterid field in the database.
	FieldClusterId = "cluster_id"
	// FieldNodeId holds the string denoting the nodeid field in the database.
	FieldNodeId = "node_id"
	// EdgeProcess holds the string denoting the process edge name in mutations.
	EdgeProcess = "process"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the container in the database.
	Table = "containers"
	// ProcessTable is the table that holds the process relation/edge.
	ProcessTable = "process"
	// ProcessInverseTable is the table name for the Proces entity.
	// It exists in this package in order to avoid circular dependency with the "proces" package.
	ProcessInverseTable = "process"
	// ProcessColumn is the table column denoting the process relation/edge.
	ProcessColumn = "container_process"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "containers"
	// OwnerInverseTable is the table name for the Node entity.
	// It exists in this package in order to avoid circular dependency with the "node" package.
	OwnerInverseTable = "nodes"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "node_containers"
)

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
	// DefaultDeletedAt holds the default value on creation for the "deleted_at" field.
	DefaultDeletedAt func() time.Time
	// UpdateDefaultDeletedAt holds the default value on update for the "deleted_at" field.
	UpdateDefaultDeletedAt func() time.Time
	// ContainerIdValidator is a validator for the "containerId" field. It is called by the builders before save.
	ContainerIdValidator func(string) error
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// ImageValidator is a validator for the "image" field. It is called by the builders before save.
	ImageValidator func(string) error
)

Columns holds all SQL columns for container fields.

View Source
var ForeignKeys = []string{
	"node_containers",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "containers" table and are not defined as standalone fields in the schema.

Functions

func And

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

And groups predicates with the AND operator between them.

func ClusterId

func ClusterId(v uint) predicate.Container

ClusterId applies equality check predicate on the "clusterId" field. It's identical to ClusterIdEQ.

func ClusterIdEQ

func ClusterIdEQ(v uint) predicate.Container

ClusterIdEQ applies the EQ predicate on the "clusterId" field.

func ClusterIdGT

func ClusterIdGT(v uint) predicate.Container

ClusterIdGT applies the GT predicate on the "clusterId" field.

func ClusterIdGTE

func ClusterIdGTE(v uint) predicate.Container

ClusterIdGTE applies the GTE predicate on the "clusterId" field.

func ClusterIdIn

func ClusterIdIn(vs ...uint) predicate.Container

ClusterIdIn applies the In predicate on the "clusterId" field.

func ClusterIdLT

func ClusterIdLT(v uint) predicate.Container

ClusterIdLT applies the LT predicate on the "clusterId" field.

func ClusterIdLTE

func ClusterIdLTE(v uint) predicate.Container

ClusterIdLTE applies the LTE predicate on the "clusterId" field.

func ClusterIdNEQ

func ClusterIdNEQ(v uint) predicate.Container

ClusterIdNEQ applies the NEQ predicate on the "clusterId" field.

func ClusterIdNotIn

func ClusterIdNotIn(vs ...uint) predicate.Container

ClusterIdNotIn applies the NotIn predicate on the "clusterId" field.

func ContainerId

func ContainerId(v string) predicate.Container

ContainerId applies equality check predicate on the "containerId" field. It's identical to ContainerIdEQ.

func ContainerIdContains

func ContainerIdContains(v string) predicate.Container

ContainerIdContains applies the Contains predicate on the "containerId" field.

func ContainerIdContainsFold

func ContainerIdContainsFold(v string) predicate.Container

ContainerIdContainsFold applies the ContainsFold predicate on the "containerId" field.

func ContainerIdEQ

func ContainerIdEQ(v string) predicate.Container

ContainerIdEQ applies the EQ predicate on the "containerId" field.

func ContainerIdEqualFold

func ContainerIdEqualFold(v string) predicate.Container

ContainerIdEqualFold applies the EqualFold predicate on the "containerId" field.

func ContainerIdGT

func ContainerIdGT(v string) predicate.Container

ContainerIdGT applies the GT predicate on the "containerId" field.

func ContainerIdGTE

func ContainerIdGTE(v string) predicate.Container

ContainerIdGTE applies the GTE predicate on the "containerId" field.

func ContainerIdHasPrefix

func ContainerIdHasPrefix(v string) predicate.Container

ContainerIdHasPrefix applies the HasPrefix predicate on the "containerId" field.

func ContainerIdHasSuffix

func ContainerIdHasSuffix(v string) predicate.Container

ContainerIdHasSuffix applies the HasSuffix predicate on the "containerId" field.

func ContainerIdIn

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

ContainerIdIn applies the In predicate on the "containerId" field.

func ContainerIdLT

func ContainerIdLT(v string) predicate.Container

ContainerIdLT applies the LT predicate on the "containerId" field.

func ContainerIdLTE

func ContainerIdLTE(v string) predicate.Container

ContainerIdLTE applies the LTE predicate on the "containerId" field.

func ContainerIdNEQ

func ContainerIdNEQ(v string) predicate.Container

ContainerIdNEQ applies the NEQ predicate on the "containerId" field.

func ContainerIdNotIn

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

ContainerIdNotIn applies the NotIn predicate on the "containerId" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Container

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Container

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Container

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Container

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Container

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Container

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Container

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Container

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Container

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Container

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Container

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Container

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Container

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Container

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Container

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Container

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func HasOwner

func HasOwner() predicate.Container

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

func HasOwnerWith

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

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

func HasProcess

func HasProcess() predicate.Container

HasProcess applies the HasEdge predicate on the "process" edge.

func HasProcessWith

func HasProcessWith(preds ...predicate.Proces) predicate.Container

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

func ID

func ID(id uint) predicate.Container

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint) predicate.Container

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint) predicate.Container

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint) predicate.Container

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint) predicate.Container

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint) predicate.Container

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint) predicate.Container

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint) 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 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 NodeId

func NodeId(v uint) predicate.Container

NodeId applies equality check predicate on the "nodeId" field. It's identical to NodeIdEQ.

func NodeIdEQ

func NodeIdEQ(v uint) predicate.Container

NodeIdEQ applies the EQ predicate on the "nodeId" field.

func NodeIdGT

func NodeIdGT(v uint) predicate.Container

NodeIdGT applies the GT predicate on the "nodeId" field.

func NodeIdGTE

func NodeIdGTE(v uint) predicate.Container

NodeIdGTE applies the GTE predicate on the "nodeId" field.

func NodeIdIn

func NodeIdIn(vs ...uint) predicate.Container

NodeIdIn applies the In predicate on the "nodeId" field.

func NodeIdLT

func NodeIdLT(v uint) predicate.Container

NodeIdLT applies the LT predicate on the "nodeId" field.

func NodeIdLTE

func NodeIdLTE(v uint) predicate.Container

NodeIdLTE applies the LTE predicate on the "nodeId" field.

func NodeIdNEQ

func NodeIdNEQ(v uint) predicate.Container

NodeIdNEQ applies the NEQ predicate on the "nodeId" field.

func NodeIdNotIn

func NodeIdNotIn(vs ...uint) predicate.Container

NodeIdNotIn applies the NotIn predicate on the "nodeId" 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 Type

func Type(v string) predicate.Container

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains

func TypeContains(v string) predicate.Container

TypeContains applies the Contains predicate on the "type" field.

func TypeContainsFold

func TypeContainsFold(v string) predicate.Container

TypeContainsFold applies the ContainsFold predicate on the "type" field.

func TypeEQ

func TypeEQ(v string) predicate.Container

TypeEQ applies the EQ predicate on the "type" field.

func TypeEqualFold

func TypeEqualFold(v string) predicate.Container

TypeEqualFold applies the EqualFold predicate on the "type" field.

func TypeGT

func TypeGT(v string) predicate.Container

TypeGT applies the GT predicate on the "type" field.

func TypeGTE

func TypeGTE(v string) predicate.Container

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix

func TypeHasPrefix(v string) predicate.Container

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix

func TypeHasSuffix(v string) predicate.Container

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn

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

TypeIn applies the In predicate on the "type" field.

func TypeLT

func TypeLT(v string) predicate.Container

TypeLT applies the LT predicate on the "type" field.

func TypeLTE

func TypeLTE(v string) predicate.Container

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v string) predicate.Container

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

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

TypeNotIn applies the NotIn predicate on the "type" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Container

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Container

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Container

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Container

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Container

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Container

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Container

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) 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

This section is empty.

Jump to

Keyboard shortcuts

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