hostfile

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

View Source
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 int
	// SizeValidator is a validator for the "size" field. It is called by the builders before save.
	SizeValidator func(int) 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"

Columns holds all SQL columns for hostfile fields.

View Source
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 And

func And(predicates ...predicate.HostFile) predicate.HostFile

And groups predicates with the AND operator between them.

func Content

func Content(v []byte) predicate.HostFile

Content applies equality check predicate on the "content" field. It's identical to ContentEQ.

func ContentEQ

func ContentEQ(v []byte) predicate.HostFile

ContentEQ applies the EQ predicate on the "content" field.

func ContentGT

func ContentGT(v []byte) predicate.HostFile

ContentGT applies the GT predicate on the "content" field.

func ContentGTE

func ContentGTE(v []byte) predicate.HostFile

ContentGTE applies the GTE predicate on the "content" field.

func ContentIn

func ContentIn(vs ...[]byte) predicate.HostFile

ContentIn applies the In predicate on the "content" field.

func ContentIsNil

func ContentIsNil() predicate.HostFile

ContentIsNil applies the IsNil predicate on the "content" field.

func ContentLT

func ContentLT(v []byte) predicate.HostFile

ContentLT applies the LT predicate on the "content" field.

func ContentLTE

func ContentLTE(v []byte) predicate.HostFile

ContentLTE applies the LTE predicate on the "content" field.

func ContentNEQ

func ContentNEQ(v []byte) predicate.HostFile

ContentNEQ applies the NEQ predicate on the "content" field.

func ContentNotIn

func ContentNotIn(vs ...[]byte) predicate.HostFile

ContentNotIn applies the NotIn predicate on the "content" field.

func ContentNotNil

func ContentNotNil() predicate.HostFile

ContentNotNil applies the NotNil predicate on the "content" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.HostFile

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.HostFile

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.HostFile

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.HostFile

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.HostFile

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.HostFile

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.HostFile

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

func CreatedAtNotIn

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

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

func Group

func Group(v string) predicate.HostFile

Group applies equality check predicate on the "group" field. It's identical to GroupEQ.

func GroupContains

func GroupContains(v string) predicate.HostFile

GroupContains applies the Contains predicate on the "group" field.

func GroupContainsFold

func GroupContainsFold(v string) predicate.HostFile

GroupContainsFold applies the ContainsFold predicate on the "group" field.

func GroupEQ

func GroupEQ(v string) predicate.HostFile

GroupEQ applies the EQ predicate on the "group" field.

func GroupEqualFold

func GroupEqualFold(v string) predicate.HostFile

GroupEqualFold applies the EqualFold predicate on the "group" field.

func GroupGT

func GroupGT(v string) predicate.HostFile

GroupGT applies the GT predicate on the "group" field.

func GroupGTE

func GroupGTE(v string) predicate.HostFile

GroupGTE applies the GTE predicate on the "group" field.

func GroupHasPrefix

func GroupHasPrefix(v string) predicate.HostFile

GroupHasPrefix applies the HasPrefix predicate on the "group" field.

func GroupHasSuffix

func GroupHasSuffix(v string) predicate.HostFile

GroupHasSuffix applies the HasSuffix predicate on the "group" field.

func GroupIn

func GroupIn(vs ...string) predicate.HostFile

GroupIn applies the In predicate on the "group" field.

func GroupIsNil

func GroupIsNil() predicate.HostFile

GroupIsNil applies the IsNil predicate on the "group" field.

func GroupLT

func GroupLT(v string) predicate.HostFile

GroupLT applies the LT predicate on the "group" field.

func GroupLTE

func GroupLTE(v string) predicate.HostFile

GroupLTE applies the LTE predicate on the "group" field.

func GroupNEQ

func GroupNEQ(v string) predicate.HostFile

GroupNEQ applies the NEQ predicate on the "group" field.

func GroupNotIn

func GroupNotIn(vs ...string) predicate.HostFile

GroupNotIn applies the NotIn predicate on the "group" field.

func GroupNotNil

func GroupNotNil() predicate.HostFile

GroupNotNil applies the NotNil predicate on the "group" field.

func HasHost

func HasHost() predicate.HostFile

HasHost applies the HasEdge predicate on the "host" edge.

func HasHostWith

func HasHostWith(preds ...predicate.Host) predicate.HostFile

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

func HasTask

func HasTask() predicate.HostFile

HasTask applies the HasEdge predicate on the "task" edge.

func HasTaskWith

func HasTaskWith(preds ...predicate.Task) predicate.HostFile

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

func Hash

func Hash(v string) predicate.HostFile

Hash applies equality check predicate on the "hash" field. It's identical to HashEQ.

func HashContains

func HashContains(v string) predicate.HostFile

HashContains applies the Contains predicate on the "hash" field.

func HashContainsFold

func HashContainsFold(v string) predicate.HostFile

HashContainsFold applies the ContainsFold predicate on the "hash" field.

func HashEQ

func HashEQ(v string) predicate.HostFile

HashEQ applies the EQ predicate on the "hash" field.

func HashEqualFold

func HashEqualFold(v string) predicate.HostFile

HashEqualFold applies the EqualFold predicate on the "hash" field.

func HashGT

func HashGT(v string) predicate.HostFile

HashGT applies the GT predicate on the "hash" field.

func HashGTE

func HashGTE(v string) predicate.HostFile

HashGTE applies the GTE predicate on the "hash" field.

func HashHasPrefix

func HashHasPrefix(v string) predicate.HostFile

HashHasPrefix applies the HasPrefix predicate on the "hash" field.

func HashHasSuffix

func HashHasSuffix(v string) predicate.HostFile

HashHasSuffix applies the HasSuffix predicate on the "hash" field.

func HashIn

func HashIn(vs ...string) predicate.HostFile

HashIn applies the In predicate on the "hash" field.

func HashIsNil

func HashIsNil() predicate.HostFile

HashIsNil applies the IsNil predicate on the "hash" field.

func HashLT

func HashLT(v string) predicate.HostFile

HashLT applies the LT predicate on the "hash" field.

func HashLTE

func HashLTE(v string) predicate.HostFile

HashLTE applies the LTE predicate on the "hash" field.

func HashNEQ

func HashNEQ(v string) predicate.HostFile

HashNEQ applies the NEQ predicate on the "hash" field.

func HashNotIn

func HashNotIn(vs ...string) predicate.HostFile

HashNotIn applies the NotIn predicate on the "hash" field.

func HashNotNil

func HashNotNil() predicate.HostFile

HashNotNil applies the NotNil predicate on the "hash" field.

func ID

func ID(id int) predicate.HostFile

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.HostFile

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.HostFile

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.HostFile

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.HostFile

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.HostFile

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.HostFile

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastModifiedAt

func LastModifiedAt(v time.Time) predicate.HostFile

LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.

func LastModifiedAtEQ

func LastModifiedAtEQ(v time.Time) predicate.HostFile

LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.

func LastModifiedAtGT

func LastModifiedAtGT(v time.Time) predicate.HostFile

LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.

func LastModifiedAtGTE

func LastModifiedAtGTE(v time.Time) predicate.HostFile

LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.

func LastModifiedAtIn

func LastModifiedAtIn(vs ...time.Time) predicate.HostFile

LastModifiedAtIn applies the In predicate on the "last_modified_at" field.

func LastModifiedAtLT

func LastModifiedAtLT(v time.Time) predicate.HostFile

LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.

func LastModifiedAtLTE

func LastModifiedAtLTE(v time.Time) predicate.HostFile

LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.

func LastModifiedAtNEQ

func LastModifiedAtNEQ(v time.Time) predicate.HostFile

LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.

func LastModifiedAtNotIn

func LastModifiedAtNotIn(vs ...time.Time) predicate.HostFile

LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.HostFile) predicate.HostFile

Or groups predicates with the OR operator between them.

func Owner

func Owner(v string) predicate.HostFile

Owner applies equality check predicate on the "owner" field. It's identical to OwnerEQ.

func OwnerContains

func OwnerContains(v string) predicate.HostFile

OwnerContains applies the Contains predicate on the "owner" field.

func OwnerContainsFold

func OwnerContainsFold(v string) predicate.HostFile

OwnerContainsFold applies the ContainsFold predicate on the "owner" field.

func OwnerEQ

func OwnerEQ(v string) predicate.HostFile

OwnerEQ applies the EQ predicate on the "owner" field.

func OwnerEqualFold

func OwnerEqualFold(v string) predicate.HostFile

OwnerEqualFold applies the EqualFold predicate on the "owner" field.

func OwnerGT

func OwnerGT(v string) predicate.HostFile

OwnerGT applies the GT predicate on the "owner" field.

func OwnerGTE

func OwnerGTE(v string) predicate.HostFile

OwnerGTE applies the GTE predicate on the "owner" field.

func OwnerHasPrefix

func OwnerHasPrefix(v string) predicate.HostFile

OwnerHasPrefix applies the HasPrefix predicate on the "owner" field.

func OwnerHasSuffix

func OwnerHasSuffix(v string) predicate.HostFile

OwnerHasSuffix applies the HasSuffix predicate on the "owner" field.

func OwnerIn

func OwnerIn(vs ...string) predicate.HostFile

OwnerIn applies the In predicate on the "owner" field.

func OwnerIsNil

func OwnerIsNil() predicate.HostFile

OwnerIsNil applies the IsNil predicate on the "owner" field.

func OwnerLT

func OwnerLT(v string) predicate.HostFile

OwnerLT applies the LT predicate on the "owner" field.

func OwnerLTE

func OwnerLTE(v string) predicate.HostFile

OwnerLTE applies the LTE predicate on the "owner" field.

func OwnerNEQ

func OwnerNEQ(v string) predicate.HostFile

OwnerNEQ applies the NEQ predicate on the "owner" field.

func OwnerNotIn

func OwnerNotIn(vs ...string) predicate.HostFile

OwnerNotIn applies the NotIn predicate on the "owner" field.

func OwnerNotNil

func OwnerNotNil() predicate.HostFile

OwnerNotNil applies the NotNil predicate on the "owner" field.

func Path

func Path(v string) predicate.HostFile

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.HostFile

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.HostFile

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.HostFile

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.HostFile

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.HostFile

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.HostFile

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.HostFile

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.HostFile

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.HostFile

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.HostFile

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.HostFile

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.HostFile

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.HostFile

PathNotIn applies the NotIn predicate on the "path" field.

func Permissions

func Permissions(v string) predicate.HostFile

Permissions applies equality check predicate on the "permissions" field. It's identical to PermissionsEQ.

func PermissionsContains

func PermissionsContains(v string) predicate.HostFile

PermissionsContains applies the Contains predicate on the "permissions" field.

func PermissionsContainsFold

func PermissionsContainsFold(v string) predicate.HostFile

PermissionsContainsFold applies the ContainsFold predicate on the "permissions" field.

func PermissionsEQ

func PermissionsEQ(v string) predicate.HostFile

PermissionsEQ applies the EQ predicate on the "permissions" field.

func PermissionsEqualFold

func PermissionsEqualFold(v string) predicate.HostFile

PermissionsEqualFold applies the EqualFold predicate on the "permissions" field.

func PermissionsGT

func PermissionsGT(v string) predicate.HostFile

PermissionsGT applies the GT predicate on the "permissions" field.

func PermissionsGTE

func PermissionsGTE(v string) predicate.HostFile

PermissionsGTE applies the GTE predicate on the "permissions" field.

func PermissionsHasPrefix

func PermissionsHasPrefix(v string) predicate.HostFile

PermissionsHasPrefix applies the HasPrefix predicate on the "permissions" field.

func PermissionsHasSuffix

func PermissionsHasSuffix(v string) predicate.HostFile

PermissionsHasSuffix applies the HasSuffix predicate on the "permissions" field.

func PermissionsIn

func PermissionsIn(vs ...string) predicate.HostFile

PermissionsIn applies the In predicate on the "permissions" field.

func PermissionsIsNil

func PermissionsIsNil() predicate.HostFile

PermissionsIsNil applies the IsNil predicate on the "permissions" field.

func PermissionsLT

func PermissionsLT(v string) predicate.HostFile

PermissionsLT applies the LT predicate on the "permissions" field.

func PermissionsLTE

func PermissionsLTE(v string) predicate.HostFile

PermissionsLTE applies the LTE predicate on the "permissions" field.

func PermissionsNEQ

func PermissionsNEQ(v string) predicate.HostFile

PermissionsNEQ applies the NEQ predicate on the "permissions" field.

func PermissionsNotIn

func PermissionsNotIn(vs ...string) predicate.HostFile

PermissionsNotIn applies the NotIn predicate on the "permissions" field.

func PermissionsNotNil

func PermissionsNotNil() predicate.HostFile

PermissionsNotNil applies the NotNil predicate on the "permissions" field.

func Size

func Size(v int) predicate.HostFile

Size applies equality check predicate on the "size" field. It's identical to SizeEQ.

func SizeEQ

func SizeEQ(v int) predicate.HostFile

SizeEQ applies the EQ predicate on the "size" field.

func SizeGT

func SizeGT(v int) predicate.HostFile

SizeGT applies the GT predicate on the "size" field.

func SizeGTE

func SizeGTE(v int) predicate.HostFile

SizeGTE applies the GTE predicate on the "size" field.

func SizeIn

func SizeIn(vs ...int) predicate.HostFile

SizeIn applies the In predicate on the "size" field.

func SizeLT

func SizeLT(v int) predicate.HostFile

SizeLT applies the LT predicate on the "size" field.

func SizeLTE

func SizeLTE(v int) predicate.HostFile

SizeLTE applies the LTE predicate on the "size" field.

func SizeNEQ

func SizeNEQ(v int) predicate.HostFile

SizeNEQ applies the NEQ predicate on the "size" field.

func SizeNotIn

func SizeNotIn(vs ...int) predicate.HostFile

SizeNotIn applies the NotIn predicate on the "size" 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 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.

Jump to

Keyboard shortcuts

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