Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Mount) predicate.Mount
- func Bind(v string) predicate.Mount
- func BindContains(v string) predicate.Mount
- func BindContainsFold(v string) predicate.Mount
- func BindEQ(v string) predicate.Mount
- func BindEqualFold(v string) predicate.Mount
- func BindGT(v string) predicate.Mount
- func BindGTE(v string) predicate.Mount
- func BindHasPrefix(v string) predicate.Mount
- func BindHasSuffix(v string) predicate.Mount
- func BindIn(vs ...string) predicate.Mount
- func BindLT(v string) predicate.Mount
- func BindLTE(v string) predicate.Mount
- func BindNEQ(v string) predicate.Mount
- func BindNotIn(vs ...string) predicate.Mount
- func CreatedAt(v int64) predicate.Mount
- func CreatedAtEQ(v int64) predicate.Mount
- func CreatedAtGT(v int64) predicate.Mount
- func CreatedAtGTE(v int64) predicate.Mount
- func CreatedAtIn(vs ...int64) predicate.Mount
- func CreatedAtLT(v int64) predicate.Mount
- func CreatedAtLTE(v int64) predicate.Mount
- func CreatedAtNEQ(v int64) predicate.Mount
- func CreatedAtNotIn(vs ...int64) predicate.Mount
- func HasOwner() predicate.Mount
- func HasOwnerWith(preds ...predicate.Container) predicate.Mount
- func Host(v string) predicate.Mount
- func HostContains(v string) predicate.Mount
- func HostContainsFold(v string) predicate.Mount
- func HostEQ(v string) predicate.Mount
- func HostEqualFold(v string) predicate.Mount
- func HostGT(v string) predicate.Mount
- func HostGTE(v string) predicate.Mount
- func HostHasPrefix(v string) predicate.Mount
- func HostHasSuffix(v string) predicate.Mount
- func HostIn(vs ...string) predicate.Mount
- func HostLT(v string) predicate.Mount
- func HostLTE(v string) predicate.Mount
- func HostNEQ(v string) predicate.Mount
- func HostNotIn(vs ...string) predicate.Mount
- func ID(id int) predicate.Mount
- func IDEQ(id int) predicate.Mount
- func IDGT(id int) predicate.Mount
- func IDGTE(id int) predicate.Mount
- func IDIn(ids ...int) predicate.Mount
- func IDLT(id int) predicate.Mount
- func IDLTE(id int) predicate.Mount
- func IDNEQ(id int) predicate.Mount
- func IDNotIn(ids ...int) predicate.Mount
- func IsDir(v bool) predicate.Mount
- func IsDirEQ(v bool) predicate.Mount
- func IsDirNEQ(v bool) predicate.Mount
- func Not(p predicate.Mount) predicate.Mount
- func Or(predicates ...predicate.Mount) predicate.Mount
- func UpdatedAt(v int64) predicate.Mount
- func UpdatedAtEQ(v int64) predicate.Mount
- func UpdatedAtGT(v int64) predicate.Mount
- func UpdatedAtGTE(v int64) predicate.Mount
- func UpdatedAtIn(vs ...int64) predicate.Mount
- func UpdatedAtLT(v int64) predicate.Mount
- func UpdatedAtLTE(v int64) predicate.Mount
- func UpdatedAtNEQ(v int64) predicate.Mount
- func UpdatedAtNotIn(vs ...int64) predicate.Mount
- func ValidColumn(column string) bool
- type OrderOption
- func ByBind(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHost(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDir(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOwnerCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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, FieldHost, FieldBind, FieldIsDir, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for mount fields.
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 BindContains ¶
BindContains applies the Contains predicate on the "bind" field.
func BindContainsFold ¶
BindContainsFold applies the ContainsFold predicate on the "bind" field.
func BindEqualFold ¶
BindEqualFold applies the EqualFold predicate on the "bind" field.
func BindHasPrefix ¶
BindHasPrefix applies the HasPrefix predicate on the "bind" field.
func BindHasSuffix ¶
BindHasSuffix applies the HasSuffix predicate on the "bind" 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 HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HostContains ¶
HostContains applies the Contains predicate on the "host" field.
func HostContainsFold ¶
HostContainsFold applies the ContainsFold predicate on the "host" field.
func HostEqualFold ¶
HostEqualFold applies the EqualFold predicate on the "host" field.
func HostHasPrefix ¶
HostHasPrefix applies the HasPrefix predicate on the "host" field.
func HostHasSuffix ¶
HostHasSuffix applies the HasSuffix predicate on the "host" field.
func IsDir ¶
IsDir applies equality check predicate on the "is_dir" field. It's identical to IsDirEQ.
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 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.