cacheentry

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the cacheentry type in the database.
	Label = "cache_entry"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldKey holds the string denoting the key field in the database.
	FieldKey = "key"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldScope holds the string denoting the scope field in the database.
	FieldScope = "scope"
	// FieldRepoId holds the string denoting the repoid field in the database.
	FieldRepoId = "repoId"
	// FieldUpdatedAt holds the string denoting the updatedat field in the database.
	FieldUpdatedAt = "updatedAt"
	// FieldLocationId holds the string denoting the locationid field in the database.
	FieldLocationId = "locationId"
	// EdgeLocation holds the string denoting the location edge name in mutations.
	EdgeLocation = "location"
	// Table holds the table name of the cacheentry in the database.
	Table = "cache_entries"
	// LocationTable is the table that holds the location relation/edge.
	LocationTable = "cache_entries"
	// LocationInverseTable is the table name for the StorageLocation entity.
	// It exists in this package in order to avoid circular dependency with the "storagelocation" package.
	LocationInverseTable = "storage_locations"
	// LocationColumn is the table column denoting the location relation/edge.
	LocationColumn = "locationId"
)

Variables

View Source
var (
	// KeyValidator is a validator for the "key" field. It is called by the builders before save.
	KeyValidator func(string) error
	// VersionValidator is a validator for the "version" field. It is called by the builders before save.
	VersionValidator func(string) error
	// ScopeValidator is a validator for the "scope" field. It is called by the builders before save.
	ScopeValidator func(string) error
	// RepoIdValidator is a validator for the "repoId" field. It is called by the builders before save.
	RepoIdValidator func(string) error
)

Columns holds all SQL columns for cacheentry fields.

Functions

func And

func And(predicates ...predicate.CacheEntry) predicate.CacheEntry

And groups predicates with the AND operator between them.

func HasLocation

func HasLocation() predicate.CacheEntry

HasLocation applies the HasEdge predicate on the "location" edge.

func HasLocationWith

func HasLocationWith(preds ...predicate.StorageLocation) predicate.CacheEntry

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

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.CacheEntry

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.CacheEntry

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.CacheEntry

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.CacheEntry

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.CacheEntry

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.CacheEntry

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.CacheEntry

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.CacheEntry

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.CacheEntry

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.CacheEntry

IDNotIn applies the NotIn predicate on the ID field.

func Key

Key applies equality check predicate on the "key" field. It's identical to KeyEQ.

func KeyContains

func KeyContains(v string) predicate.CacheEntry

KeyContains applies the Contains predicate on the "key" field.

func KeyContainsFold

func KeyContainsFold(v string) predicate.CacheEntry

KeyContainsFold applies the ContainsFold predicate on the "key" field.

func KeyEQ

func KeyEQ(v string) predicate.CacheEntry

KeyEQ applies the EQ predicate on the "key" field.

func KeyEqualFold

func KeyEqualFold(v string) predicate.CacheEntry

KeyEqualFold applies the EqualFold predicate on the "key" field.

func KeyGT

func KeyGT(v string) predicate.CacheEntry

KeyGT applies the GT predicate on the "key" field.

func KeyGTE

func KeyGTE(v string) predicate.CacheEntry

KeyGTE applies the GTE predicate on the "key" field.

func KeyHasPrefix

func KeyHasPrefix(v string) predicate.CacheEntry

KeyHasPrefix applies the HasPrefix predicate on the "key" field.

func KeyHasSuffix

func KeyHasSuffix(v string) predicate.CacheEntry

KeyHasSuffix applies the HasSuffix predicate on the "key" field.

func KeyIn

func KeyIn(vs ...string) predicate.CacheEntry

KeyIn applies the In predicate on the "key" field.

func KeyLT

func KeyLT(v string) predicate.CacheEntry

KeyLT applies the LT predicate on the "key" field.

func KeyLTE

func KeyLTE(v string) predicate.CacheEntry

KeyLTE applies the LTE predicate on the "key" field.

func KeyNEQ

func KeyNEQ(v string) predicate.CacheEntry

KeyNEQ applies the NEQ predicate on the "key" field.

func KeyNotIn

func KeyNotIn(vs ...string) predicate.CacheEntry

KeyNotIn applies the NotIn predicate on the "key" field.

func LocationId

func LocationId(v string) predicate.CacheEntry

LocationId applies equality check predicate on the "locationId" field. It's identical to LocationIdEQ.

func LocationIdContains

func LocationIdContains(v string) predicate.CacheEntry

LocationIdContains applies the Contains predicate on the "locationId" field.

func LocationIdContainsFold

func LocationIdContainsFold(v string) predicate.CacheEntry

LocationIdContainsFold applies the ContainsFold predicate on the "locationId" field.

func LocationIdEQ

func LocationIdEQ(v string) predicate.CacheEntry

LocationIdEQ applies the EQ predicate on the "locationId" field.

func LocationIdEqualFold

func LocationIdEqualFold(v string) predicate.CacheEntry

LocationIdEqualFold applies the EqualFold predicate on the "locationId" field.

func LocationIdGT

func LocationIdGT(v string) predicate.CacheEntry

LocationIdGT applies the GT predicate on the "locationId" field.

func LocationIdGTE

func LocationIdGTE(v string) predicate.CacheEntry

LocationIdGTE applies the GTE predicate on the "locationId" field.

func LocationIdHasPrefix

func LocationIdHasPrefix(v string) predicate.CacheEntry

LocationIdHasPrefix applies the HasPrefix predicate on the "locationId" field.

func LocationIdHasSuffix

func LocationIdHasSuffix(v string) predicate.CacheEntry

LocationIdHasSuffix applies the HasSuffix predicate on the "locationId" field.

func LocationIdIn

func LocationIdIn(vs ...string) predicate.CacheEntry

LocationIdIn applies the In predicate on the "locationId" field.

func LocationIdLT

func LocationIdLT(v string) predicate.CacheEntry

LocationIdLT applies the LT predicate on the "locationId" field.

func LocationIdLTE

func LocationIdLTE(v string) predicate.CacheEntry

LocationIdLTE applies the LTE predicate on the "locationId" field.

func LocationIdNEQ

func LocationIdNEQ(v string) predicate.CacheEntry

LocationIdNEQ applies the NEQ predicate on the "locationId" field.

func LocationIdNotIn

func LocationIdNotIn(vs ...string) predicate.CacheEntry

LocationIdNotIn applies the NotIn predicate on the "locationId" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.CacheEntry) predicate.CacheEntry

Or groups predicates with the OR operator between them.

func RepoId

func RepoId(v string) predicate.CacheEntry

RepoId applies equality check predicate on the "repoId" field. It's identical to RepoIdEQ.

func RepoIdContains

func RepoIdContains(v string) predicate.CacheEntry

RepoIdContains applies the Contains predicate on the "repoId" field.

func RepoIdContainsFold

func RepoIdContainsFold(v string) predicate.CacheEntry

RepoIdContainsFold applies the ContainsFold predicate on the "repoId" field.

func RepoIdEQ

func RepoIdEQ(v string) predicate.CacheEntry

RepoIdEQ applies the EQ predicate on the "repoId" field.

func RepoIdEqualFold

func RepoIdEqualFold(v string) predicate.CacheEntry

RepoIdEqualFold applies the EqualFold predicate on the "repoId" field.

func RepoIdGT

func RepoIdGT(v string) predicate.CacheEntry

RepoIdGT applies the GT predicate on the "repoId" field.

func RepoIdGTE

func RepoIdGTE(v string) predicate.CacheEntry

RepoIdGTE applies the GTE predicate on the "repoId" field.

func RepoIdHasPrefix

func RepoIdHasPrefix(v string) predicate.CacheEntry

RepoIdHasPrefix applies the HasPrefix predicate on the "repoId" field.

func RepoIdHasSuffix

func RepoIdHasSuffix(v string) predicate.CacheEntry

RepoIdHasSuffix applies the HasSuffix predicate on the "repoId" field.

func RepoIdIn

func RepoIdIn(vs ...string) predicate.CacheEntry

RepoIdIn applies the In predicate on the "repoId" field.

func RepoIdLT

func RepoIdLT(v string) predicate.CacheEntry

RepoIdLT applies the LT predicate on the "repoId" field.

func RepoIdLTE

func RepoIdLTE(v string) predicate.CacheEntry

RepoIdLTE applies the LTE predicate on the "repoId" field.

func RepoIdNEQ

func RepoIdNEQ(v string) predicate.CacheEntry

RepoIdNEQ applies the NEQ predicate on the "repoId" field.

func RepoIdNotIn

func RepoIdNotIn(vs ...string) predicate.CacheEntry

RepoIdNotIn applies the NotIn predicate on the "repoId" field.

func Scope

func Scope(v string) predicate.CacheEntry

Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.

func ScopeContains

func ScopeContains(v string) predicate.CacheEntry

ScopeContains applies the Contains predicate on the "scope" field.

func ScopeContainsFold

func ScopeContainsFold(v string) predicate.CacheEntry

ScopeContainsFold applies the ContainsFold predicate on the "scope" field.

func ScopeEQ

func ScopeEQ(v string) predicate.CacheEntry

ScopeEQ applies the EQ predicate on the "scope" field.

func ScopeEqualFold

func ScopeEqualFold(v string) predicate.CacheEntry

ScopeEqualFold applies the EqualFold predicate on the "scope" field.

func ScopeGT

func ScopeGT(v string) predicate.CacheEntry

ScopeGT applies the GT predicate on the "scope" field.

func ScopeGTE

func ScopeGTE(v string) predicate.CacheEntry

ScopeGTE applies the GTE predicate on the "scope" field.

func ScopeHasPrefix

func ScopeHasPrefix(v string) predicate.CacheEntry

ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.

func ScopeHasSuffix

func ScopeHasSuffix(v string) predicate.CacheEntry

ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.

func ScopeIn

func ScopeIn(vs ...string) predicate.CacheEntry

ScopeIn applies the In predicate on the "scope" field.

func ScopeLT

func ScopeLT(v string) predicate.CacheEntry

ScopeLT applies the LT predicate on the "scope" field.

func ScopeLTE

func ScopeLTE(v string) predicate.CacheEntry

ScopeLTE applies the LTE predicate on the "scope" field.

func ScopeNEQ

func ScopeNEQ(v string) predicate.CacheEntry

ScopeNEQ applies the NEQ predicate on the "scope" field.

func ScopeNotIn

func ScopeNotIn(vs ...string) predicate.CacheEntry

ScopeNotIn applies the NotIn predicate on the "scope" field.

func UpdatedAt

func UpdatedAt(v int64) predicate.CacheEntry

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

func UpdatedAtEQ

func UpdatedAtEQ(v int64) predicate.CacheEntry

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

func UpdatedAtGT

func UpdatedAtGT(v int64) predicate.CacheEntry

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

func UpdatedAtGTE

func UpdatedAtGTE(v int64) predicate.CacheEntry

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v int64) predicate.CacheEntry

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

func UpdatedAtLTE

func UpdatedAtLTE(v int64) predicate.CacheEntry

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v int64) predicate.CacheEntry

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updatedAt" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func Version

func Version(v string) predicate.CacheEntry

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.CacheEntry

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.CacheEntry

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.CacheEntry

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.CacheEntry

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.CacheEntry

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.CacheEntry

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.CacheEntry

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.CacheEntry

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.CacheEntry

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.CacheEntry

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.CacheEntry

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.CacheEntry

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.CacheEntry

VersionNotIn applies the NotIn predicate on the "version" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the CacheEntry queries.

func ByID

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

ByID orders the results by the id field.

func ByKey

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

ByKey orders the results by the key field.

func ByLocationField

func ByLocationField(field string, opts ...sql.OrderTermOption) OrderOption

ByLocationField orders the results by location field.

func ByLocationId

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

ByLocationId orders the results by the locationId field.

func ByRepoId

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

ByRepoId orders the results by the repoId field.

func ByScope

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

ByScope orders the results by the scope field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updatedAt field.

func ByVersion

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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