Documentation
¶
Index ¶
- Constants
- Variables
- func APIKey(v string) predicate.ModelApiKey
- func APIKeyContains(v string) predicate.ModelApiKey
- func APIKeyContainsFold(v string) predicate.ModelApiKey
- func APIKeyEQ(v string) predicate.ModelApiKey
- func APIKeyEqualFold(v string) predicate.ModelApiKey
- func APIKeyGT(v string) predicate.ModelApiKey
- func APIKeyGTE(v string) predicate.ModelApiKey
- func APIKeyHasPrefix(v string) predicate.ModelApiKey
- func APIKeyHasSuffix(v string) predicate.ModelApiKey
- func APIKeyIn(vs ...string) predicate.ModelApiKey
- func APIKeyLT(v string) predicate.ModelApiKey
- func APIKeyLTE(v string) predicate.ModelApiKey
- func APIKeyNEQ(v string) predicate.ModelApiKey
- func APIKeyNotIn(vs ...string) predicate.ModelApiKey
- func And(predicates ...predicate.ModelApiKey) predicate.ModelApiKey
- func CreatedAt(v time.Time) predicate.ModelApiKey
- func CreatedAtEQ(v time.Time) predicate.ModelApiKey
- func CreatedAtGT(v time.Time) predicate.ModelApiKey
- func CreatedAtGTE(v time.Time) predicate.ModelApiKey
- func CreatedAtIn(vs ...time.Time) predicate.ModelApiKey
- func CreatedAtLT(v time.Time) predicate.ModelApiKey
- func CreatedAtLTE(v time.Time) predicate.ModelApiKey
- func CreatedAtNEQ(v time.Time) predicate.ModelApiKey
- func CreatedAtNotIn(vs ...time.Time) predicate.ModelApiKey
- func DeletedAt(v time.Time) predicate.ModelApiKey
- func DeletedAtEQ(v time.Time) predicate.ModelApiKey
- func DeletedAtGT(v time.Time) predicate.ModelApiKey
- func DeletedAtGTE(v time.Time) predicate.ModelApiKey
- func DeletedAtIn(vs ...time.Time) predicate.ModelApiKey
- func DeletedAtIsNil() predicate.ModelApiKey
- func DeletedAtLT(v time.Time) predicate.ModelApiKey
- func DeletedAtLTE(v time.Time) predicate.ModelApiKey
- func DeletedAtNEQ(v time.Time) predicate.ModelApiKey
- func DeletedAtNotIn(vs ...time.Time) predicate.ModelApiKey
- func DeletedAtNotNil() predicate.ModelApiKey
- func HasModel() predicate.ModelApiKey
- func HasModelWith(preds ...predicate.Model) predicate.ModelApiKey
- func ID(id uuid.UUID) predicate.ModelApiKey
- func IDEQ(id uuid.UUID) predicate.ModelApiKey
- func IDGT(id uuid.UUID) predicate.ModelApiKey
- func IDGTE(id uuid.UUID) predicate.ModelApiKey
- func IDIn(ids ...uuid.UUID) predicate.ModelApiKey
- func IDLT(id uuid.UUID) predicate.ModelApiKey
- func IDLTE(id uuid.UUID) predicate.ModelApiKey
- func IDNEQ(id uuid.UUID) predicate.ModelApiKey
- func IDNotIn(ids ...uuid.UUID) predicate.ModelApiKey
- func ModelID(v uuid.UUID) predicate.ModelApiKey
- func ModelIDEQ(v uuid.UUID) predicate.ModelApiKey
- func ModelIDIn(vs ...uuid.UUID) predicate.ModelApiKey
- func ModelIDNEQ(v uuid.UUID) predicate.ModelApiKey
- func ModelIDNotIn(vs ...uuid.UUID) predicate.ModelApiKey
- func Not(p predicate.ModelApiKey) predicate.ModelApiKey
- func Or(predicates ...predicate.ModelApiKey) predicate.ModelApiKey
- func UserID(v uuid.UUID) predicate.ModelApiKey
- func UserIDEQ(v uuid.UUID) predicate.ModelApiKey
- func UserIDGT(v uuid.UUID) predicate.ModelApiKey
- func UserIDGTE(v uuid.UUID) predicate.ModelApiKey
- func UserIDIn(vs ...uuid.UUID) predicate.ModelApiKey
- func UserIDLT(v uuid.UUID) predicate.ModelApiKey
- func UserIDLTE(v uuid.UUID) predicate.ModelApiKey
- func UserIDNEQ(v uuid.UUID) predicate.ModelApiKey
- func UserIDNotIn(vs ...uuid.UUID) predicate.ModelApiKey
- func ValidColumn(column string) bool
- func VirtualmachineID(v string) predicate.ModelApiKey
- func VirtualmachineIDContains(v string) predicate.ModelApiKey
- func VirtualmachineIDContainsFold(v string) predicate.ModelApiKey
- func VirtualmachineIDEQ(v string) predicate.ModelApiKey
- func VirtualmachineIDEqualFold(v string) predicate.ModelApiKey
- func VirtualmachineIDGT(v string) predicate.ModelApiKey
- func VirtualmachineIDGTE(v string) predicate.ModelApiKey
- func VirtualmachineIDHasPrefix(v string) predicate.ModelApiKey
- func VirtualmachineIDHasSuffix(v string) predicate.ModelApiKey
- func VirtualmachineIDIn(vs ...string) predicate.ModelApiKey
- func VirtualmachineIDIsNil() predicate.ModelApiKey
- func VirtualmachineIDLT(v string) predicate.ModelApiKey
- func VirtualmachineIDLTE(v string) predicate.ModelApiKey
- func VirtualmachineIDNEQ(v string) predicate.ModelApiKey
- func VirtualmachineIDNotIn(vs ...string) predicate.ModelApiKey
- func VirtualmachineIDNotNil() predicate.ModelApiKey
- type OrderOption
- func ByAPIKey(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByModelField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByModelID(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByVirtualmachineID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // 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" // 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" )
Variables ¶
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 // 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"
var Columns = []string{ FieldID, FieldDeletedAt, FieldModelID, FieldUserID, FieldVirtualmachineID, FieldAPIKey, FieldCreatedAt, }
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 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 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 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 Not ¶
func Not(p predicate.ModelApiKey) predicate.ModelApiKey
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 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 ¶
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 OrderOption ¶
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 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 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.