mount

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 mount type in the database.
	Label = "mount"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldHost holds the string denoting the host field in the database.
	FieldHost = "host"
	// FieldBind holds the string denoting the bind field in the database.
	FieldBind = "bind"
	// FieldIsDir holds the string denoting the is_dir field in the database.
	FieldIsDir = "is_dir"
	// 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"
	// Table holds the table name of the mount in the database.
	Table = "mounts"
	// OwnerTable is the table that holds the owner relation/edge. The primary key declared below.
	OwnerTable = "container_mounts"
	// OwnerInverseTable is the table name for the Container entity.
	// It exists in this package in order to avoid circular dependency with the "container" package.
	OwnerInverseTable = "containers"
)

Variables

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 mount fields.

View Source
var (
	// OwnerPrimaryKey and OwnerColumn2 are the table columns denoting the
	// primary key for the owner relation (M2M).
	OwnerPrimaryKey = []string{"container_id", "mount_id"}
)

Functions

func And

func And(predicates ...predicate.Mount) predicate.Mount

And groups predicates with the AND operator between them.

func Bind

func Bind(v string) predicate.Mount

Bind applies equality check predicate on the "bind" field. It's identical to BindEQ.

func BindContains

func BindContains(v string) predicate.Mount

BindContains applies the Contains predicate on the "bind" field.

func BindContainsFold

func BindContainsFold(v string) predicate.Mount

BindContainsFold applies the ContainsFold predicate on the "bind" field.

func BindEQ

func BindEQ(v string) predicate.Mount

BindEQ applies the EQ predicate on the "bind" field.

func BindEqualFold

func BindEqualFold(v string) predicate.Mount

BindEqualFold applies the EqualFold predicate on the "bind" field.

func BindGT

func BindGT(v string) predicate.Mount

BindGT applies the GT predicate on the "bind" field.

func BindGTE

func BindGTE(v string) predicate.Mount

BindGTE applies the GTE predicate on the "bind" field.

func BindHasPrefix

func BindHasPrefix(v string) predicate.Mount

BindHasPrefix applies the HasPrefix predicate on the "bind" field.

func BindHasSuffix

func BindHasSuffix(v string) predicate.Mount

BindHasSuffix applies the HasSuffix predicate on the "bind" field.

func BindIn

func BindIn(vs ...string) predicate.Mount

BindIn applies the In predicate on the "bind" field.

func BindLT

func BindLT(v string) predicate.Mount

BindLT applies the LT predicate on the "bind" field.

func BindLTE

func BindLTE(v string) predicate.Mount

BindLTE applies the LTE predicate on the "bind" field.

func BindNEQ

func BindNEQ(v string) predicate.Mount

BindNEQ applies the NEQ predicate on the "bind" field.

func BindNotIn

func BindNotIn(vs ...string) predicate.Mount

BindNotIn applies the NotIn predicate on the "bind" field.

func CreatedAt

func CreatedAt(v int64) predicate.Mount

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

func CreatedAtEQ

func CreatedAtEQ(v int64) predicate.Mount

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

func CreatedAtGT

func CreatedAtGT(v int64) predicate.Mount

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

func CreatedAtGTE

func CreatedAtGTE(v int64) predicate.Mount

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v int64) predicate.Mount

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

func CreatedAtLTE

func CreatedAtLTE(v int64) predicate.Mount

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

func CreatedAtNEQ

func CreatedAtNEQ(v int64) predicate.Mount

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

func CreatedAtNotIn

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

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

func HasOwner

func HasOwner() predicate.Mount

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

func HasOwnerWith

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

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

func Host

func Host(v string) predicate.Mount

Host applies equality check predicate on the "host" field. It's identical to HostEQ.

func HostContains

func HostContains(v string) predicate.Mount

HostContains applies the Contains predicate on the "host" field.

func HostContainsFold

func HostContainsFold(v string) predicate.Mount

HostContainsFold applies the ContainsFold predicate on the "host" field.

func HostEQ

func HostEQ(v string) predicate.Mount

HostEQ applies the EQ predicate on the "host" field.

func HostEqualFold

func HostEqualFold(v string) predicate.Mount

HostEqualFold applies the EqualFold predicate on the "host" field.

func HostGT

func HostGT(v string) predicate.Mount

HostGT applies the GT predicate on the "host" field.

func HostGTE

func HostGTE(v string) predicate.Mount

HostGTE applies the GTE predicate on the "host" field.

func HostHasPrefix

func HostHasPrefix(v string) predicate.Mount

HostHasPrefix applies the HasPrefix predicate on the "host" field.

func HostHasSuffix

func HostHasSuffix(v string) predicate.Mount

HostHasSuffix applies the HasSuffix predicate on the "host" field.

func HostIn

func HostIn(vs ...string) predicate.Mount

HostIn applies the In predicate on the "host" field.

func HostLT

func HostLT(v string) predicate.Mount

HostLT applies the LT predicate on the "host" field.

func HostLTE

func HostLTE(v string) predicate.Mount

HostLTE applies the LTE predicate on the "host" field.

func HostNEQ

func HostNEQ(v string) predicate.Mount

HostNEQ applies the NEQ predicate on the "host" field.

func HostNotIn

func HostNotIn(vs ...string) predicate.Mount

HostNotIn applies the NotIn predicate on the "host" field.

func ID

func ID(id int) predicate.Mount

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Mount

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Mount

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Mount

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Mount

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Mount

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Mount

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsDir

func IsDir(v bool) predicate.Mount

IsDir applies equality check predicate on the "is_dir" field. It's identical to IsDirEQ.

func IsDirEQ

func IsDirEQ(v bool) predicate.Mount

IsDirEQ applies the EQ predicate on the "is_dir" field.

func IsDirNEQ

func IsDirNEQ(v bool) predicate.Mount

IsDirNEQ applies the NEQ predicate on the "is_dir" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Mount) predicate.Mount

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v int64) predicate.Mount

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

func UpdatedAtEQ

func UpdatedAtEQ(v int64) predicate.Mount

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

func UpdatedAtGT

func UpdatedAtGT(v int64) predicate.Mount

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

func UpdatedAtGTE

func UpdatedAtGTE(v int64) predicate.Mount

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v int64) predicate.Mount

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

func UpdatedAtLTE

func UpdatedAtLTE(v int64) predicate.Mount

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v int64) predicate.Mount

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

func UpdatedAtNotIn

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

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

func ByBind

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

ByBind orders the results by the bind field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByHost

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

ByHost orders the results by the host field.

func ByID

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

ByID orders the results by the id field.

func ByIsDir

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

ByIsDir orders the results by the is_dir field.

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