modelapikey

package
v0.0.0-...-7f647c9 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the modelapikey type in the database.
	Label = "model_api_key"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldModelID holds the string denoting the model_id field in the database.
	FieldModelID = "model_id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldKind holds the string denoting the kind field in the database.
	FieldKind = "kind"
	// FieldVirtualmachineID holds the string denoting the virtualmachine_id field in the database.
	FieldVirtualmachineID = "virtualmachine_id"
	// FieldAPIKey holds the string denoting the api_key field in the database.
	FieldAPIKey = "api_key"
	// FieldSigningSecret holds the string denoting the signing_secret field in the database.
	FieldSigningSecret = "signing_secret"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeModel holds the string denoting the model edge name in mutations.
	EdgeModel = "model"
	// Table holds the table name of the modelapikey in the database.
	Table = "model_api_keys"
	// ModelTable is the table that holds the model relation/edge.
	ModelTable = "model_api_keys"
	// ModelInverseTable is the table name for the Model entity.
	// It exists in this package in order to avoid circular dependency with the "model" package.
	ModelInverseTable = "models"
	// ModelColumn is the table column denoting the model relation/edge.
	ModelColumn = "model_id"
)
View Source
const DefaultKind = KindRuntime

KindRuntime is the default value of the Kind enum.

Variables

View Source
var (
	Hooks        [1]ent.Hook
	Interceptors [1]ent.Interceptor
	// APIKeyValidator is a validator for the "api_key" field. It is called by the builders before save.
	APIKeyValidator func(string) error
	// DefaultSigningSecret holds the default value on creation for the "signing_secret" field.
	DefaultSigningSecret string
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
)

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 _ "github.com/chaitin/MonkeyCode/backend/db/runtime"

Columns holds all SQL columns for modelapikey fields.

Functions

func APIKey

func APIKey(v string) predicate.ModelApiKey

APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.

func APIKeyContains

func APIKeyContains(v string) predicate.ModelApiKey

APIKeyContains applies the Contains predicate on the "api_key" field.

func APIKeyContainsFold

func APIKeyContainsFold(v string) predicate.ModelApiKey

APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.

func APIKeyEQ

func APIKeyEQ(v string) predicate.ModelApiKey

APIKeyEQ applies the EQ predicate on the "api_key" field.

func APIKeyEqualFold

func APIKeyEqualFold(v string) predicate.ModelApiKey

APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.

func APIKeyGT

func APIKeyGT(v string) predicate.ModelApiKey

APIKeyGT applies the GT predicate on the "api_key" field.

func APIKeyGTE

func APIKeyGTE(v string) predicate.ModelApiKey

APIKeyGTE applies the GTE predicate on the "api_key" field.

func APIKeyHasPrefix

func APIKeyHasPrefix(v string) predicate.ModelApiKey

APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.

func APIKeyHasSuffix

func APIKeyHasSuffix(v string) predicate.ModelApiKey

APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.

func APIKeyIn

func APIKeyIn(vs ...string) predicate.ModelApiKey

APIKeyIn applies the In predicate on the "api_key" field.

func APIKeyLT

func APIKeyLT(v string) predicate.ModelApiKey

APIKeyLT applies the LT predicate on the "api_key" field.

func APIKeyLTE

func APIKeyLTE(v string) predicate.ModelApiKey

APIKeyLTE applies the LTE predicate on the "api_key" field.

func APIKeyNEQ

func APIKeyNEQ(v string) predicate.ModelApiKey

APIKeyNEQ applies the NEQ predicate on the "api_key" field.

func APIKeyNotIn

func APIKeyNotIn(vs ...string) predicate.ModelApiKey

APIKeyNotIn applies the NotIn predicate on the "api_key" field.

func And

func And(predicates ...predicate.ModelApiKey) predicate.ModelApiKey

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.ModelApiKey

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ModelApiKey

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ModelApiKey

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ModelApiKey

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ModelApiKey

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ModelApiKey

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ModelApiKey

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.ModelApiKey

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.ModelApiKey

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.ModelApiKey

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.ModelApiKey

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.ModelApiKey

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.ModelApiKey

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.ModelApiKey

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.ModelApiKey

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.ModelApiKey

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.ModelApiKey

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.ModelApiKey

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasModel

func HasModel() predicate.ModelApiKey

HasModel applies the HasEdge predicate on the "model" edge.

func HasModelWith

func HasModelWith(preds ...predicate.Model) predicate.ModelApiKey

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.ModelApiKey

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.ModelApiKey

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.ModelApiKey

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.ModelApiKey

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.ModelApiKey

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.ModelApiKey

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.ModelApiKey

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.ModelApiKey

IDNotIn applies the NotIn predicate on the ID field.

func KindEQ

func KindEQ(v Kind) predicate.ModelApiKey

KindEQ applies the EQ predicate on the "kind" field.

func KindIn

func KindIn(vs ...Kind) predicate.ModelApiKey

KindIn applies the In predicate on the "kind" field.

func KindNEQ

func KindNEQ(v Kind) predicate.ModelApiKey

KindNEQ applies the NEQ predicate on the "kind" field.

func KindNotIn

func KindNotIn(vs ...Kind) predicate.ModelApiKey

KindNotIn applies the NotIn predicate on the "kind" field.

func KindValidator

func KindValidator(k Kind) error

KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.

func ModelID

func ModelID(v uuid.UUID) predicate.ModelApiKey

ModelID applies equality check predicate on the "model_id" field. It's identical to ModelIDEQ.

func ModelIDEQ

func ModelIDEQ(v uuid.UUID) predicate.ModelApiKey

ModelIDEQ applies the EQ predicate on the "model_id" field.

func ModelIDIn

func ModelIDIn(vs ...uuid.UUID) predicate.ModelApiKey

ModelIDIn applies the In predicate on the "model_id" field.

func ModelIDIsNil

func ModelIDIsNil() predicate.ModelApiKey

ModelIDIsNil applies the IsNil predicate on the "model_id" field.

func ModelIDNEQ

func ModelIDNEQ(v uuid.UUID) predicate.ModelApiKey

ModelIDNEQ applies the NEQ predicate on the "model_id" field.

func ModelIDNotIn

func ModelIDNotIn(vs ...uuid.UUID) predicate.ModelApiKey

ModelIDNotIn applies the NotIn predicate on the "model_id" field.

func ModelIDNotNil

func ModelIDNotNil() predicate.ModelApiKey

ModelIDNotNil applies the NotNil predicate on the "model_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.ModelApiKey) predicate.ModelApiKey

Or groups predicates with the OR operator between them.

func SigningSecret

func SigningSecret(v string) predicate.ModelApiKey

SigningSecret applies equality check predicate on the "signing_secret" field. It's identical to SigningSecretEQ.

func SigningSecretContains

func SigningSecretContains(v string) predicate.ModelApiKey

SigningSecretContains applies the Contains predicate on the "signing_secret" field.

func SigningSecretContainsFold

func SigningSecretContainsFold(v string) predicate.ModelApiKey

SigningSecretContainsFold applies the ContainsFold predicate on the "signing_secret" field.

func SigningSecretEQ

func SigningSecretEQ(v string) predicate.ModelApiKey

SigningSecretEQ applies the EQ predicate on the "signing_secret" field.

func SigningSecretEqualFold

func SigningSecretEqualFold(v string) predicate.ModelApiKey

SigningSecretEqualFold applies the EqualFold predicate on the "signing_secret" field.

func SigningSecretGT

func SigningSecretGT(v string) predicate.ModelApiKey

SigningSecretGT applies the GT predicate on the "signing_secret" field.

func SigningSecretGTE

func SigningSecretGTE(v string) predicate.ModelApiKey

SigningSecretGTE applies the GTE predicate on the "signing_secret" field.

func SigningSecretHasPrefix

func SigningSecretHasPrefix(v string) predicate.ModelApiKey

SigningSecretHasPrefix applies the HasPrefix predicate on the "signing_secret" field.

func SigningSecretHasSuffix

func SigningSecretHasSuffix(v string) predicate.ModelApiKey

SigningSecretHasSuffix applies the HasSuffix predicate on the "signing_secret" field.

func SigningSecretIn

func SigningSecretIn(vs ...string) predicate.ModelApiKey

SigningSecretIn applies the In predicate on the "signing_secret" field.

func SigningSecretLT

func SigningSecretLT(v string) predicate.ModelApiKey

SigningSecretLT applies the LT predicate on the "signing_secret" field.

func SigningSecretLTE

func SigningSecretLTE(v string) predicate.ModelApiKey

SigningSecretLTE applies the LTE predicate on the "signing_secret" field.

func SigningSecretNEQ

func SigningSecretNEQ(v string) predicate.ModelApiKey

SigningSecretNEQ applies the NEQ predicate on the "signing_secret" field.

func SigningSecretNotIn

func SigningSecretNotIn(vs ...string) predicate.ModelApiKey

SigningSecretNotIn applies the NotIn predicate on the "signing_secret" field.

func UserID

func UserID(v uuid.UUID) predicate.ModelApiKey

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.ModelApiKey

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v uuid.UUID) predicate.ModelApiKey

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v uuid.UUID) predicate.ModelApiKey

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.ModelApiKey

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v uuid.UUID) predicate.ModelApiKey

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v uuid.UUID) predicate.ModelApiKey

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.ModelApiKey

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.ModelApiKey

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

func VirtualmachineID

func VirtualmachineID(v string) predicate.ModelApiKey

VirtualmachineID applies equality check predicate on the "virtualmachine_id" field. It's identical to VirtualmachineIDEQ.

func VirtualmachineIDContains

func VirtualmachineIDContains(v string) predicate.ModelApiKey

VirtualmachineIDContains applies the Contains predicate on the "virtualmachine_id" field.

func VirtualmachineIDContainsFold

func VirtualmachineIDContainsFold(v string) predicate.ModelApiKey

VirtualmachineIDContainsFold applies the ContainsFold predicate on the "virtualmachine_id" field.

func VirtualmachineIDEQ

func VirtualmachineIDEQ(v string) predicate.ModelApiKey

VirtualmachineIDEQ applies the EQ predicate on the "virtualmachine_id" field.

func VirtualmachineIDEqualFold

func VirtualmachineIDEqualFold(v string) predicate.ModelApiKey

VirtualmachineIDEqualFold applies the EqualFold predicate on the "virtualmachine_id" field.

func VirtualmachineIDGT

func VirtualmachineIDGT(v string) predicate.ModelApiKey

VirtualmachineIDGT applies the GT predicate on the "virtualmachine_id" field.

func VirtualmachineIDGTE

func VirtualmachineIDGTE(v string) predicate.ModelApiKey

VirtualmachineIDGTE applies the GTE predicate on the "virtualmachine_id" field.

func VirtualmachineIDHasPrefix

func VirtualmachineIDHasPrefix(v string) predicate.ModelApiKey

VirtualmachineIDHasPrefix applies the HasPrefix predicate on the "virtualmachine_id" field.

func VirtualmachineIDHasSuffix

func VirtualmachineIDHasSuffix(v string) predicate.ModelApiKey

VirtualmachineIDHasSuffix applies the HasSuffix predicate on the "virtualmachine_id" field.

func VirtualmachineIDIn

func VirtualmachineIDIn(vs ...string) predicate.ModelApiKey

VirtualmachineIDIn applies the In predicate on the "virtualmachine_id" field.

func VirtualmachineIDIsNil

func VirtualmachineIDIsNil() predicate.ModelApiKey

VirtualmachineIDIsNil applies the IsNil predicate on the "virtualmachine_id" field.

func VirtualmachineIDLT

func VirtualmachineIDLT(v string) predicate.ModelApiKey

VirtualmachineIDLT applies the LT predicate on the "virtualmachine_id" field.

func VirtualmachineIDLTE

func VirtualmachineIDLTE(v string) predicate.ModelApiKey

VirtualmachineIDLTE applies the LTE predicate on the "virtualmachine_id" field.

func VirtualmachineIDNEQ

func VirtualmachineIDNEQ(v string) predicate.ModelApiKey

VirtualmachineIDNEQ applies the NEQ predicate on the "virtualmachine_id" field.

func VirtualmachineIDNotIn

func VirtualmachineIDNotIn(vs ...string) predicate.ModelApiKey

VirtualmachineIDNotIn applies the NotIn predicate on the "virtualmachine_id" field.

func VirtualmachineIDNotNil

func VirtualmachineIDNotNil() predicate.ModelApiKey

VirtualmachineIDNotNil applies the NotNil predicate on the "virtualmachine_id" field.

Types

type Kind

type Kind string

Kind defines the type for the "kind" enum field.

const (
	KindRuntime   Kind = "runtime"
	KindOhmyagent Kind = "ohmyagent"
)

Kind values.

func (Kind) String

func (k Kind) String() string

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ModelApiKey queries.

func ByAPIKey

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

ByAPIKey orders the results by the api_key field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByID

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

ByID orders the results by the id field.

func ByKind

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

ByKind orders the results by the kind field.

func ByModelField

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

ByModelField orders the results by model field.

func ByModelID

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

ByModelID orders the results by the model_id field.

func BySigningSecret

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

BySigningSecret orders the results by the signing_secret field.

func ByUserID

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

ByUserID orders the results by the user_id field.

func ByVirtualmachineID

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

ByVirtualmachineID orders the results by the virtualmachine_id field.

Jump to

Keyboard shortcuts

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