Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.HostFile) predicate.HostFile
- func Content(v []byte) predicate.HostFile
- func ContentEQ(v []byte) predicate.HostFile
- func ContentGT(v []byte) predicate.HostFile
- func ContentGTE(v []byte) predicate.HostFile
- func ContentIn(vs ...[]byte) predicate.HostFile
- func ContentIsNil() predicate.HostFile
- func ContentLT(v []byte) predicate.HostFile
- func ContentLTE(v []byte) predicate.HostFile
- func ContentNEQ(v []byte) predicate.HostFile
- func ContentNotIn(vs ...[]byte) predicate.HostFile
- func ContentNotNil() predicate.HostFile
- func CreatedAt(v time.Time) predicate.HostFile
- func CreatedAtEQ(v time.Time) predicate.HostFile
- func CreatedAtGT(v time.Time) predicate.HostFile
- func CreatedAtGTE(v time.Time) predicate.HostFile
- func CreatedAtIn(vs ...time.Time) predicate.HostFile
- func CreatedAtLT(v time.Time) predicate.HostFile
- func CreatedAtLTE(v time.Time) predicate.HostFile
- func CreatedAtNEQ(v time.Time) predicate.HostFile
- func CreatedAtNotIn(vs ...time.Time) predicate.HostFile
- func Group(v string) predicate.HostFile
- func GroupContains(v string) predicate.HostFile
- func GroupContainsFold(v string) predicate.HostFile
- func GroupEQ(v string) predicate.HostFile
- func GroupEqualFold(v string) predicate.HostFile
- func GroupGT(v string) predicate.HostFile
- func GroupGTE(v string) predicate.HostFile
- func GroupHasPrefix(v string) predicate.HostFile
- func GroupHasSuffix(v string) predicate.HostFile
- func GroupIn(vs ...string) predicate.HostFile
- func GroupIsNil() predicate.HostFile
- func GroupLT(v string) predicate.HostFile
- func GroupLTE(v string) predicate.HostFile
- func GroupNEQ(v string) predicate.HostFile
- func GroupNotIn(vs ...string) predicate.HostFile
- func GroupNotNil() predicate.HostFile
- func HasHost() predicate.HostFile
- func HasHostWith(preds ...predicate.Host) predicate.HostFile
- func HasTask() predicate.HostFile
- func HasTaskWith(preds ...predicate.Task) predicate.HostFile
- func Hash(v string) predicate.HostFile
- func HashContains(v string) predicate.HostFile
- func HashContainsFold(v string) predicate.HostFile
- func HashEQ(v string) predicate.HostFile
- func HashEqualFold(v string) predicate.HostFile
- func HashGT(v string) predicate.HostFile
- func HashGTE(v string) predicate.HostFile
- func HashHasPrefix(v string) predicate.HostFile
- func HashHasSuffix(v string) predicate.HostFile
- func HashIn(vs ...string) predicate.HostFile
- func HashIsNil() predicate.HostFile
- func HashLT(v string) predicate.HostFile
- func HashLTE(v string) predicate.HostFile
- func HashNEQ(v string) predicate.HostFile
- func HashNotIn(vs ...string) predicate.HostFile
- func HashNotNil() predicate.HostFile
- func ID(id int) predicate.HostFile
- func IDEQ(id int) predicate.HostFile
- func IDGT(id int) predicate.HostFile
- func IDGTE(id int) predicate.HostFile
- func IDIn(ids ...int) predicate.HostFile
- func IDLT(id int) predicate.HostFile
- func IDLTE(id int) predicate.HostFile
- func IDNEQ(id int) predicate.HostFile
- func IDNotIn(ids ...int) predicate.HostFile
- func LastModifiedAt(v time.Time) predicate.HostFile
- func LastModifiedAtEQ(v time.Time) predicate.HostFile
- func LastModifiedAtGT(v time.Time) predicate.HostFile
- func LastModifiedAtGTE(v time.Time) predicate.HostFile
- func LastModifiedAtIn(vs ...time.Time) predicate.HostFile
- func LastModifiedAtLT(v time.Time) predicate.HostFile
- func LastModifiedAtLTE(v time.Time) predicate.HostFile
- func LastModifiedAtNEQ(v time.Time) predicate.HostFile
- func LastModifiedAtNotIn(vs ...time.Time) predicate.HostFile
- func Not(p predicate.HostFile) predicate.HostFile
- func Or(predicates ...predicate.HostFile) predicate.HostFile
- func Owner(v string) predicate.HostFile
- func OwnerContains(v string) predicate.HostFile
- func OwnerContainsFold(v string) predicate.HostFile
- func OwnerEQ(v string) predicate.HostFile
- func OwnerEqualFold(v string) predicate.HostFile
- func OwnerGT(v string) predicate.HostFile
- func OwnerGTE(v string) predicate.HostFile
- func OwnerHasPrefix(v string) predicate.HostFile
- func OwnerHasSuffix(v string) predicate.HostFile
- func OwnerIn(vs ...string) predicate.HostFile
- func OwnerIsNil() predicate.HostFile
- func OwnerLT(v string) predicate.HostFile
- func OwnerLTE(v string) predicate.HostFile
- func OwnerNEQ(v string) predicate.HostFile
- func OwnerNotIn(vs ...string) predicate.HostFile
- func OwnerNotNil() predicate.HostFile
- func Path(v string) predicate.HostFile
- func PathContains(v string) predicate.HostFile
- func PathContainsFold(v string) predicate.HostFile
- func PathEQ(v string) predicate.HostFile
- func PathEqualFold(v string) predicate.HostFile
- func PathGT(v string) predicate.HostFile
- func PathGTE(v string) predicate.HostFile
- func PathHasPrefix(v string) predicate.HostFile
- func PathHasSuffix(v string) predicate.HostFile
- func PathIn(vs ...string) predicate.HostFile
- func PathLT(v string) predicate.HostFile
- func PathLTE(v string) predicate.HostFile
- func PathNEQ(v string) predicate.HostFile
- func PathNotIn(vs ...string) predicate.HostFile
- func Permissions(v string) predicate.HostFile
- func PermissionsContains(v string) predicate.HostFile
- func PermissionsContainsFold(v string) predicate.HostFile
- func PermissionsEQ(v string) predicate.HostFile
- func PermissionsEqualFold(v string) predicate.HostFile
- func PermissionsGT(v string) predicate.HostFile
- func PermissionsGTE(v string) predicate.HostFile
- func PermissionsHasPrefix(v string) predicate.HostFile
- func PermissionsHasSuffix(v string) predicate.HostFile
- func PermissionsIn(vs ...string) predicate.HostFile
- func PermissionsIsNil() predicate.HostFile
- func PermissionsLT(v string) predicate.HostFile
- func PermissionsLTE(v string) predicate.HostFile
- func PermissionsNEQ(v string) predicate.HostFile
- func PermissionsNotIn(vs ...string) predicate.HostFile
- func PermissionsNotNil() predicate.HostFile
- func Size(v uint64) predicate.HostFile
- func SizeEQ(v uint64) predicate.HostFile
- func SizeGT(v uint64) predicate.HostFile
- func SizeGTE(v uint64) predicate.HostFile
- func SizeIn(vs ...uint64) predicate.HostFile
- func SizeLT(v uint64) predicate.HostFile
- func SizeLTE(v uint64) predicate.HostFile
- func SizeNEQ(v uint64) predicate.HostFile
- func SizeNotIn(vs ...uint64) predicate.HostFile
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGroup(opts ...sql.OrderTermOption) OrderOption
- func ByHash(opts ...sql.OrderTermOption) OrderOption
- func ByHostField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
- func ByOwner(opts ...sql.OrderTermOption) OrderOption
- func ByPath(opts ...sql.OrderTermOption) OrderOption
- func ByPermissions(opts ...sql.OrderTermOption) OrderOption
- func BySize(opts ...sql.OrderTermOption) OrderOption
- func ByTaskField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the hostfile type in the database. Label = "host_file" // 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" // FieldLastModifiedAt holds the string denoting the last_modified_at field in the database. FieldLastModifiedAt = "last_modified_at" // FieldPath holds the string denoting the path field in the database. FieldPath = "path" // FieldOwner holds the string denoting the owner field in the database. FieldOwner = "owner" // FieldGroup holds the string denoting the group field in the database. FieldGroup = "group" // FieldPermissions holds the string denoting the permissions field in the database. FieldPermissions = "permissions" // FieldSize holds the string denoting the size field in the database. FieldSize = "size" // FieldHash holds the string denoting the hash field in the database. FieldHash = "hash" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // EdgeHost holds the string denoting the host edge name in mutations. EdgeHost = "host" // EdgeTask holds the string denoting the task edge name in mutations. EdgeTask = "task" // Table holds the table name of the hostfile in the database. Table = "host_files" // HostTable is the table that holds the host relation/edge. HostTable = "host_files" // HostInverseTable is the table name for the Host entity. // It exists in this package in order to avoid circular dependency with the "host" package. HostInverseTable = "hosts" // HostColumn is the table column denoting the host relation/edge. HostColumn = "host_file_host" // TaskTable is the table that holds the task relation/edge. TaskTable = "host_files" // TaskInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TaskInverseTable = "tasks" // TaskColumn is the table column denoting the task relation/edge. TaskColumn = "task_reported_files" )
Variables ¶
var ( Hooks [1]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultLastModifiedAt holds the default value on creation for the "last_modified_at" field. DefaultLastModifiedAt func() time.Time // UpdateDefaultLastModifiedAt holds the default value on update for the "last_modified_at" field. UpdateDefaultLastModifiedAt func() time.Time // PathValidator is a validator for the "path" field. It is called by the builders before save. PathValidator func(string) error // DefaultSize holds the default value on creation for the "size" field. DefaultSize uint64 // SizeValidator is a validator for the "size" field. It is called by the builders before save. SizeValidator func(uint64) error // HashValidator is a validator for the "hash" field. It is called by the builders before save. HashValidator func(string) error )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "realm.pub/tavern/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldLastModifiedAt, FieldPath, FieldOwner, FieldGroup, FieldPermissions, FieldSize, FieldHash, FieldContent, }
Columns holds all SQL columns for hostfile fields.
var ForeignKeys = []string{
"host_files",
"host_file_host",
"task_reported_files",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "host_files" table and are not defined as standalone fields in the schema.
Functions ¶
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentIsNil ¶
ContentIsNil applies the IsNil predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
func ContentNotNil ¶
ContentNotNil applies the NotNil predicate on the "content" 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 Group ¶
Group applies equality check predicate on the "group" field. It's identical to GroupEQ.
func GroupContains ¶
GroupContains applies the Contains predicate on the "group" field.
func GroupContainsFold ¶
GroupContainsFold applies the ContainsFold predicate on the "group" field.
func GroupEqualFold ¶
GroupEqualFold applies the EqualFold predicate on the "group" field.
func GroupHasPrefix ¶
GroupHasPrefix applies the HasPrefix predicate on the "group" field.
func GroupHasSuffix ¶
GroupHasSuffix applies the HasSuffix predicate on the "group" field.
func GroupIsNil ¶
GroupIsNil applies the IsNil predicate on the "group" field.
func GroupNotIn ¶
GroupNotIn applies the NotIn predicate on the "group" field.
func GroupNotNil ¶
GroupNotNil applies the NotNil predicate on the "group" field.
func HasHostWith ¶
HasHostWith applies the HasEdge predicate on the "host" edge with a given conditions (other predicates).
func HasTaskWith ¶
HasTaskWith applies the HasEdge predicate on the "task" edge with a given conditions (other predicates).
func HashContains ¶
HashContains applies the Contains predicate on the "hash" field.
func HashContainsFold ¶
HashContainsFold applies the ContainsFold predicate on the "hash" field.
func HashEqualFold ¶
HashEqualFold applies the EqualFold predicate on the "hash" field.
func HashHasPrefix ¶
HashHasPrefix applies the HasPrefix predicate on the "hash" field.
func HashHasSuffix ¶
HashHasSuffix applies the HasSuffix predicate on the "hash" field.
func HashNotNil ¶
HashNotNil applies the NotNil predicate on the "hash" field.
func LastModifiedAt ¶
LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.
func LastModifiedAtEQ ¶
LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.
func LastModifiedAtGT ¶
LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.
func LastModifiedAtGTE ¶
LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.
func LastModifiedAtIn ¶
LastModifiedAtIn applies the In predicate on the "last_modified_at" field.
func LastModifiedAtLT ¶
LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.
func LastModifiedAtLTE ¶
LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.
func LastModifiedAtNEQ ¶
LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.
func LastModifiedAtNotIn ¶
LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.
func Owner ¶
Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.
func OwnerContains ¶
OwnerContains applies the Contains predicate on the "owner" field.
func OwnerContainsFold ¶
OwnerContainsFold applies the ContainsFold predicate on the "owner" field.
func OwnerEqualFold ¶
OwnerEqualFold applies the EqualFold predicate on the "owner" field.
func OwnerHasPrefix ¶
OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.
func OwnerHasSuffix ¶
OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.
func OwnerIsNil ¶
OwnerIsNil applies the IsNil predicate on the "owner" field.
func OwnerNotIn ¶
OwnerNotIn applies the NotIn predicate on the "owner" field.
func OwnerNotNil ¶
OwnerNotNil applies the NotNil predicate on the "owner" field.
func PathContains ¶
PathContains applies the Contains predicate on the "path" field.
func PathContainsFold ¶
PathContainsFold applies the ContainsFold predicate on the "path" field.
func PathEqualFold ¶
PathEqualFold applies the EqualFold predicate on the "path" field.
func PathHasPrefix ¶
PathHasPrefix applies the HasPrefix predicate on the "path" field.
func PathHasSuffix ¶
PathHasSuffix applies the HasSuffix predicate on the "path" field.
func Permissions ¶
Permissions applies equality check predicate on the "permissions" field. It's identical to PermissionsEQ.
func PermissionsContains ¶
PermissionsContains applies the Contains predicate on the "permissions" field.
func PermissionsContainsFold ¶
PermissionsContainsFold applies the ContainsFold predicate on the "permissions" field.
func PermissionsEQ ¶
PermissionsEQ applies the EQ predicate on the "permissions" field.
func PermissionsEqualFold ¶
PermissionsEqualFold applies the EqualFold predicate on the "permissions" field.
func PermissionsGT ¶
PermissionsGT applies the GT predicate on the "permissions" field.
func PermissionsGTE ¶
PermissionsGTE applies the GTE predicate on the "permissions" field.
func PermissionsHasPrefix ¶
PermissionsHasPrefix applies the HasPrefix predicate on the "permissions" field.
func PermissionsHasSuffix ¶
PermissionsHasSuffix applies the HasSuffix predicate on the "permissions" field.
func PermissionsIn ¶
PermissionsIn applies the In predicate on the "permissions" field.
func PermissionsIsNil ¶
PermissionsIsNil applies the IsNil predicate on the "permissions" field.
func PermissionsLT ¶
PermissionsLT applies the LT predicate on the "permissions" field.
func PermissionsLTE ¶
PermissionsLTE applies the LTE predicate on the "permissions" field.
func PermissionsNEQ ¶
PermissionsNEQ applies the NEQ predicate on the "permissions" field.
func PermissionsNotIn ¶
PermissionsNotIn applies the NotIn predicate on the "permissions" field.
func PermissionsNotNil ¶
PermissionsNotNil applies the NotNil predicate on the "permissions" 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 HostFile queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGroup ¶
func ByGroup(opts ...sql.OrderTermOption) OrderOption
ByGroup orders the results by the group field.
func ByHash ¶
func ByHash(opts ...sql.OrderTermOption) OrderOption
ByHash orders the results by the hash field.
func ByHostField ¶
func ByHostField(field string, opts ...sql.OrderTermOption) OrderOption
ByHostField orders the results by host field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastModifiedAt ¶
func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
ByLastModifiedAt orders the results by the last_modified_at field.
func ByOwner ¶
func ByOwner(opts ...sql.OrderTermOption) OrderOption
ByOwner orders the results by the owner field.
func ByPath ¶
func ByPath(opts ...sql.OrderTermOption) OrderOption
ByPath orders the results by the path field.
func ByPermissions ¶
func ByPermissions(opts ...sql.OrderTermOption) OrderOption
ByPermissions orders the results by the permissions field.
func BySize ¶
func BySize(opts ...sql.OrderTermOption) OrderOption
BySize orders the results by the size field.
func ByTaskField ¶
func ByTaskField(field string, opts ...sql.OrderTermOption) OrderOption
ByTaskField orders the results by task field.