Documentation
¶
Index ¶
- Constants
- Variables
- func APIKey(v string) predicate.Model
- func APIKeyContains(v string) predicate.Model
- func APIKeyContainsFold(v string) predicate.Model
- func APIKeyEQ(v string) predicate.Model
- func APIKeyEqualFold(v string) predicate.Model
- func APIKeyGT(v string) predicate.Model
- func APIKeyGTE(v string) predicate.Model
- func APIKeyHasPrefix(v string) predicate.Model
- func APIKeyHasSuffix(v string) predicate.Model
- func APIKeyIn(vs ...string) predicate.Model
- func APIKeyLT(v string) predicate.Model
- func APIKeyLTE(v string) predicate.Model
- func APIKeyNEQ(v string) predicate.Model
- func APIKeyNotIn(vs ...string) predicate.Model
- func And(predicates ...predicate.Model) predicate.Model
- func BaseURL(v string) predicate.Model
- func BaseURLContains(v string) predicate.Model
- func BaseURLContainsFold(v string) predicate.Model
- func BaseURLEQ(v string) predicate.Model
- func BaseURLEqualFold(v string) predicate.Model
- func BaseURLGT(v string) predicate.Model
- func BaseURLGTE(v string) predicate.Model
- func BaseURLHasPrefix(v string) predicate.Model
- func BaseURLHasSuffix(v string) predicate.Model
- func BaseURLIn(vs ...string) predicate.Model
- func BaseURLLT(v string) predicate.Model
- func BaseURLLTE(v string) predicate.Model
- func BaseURLNEQ(v string) predicate.Model
- func BaseURLNotIn(vs ...string) predicate.Model
- func CreatedAt(v time.Time) predicate.Model
- func CreatedAtEQ(v time.Time) predicate.Model
- func CreatedAtGT(v time.Time) predicate.Model
- func CreatedAtGTE(v time.Time) predicate.Model
- func CreatedAtIn(vs ...time.Time) predicate.Model
- func CreatedAtLT(v time.Time) predicate.Model
- func CreatedAtLTE(v time.Time) predicate.Model
- func CreatedAtNEQ(v time.Time) predicate.Model
- func CreatedAtNotIn(vs ...time.Time) predicate.Model
- func DeletedAt(v time.Time) predicate.Model
- func DeletedAtEQ(v time.Time) predicate.Model
- func DeletedAtGT(v time.Time) predicate.Model
- func DeletedAtGTE(v time.Time) predicate.Model
- func DeletedAtIn(vs ...time.Time) predicate.Model
- func DeletedAtIsNil() predicate.Model
- func DeletedAtLT(v time.Time) predicate.Model
- func DeletedAtLTE(v time.Time) predicate.Model
- func DeletedAtNEQ(v time.Time) predicate.Model
- func DeletedAtNotIn(vs ...time.Time) predicate.Model
- func DeletedAtNotNil() predicate.Model
- func HasApikeys() predicate.Model
- func HasApikeysWith(preds ...predicate.ModelApiKey) predicate.Model
- func HasGroups() predicate.Model
- func HasGroupsWith(preds ...predicate.TeamGroup) predicate.Model
- func HasPricing() predicate.Model
- func HasPricingWith(preds ...predicate.ModelPricing) predicate.Model
- func HasProjectTasks() predicate.Model
- func HasProjectTasksWith(preds ...predicate.ProjectTask) predicate.Model
- func HasTeamGroupModels() predicate.Model
- func HasTeamGroupModelsWith(preds ...predicate.TeamGroupModel) predicate.Model
- func HasTeamModels() predicate.Model
- func HasTeamModelsWith(preds ...predicate.TeamModel) predicate.Model
- func HasTeams() predicate.Model
- func HasTeamsWith(preds ...predicate.Team) predicate.Model
- func HasUser() predicate.Model
- func HasUserWith(preds ...predicate.User) predicate.Model
- func HasVms() predicate.Model
- func HasVmsWith(preds ...predicate.VirtualMachine) predicate.Model
- func ID(id uuid.UUID) predicate.Model
- func IDEQ(id uuid.UUID) predicate.Model
- func IDGT(id uuid.UUID) predicate.Model
- func IDGTE(id uuid.UUID) predicate.Model
- func IDIn(ids ...uuid.UUID) predicate.Model
- func IDLT(id uuid.UUID) predicate.Model
- func IDLTE(id uuid.UUID) predicate.Model
- func IDNEQ(id uuid.UUID) predicate.Model
- func IDNotIn(ids ...uuid.UUID) predicate.Model
- func InterfaceType(v string) predicate.Model
- func InterfaceTypeContains(v string) predicate.Model
- func InterfaceTypeContainsFold(v string) predicate.Model
- func InterfaceTypeEQ(v string) predicate.Model
- func InterfaceTypeEqualFold(v string) predicate.Model
- func InterfaceTypeGT(v string) predicate.Model
- func InterfaceTypeGTE(v string) predicate.Model
- func InterfaceTypeHasPrefix(v string) predicate.Model
- func InterfaceTypeHasSuffix(v string) predicate.Model
- func InterfaceTypeIn(vs ...string) predicate.Model
- func InterfaceTypeIsNil() predicate.Model
- func InterfaceTypeLT(v string) predicate.Model
- func InterfaceTypeLTE(v string) predicate.Model
- func InterfaceTypeNEQ(v string) predicate.Model
- func InterfaceTypeNotIn(vs ...string) predicate.Model
- func InterfaceTypeNotNil() predicate.Model
- func LastCheckAt(v time.Time) predicate.Model
- func LastCheckAtEQ(v time.Time) predicate.Model
- func LastCheckAtGT(v time.Time) predicate.Model
- func LastCheckAtGTE(v time.Time) predicate.Model
- func LastCheckAtIn(vs ...time.Time) predicate.Model
- func LastCheckAtIsNil() predicate.Model
- func LastCheckAtLT(v time.Time) predicate.Model
- func LastCheckAtLTE(v time.Time) predicate.Model
- func LastCheckAtNEQ(v time.Time) predicate.Model
- func LastCheckAtNotIn(vs ...time.Time) predicate.Model
- func LastCheckAtNotNil() predicate.Model
- func LastCheckError(v string) predicate.Model
- func LastCheckErrorContains(v string) predicate.Model
- func LastCheckErrorContainsFold(v string) predicate.Model
- func LastCheckErrorEQ(v string) predicate.Model
- func LastCheckErrorEqualFold(v string) predicate.Model
- func LastCheckErrorGT(v string) predicate.Model
- func LastCheckErrorGTE(v string) predicate.Model
- func LastCheckErrorHasPrefix(v string) predicate.Model
- func LastCheckErrorHasSuffix(v string) predicate.Model
- func LastCheckErrorIn(vs ...string) predicate.Model
- func LastCheckErrorIsNil() predicate.Model
- func LastCheckErrorLT(v string) predicate.Model
- func LastCheckErrorLTE(v string) predicate.Model
- func LastCheckErrorNEQ(v string) predicate.Model
- func LastCheckErrorNotIn(vs ...string) predicate.Model
- func LastCheckErrorNotNil() predicate.Model
- func LastCheckSuccess(v bool) predicate.Model
- func LastCheckSuccessEQ(v bool) predicate.Model
- func LastCheckSuccessIsNil() predicate.Model
- func LastCheckSuccessNEQ(v bool) predicate.Model
- func LastCheckSuccessNotNil() predicate.Model
- func Model(v string) predicate.Model
- func ModelContains(v string) predicate.Model
- func ModelContainsFold(v string) predicate.Model
- func ModelEQ(v string) predicate.Model
- func ModelEqualFold(v string) predicate.Model
- func ModelGT(v string) predicate.Model
- func ModelGTE(v string) predicate.Model
- func ModelHasPrefix(v string) predicate.Model
- func ModelHasSuffix(v string) predicate.Model
- func ModelIn(vs ...string) predicate.Model
- func ModelLT(v string) predicate.Model
- func ModelLTE(v string) predicate.Model
- func ModelNEQ(v string) predicate.Model
- func ModelNotIn(vs ...string) predicate.Model
- func Not(p predicate.Model) predicate.Model
- func Or(predicates ...predicate.Model) predicate.Model
- func Provider(v string) predicate.Model
- func ProviderContains(v string) predicate.Model
- func ProviderContainsFold(v string) predicate.Model
- func ProviderEQ(v string) predicate.Model
- func ProviderEqualFold(v string) predicate.Model
- func ProviderGT(v string) predicate.Model
- func ProviderGTE(v string) predicate.Model
- func ProviderHasPrefix(v string) predicate.Model
- func ProviderHasSuffix(v string) predicate.Model
- func ProviderIn(vs ...string) predicate.Model
- func ProviderLT(v string) predicate.Model
- func ProviderLTE(v string) predicate.Model
- func ProviderNEQ(v string) predicate.Model
- func ProviderNotIn(vs ...string) predicate.Model
- func Remark(v string) predicate.Model
- func RemarkContains(v string) predicate.Model
- func RemarkContainsFold(v string) predicate.Model
- func RemarkEQ(v string) predicate.Model
- func RemarkEqualFold(v string) predicate.Model
- func RemarkGT(v string) predicate.Model
- func RemarkGTE(v string) predicate.Model
- func RemarkHasPrefix(v string) predicate.Model
- func RemarkHasSuffix(v string) predicate.Model
- func RemarkIn(vs ...string) predicate.Model
- func RemarkIsNil() predicate.Model
- func RemarkLT(v string) predicate.Model
- func RemarkLTE(v string) predicate.Model
- func RemarkNEQ(v string) predicate.Model
- func RemarkNotIn(vs ...string) predicate.Model
- func RemarkNotNil() predicate.Model
- func Temperature(v float64) predicate.Model
- func TemperatureEQ(v float64) predicate.Model
- func TemperatureGT(v float64) predicate.Model
- func TemperatureGTE(v float64) predicate.Model
- func TemperatureIn(vs ...float64) predicate.Model
- func TemperatureIsNil() predicate.Model
- func TemperatureLT(v float64) predicate.Model
- func TemperatureLTE(v float64) predicate.Model
- func TemperatureNEQ(v float64) predicate.Model
- func TemperatureNotIn(vs ...float64) predicate.Model
- func TemperatureNotNil() predicate.Model
- func UpdatedAt(v time.Time) predicate.Model
- func UpdatedAtEQ(v time.Time) predicate.Model
- func UpdatedAtGT(v time.Time) predicate.Model
- func UpdatedAtGTE(v time.Time) predicate.Model
- func UpdatedAtIn(vs ...time.Time) predicate.Model
- func UpdatedAtLT(v time.Time) predicate.Model
- func UpdatedAtLTE(v time.Time) predicate.Model
- func UpdatedAtNEQ(v time.Time) predicate.Model
- func UpdatedAtNotIn(vs ...time.Time) predicate.Model
- func UserID(v uuid.UUID) predicate.Model
- func UserIDEQ(v uuid.UUID) predicate.Model
- func UserIDIn(vs ...uuid.UUID) predicate.Model
- func UserIDNEQ(v uuid.UUID) predicate.Model
- func UserIDNotIn(vs ...uuid.UUID) predicate.Model
- func ValidColumn(column string) bool
- func Weight(v int) predicate.Model
- func WeightEQ(v int) predicate.Model
- func WeightGT(v int) predicate.Model
- func WeightGTE(v int) predicate.Model
- func WeightIn(vs ...int) predicate.Model
- func WeightLT(v int) predicate.Model
- func WeightLTE(v int) predicate.Model
- func WeightNEQ(v int) predicate.Model
- func WeightNotIn(vs ...int) predicate.Model
- type OrderOption
- func ByAPIKey(opts ...sql.OrderTermOption) OrderOption
- func ByApikeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByApikeysCount(opts ...sql.OrderTermOption) OrderOption
- func ByBaseURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInterfaceType(opts ...sql.OrderTermOption) OrderOption
- func ByLastCheckAt(opts ...sql.OrderTermOption) OrderOption
- func ByLastCheckError(opts ...sql.OrderTermOption) OrderOption
- func ByLastCheckSuccess(opts ...sql.OrderTermOption) OrderOption
- func ByModel(opts ...sql.OrderTermOption) OrderOption
- func ByPricingField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByProjectTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProjectTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func ByTeamGroupModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamGroupModelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeamModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamModelsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTemperature(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
- func ByVms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByVmsCount(opts ...sql.OrderTermOption) OrderOption
- func ByWeight(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the model type in the database. Label = "model" // 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" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldProvider holds the string denoting the provider field in the database. FieldProvider = "provider" // FieldAPIKey holds the string denoting the api_key field in the database. FieldAPIKey = "api_key" // FieldBaseURL holds the string denoting the base_url field in the database. FieldBaseURL = "base_url" // FieldModel holds the string denoting the model field in the database. FieldModel = "model" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // FieldTemperature holds the string denoting the temperature field in the database. FieldTemperature = "temperature" // FieldInterfaceType holds the string denoting the interface_type field in the database. FieldInterfaceType = "interface_type" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // FieldLastCheckAt holds the string denoting the last_check_at field in the database. FieldLastCheckAt = "last_check_at" // FieldLastCheckSuccess holds the string denoting the last_check_success field in the database. FieldLastCheckSuccess = "last_check_success" // FieldLastCheckError holds the string denoting the last_check_error field in the database. FieldLastCheckError = "last_check_error" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeTeams holds the string denoting the teams edge name in mutations. EdgeTeams = "teams" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeVms holds the string denoting the vms edge name in mutations. EdgeVms = "vms" // EdgeProjectTasks holds the string denoting the project_tasks edge name in mutations. EdgeProjectTasks = "project_tasks" // EdgePricing holds the string denoting the pricing edge name in mutations. EdgePricing = "pricing" // EdgeApikeys holds the string denoting the apikeys edge name in mutations. EdgeApikeys = "apikeys" // EdgeTeamModels holds the string denoting the team_models edge name in mutations. EdgeTeamModels = "team_models" // EdgeTeamGroupModels holds the string denoting the team_group_models edge name in mutations. EdgeTeamGroupModels = "team_group_models" // Table holds the table name of the model in the database. Table = "models" // UserTable is the table that holds the user relation/edge. UserTable = "models" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // TeamsTable is the table that holds the teams relation/edge. The primary key declared below. TeamsTable = "team_models" // TeamsInverseTable is the table name for the Team entity. // It exists in this package in order to avoid circular dependency with the "team" package. TeamsInverseTable = "teams" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "team_group_models" // GroupsInverseTable is the table name for the TeamGroup entity. // It exists in this package in order to avoid circular dependency with the "teamgroup" package. GroupsInverseTable = "team_groups" // VmsTable is the table that holds the vms relation/edge. VmsTable = "virtualmachines" // VmsInverseTable is the table name for the VirtualMachine entity. // It exists in this package in order to avoid circular dependency with the "virtualmachine" package. VmsInverseTable = "virtualmachines" // VmsColumn is the table column denoting the vms relation/edge. VmsColumn = "model_id" // ProjectTasksTable is the table that holds the project_tasks relation/edge. ProjectTasksTable = "project_tasks" // ProjectTasksInverseTable is the table name for the ProjectTask entity. // It exists in this package in order to avoid circular dependency with the "projecttask" package. ProjectTasksInverseTable = "project_tasks" // ProjectTasksColumn is the table column denoting the project_tasks relation/edge. ProjectTasksColumn = "model_id" // PricingTable is the table that holds the pricing relation/edge. PricingTable = "model_pricings" // PricingInverseTable is the table name for the ModelPricing entity. // It exists in this package in order to avoid circular dependency with the "modelpricing" package. PricingInverseTable = "model_pricings" // PricingColumn is the table column denoting the pricing relation/edge. PricingColumn = "model_id" // ApikeysTable is the table that holds the apikeys relation/edge. ApikeysTable = "model_api_keys" // ApikeysInverseTable is the table name for the ModelApiKey entity. // It exists in this package in order to avoid circular dependency with the "modelapikey" package. ApikeysInverseTable = "model_api_keys" // ApikeysColumn is the table column denoting the apikeys relation/edge. ApikeysColumn = "model_id" // TeamModelsTable is the table that holds the team_models relation/edge. TeamModelsTable = "team_models" // TeamModelsInverseTable is the table name for the TeamModel entity. // It exists in this package in order to avoid circular dependency with the "teammodel" package. TeamModelsInverseTable = "team_models" // TeamModelsColumn is the table column denoting the team_models relation/edge. TeamModelsColumn = "model_id" // TeamGroupModelsTable is the table that holds the team_group_models relation/edge. TeamGroupModelsTable = "team_group_models" // TeamGroupModelsInverseTable is the table name for the TeamGroupModel entity. // It exists in this package in order to avoid circular dependency with the "teamgroupmodel" package. TeamGroupModelsInverseTable = "team_group_models" // TeamGroupModelsColumn is the table column denoting the team_group_models relation/edge. TeamGroupModelsColumn = "model_id" )
Variables ¶
var ( // TeamsPrimaryKey and TeamsColumn2 are the table columns denoting the // primary key for the teams relation (M2M). TeamsPrimaryKey = []string{"team_id", "model_id"} // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"group_id", "model_id"} )
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // ProviderValidator is a validator for the "provider" field. It is called by the builders before save. ProviderValidator func(string) error // APIKeyValidator is a validator for the "api_key" field. It is called by the builders before save. APIKeyValidator func(string) error // BaseURLValidator is a validator for the "base_url" field. It is called by the builders before save. BaseURLValidator func(string) error // ModelValidator is a validator for the "model" field. It is called by the builders before save. ModelValidator func(string) error // DefaultWeight holds the default value on creation for the "weight" field. DefaultWeight int // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt 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, FieldUserID, FieldProvider, FieldAPIKey, FieldBaseURL, FieldModel, FieldRemark, FieldTemperature, FieldInterfaceType, FieldWeight, FieldLastCheckAt, FieldLastCheckSuccess, FieldLastCheckError, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for model fields.
Functions ¶
func APIKey ¶
APIKey applies equality check predicate on the "api_key" field. It's identical to APIKeyEQ.
func APIKeyContains ¶
APIKeyContains applies the Contains predicate on the "api_key" field.
func APIKeyContainsFold ¶
APIKeyContainsFold applies the ContainsFold predicate on the "api_key" field.
func APIKeyEqualFold ¶
APIKeyEqualFold applies the EqualFold predicate on the "api_key" field.
func APIKeyHasPrefix ¶
APIKeyHasPrefix applies the HasPrefix predicate on the "api_key" field.
func APIKeyHasSuffix ¶
APIKeyHasSuffix applies the HasSuffix predicate on the "api_key" field.
func APIKeyNotIn ¶
APIKeyNotIn applies the NotIn predicate on the "api_key" field.
func BaseURL ¶
BaseURL applies equality check predicate on the "base_url" field. It's identical to BaseURLEQ.
func BaseURLContains ¶
BaseURLContains applies the Contains predicate on the "base_url" field.
func BaseURLContainsFold ¶
BaseURLContainsFold applies the ContainsFold predicate on the "base_url" field.
func BaseURLEqualFold ¶
BaseURLEqualFold applies the EqualFold predicate on the "base_url" field.
func BaseURLGTE ¶
BaseURLGTE applies the GTE predicate on the "base_url" field.
func BaseURLHasPrefix ¶
BaseURLHasPrefix applies the HasPrefix predicate on the "base_url" field.
func BaseURLHasSuffix ¶
BaseURLHasSuffix applies the HasSuffix predicate on the "base_url" field.
func BaseURLLTE ¶
BaseURLLTE applies the LTE predicate on the "base_url" field.
func BaseURLNEQ ¶
BaseURLNEQ applies the NEQ predicate on the "base_url" field.
func BaseURLNotIn ¶
BaseURLNotIn applies the NotIn predicate on the "base_url" 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 DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func HasApikeys ¶
HasApikeys applies the HasEdge predicate on the "apikeys" edge.
func HasApikeysWith ¶
func HasApikeysWith(preds ...predicate.ModelApiKey) predicate.Model
HasApikeysWith applies the HasEdge predicate on the "apikeys" edge with a given conditions (other predicates).
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasPricing ¶
HasPricing applies the HasEdge predicate on the "pricing" edge.
func HasPricingWith ¶
func HasPricingWith(preds ...predicate.ModelPricing) predicate.Model
HasPricingWith applies the HasEdge predicate on the "pricing" edge with a given conditions (other predicates).
func HasProjectTasks ¶
HasProjectTasks applies the HasEdge predicate on the "project_tasks" edge.
func HasProjectTasksWith ¶
func HasProjectTasksWith(preds ...predicate.ProjectTask) predicate.Model
HasProjectTasksWith applies the HasEdge predicate on the "project_tasks" edge with a given conditions (other predicates).
func HasTeamGroupModels ¶
HasTeamGroupModels applies the HasEdge predicate on the "team_group_models" edge.
func HasTeamGroupModelsWith ¶
func HasTeamGroupModelsWith(preds ...predicate.TeamGroupModel) predicate.Model
HasTeamGroupModelsWith applies the HasEdge predicate on the "team_group_models" edge with a given conditions (other predicates).
func HasTeamModels ¶
HasTeamModels applies the HasEdge predicate on the "team_models" edge.
func HasTeamModelsWith ¶
HasTeamModelsWith applies the HasEdge predicate on the "team_models" edge with a given conditions (other predicates).
func HasTeamsWith ¶
HasTeamsWith applies the HasEdge predicate on the "teams" edge with a given conditions (other predicates).
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func HasVmsWith ¶
func HasVmsWith(preds ...predicate.VirtualMachine) predicate.Model
HasVmsWith applies the HasEdge predicate on the "vms" edge with a given conditions (other predicates).
func InterfaceType ¶
InterfaceType applies equality check predicate on the "interface_type" field. It's identical to InterfaceTypeEQ.
func InterfaceTypeContains ¶
InterfaceTypeContains applies the Contains predicate on the "interface_type" field.
func InterfaceTypeContainsFold ¶
InterfaceTypeContainsFold applies the ContainsFold predicate on the "interface_type" field.
func InterfaceTypeEQ ¶
InterfaceTypeEQ applies the EQ predicate on the "interface_type" field.
func InterfaceTypeEqualFold ¶
InterfaceTypeEqualFold applies the EqualFold predicate on the "interface_type" field.
func InterfaceTypeGT ¶
InterfaceTypeGT applies the GT predicate on the "interface_type" field.
func InterfaceTypeGTE ¶
InterfaceTypeGTE applies the GTE predicate on the "interface_type" field.
func InterfaceTypeHasPrefix ¶
InterfaceTypeHasPrefix applies the HasPrefix predicate on the "interface_type" field.
func InterfaceTypeHasSuffix ¶
InterfaceTypeHasSuffix applies the HasSuffix predicate on the "interface_type" field.
func InterfaceTypeIn ¶
InterfaceTypeIn applies the In predicate on the "interface_type" field.
func InterfaceTypeIsNil ¶
InterfaceTypeIsNil applies the IsNil predicate on the "interface_type" field.
func InterfaceTypeLT ¶
InterfaceTypeLT applies the LT predicate on the "interface_type" field.
func InterfaceTypeLTE ¶
InterfaceTypeLTE applies the LTE predicate on the "interface_type" field.
func InterfaceTypeNEQ ¶
InterfaceTypeNEQ applies the NEQ predicate on the "interface_type" field.
func InterfaceTypeNotIn ¶
InterfaceTypeNotIn applies the NotIn predicate on the "interface_type" field.
func InterfaceTypeNotNil ¶
InterfaceTypeNotNil applies the NotNil predicate on the "interface_type" field.
func LastCheckAt ¶
LastCheckAt applies equality check predicate on the "last_check_at" field. It's identical to LastCheckAtEQ.
func LastCheckAtEQ ¶
LastCheckAtEQ applies the EQ predicate on the "last_check_at" field.
func LastCheckAtGT ¶
LastCheckAtGT applies the GT predicate on the "last_check_at" field.
func LastCheckAtGTE ¶
LastCheckAtGTE applies the GTE predicate on the "last_check_at" field.
func LastCheckAtIn ¶
LastCheckAtIn applies the In predicate on the "last_check_at" field.
func LastCheckAtIsNil ¶
LastCheckAtIsNil applies the IsNil predicate on the "last_check_at" field.
func LastCheckAtLT ¶
LastCheckAtLT applies the LT predicate on the "last_check_at" field.
func LastCheckAtLTE ¶
LastCheckAtLTE applies the LTE predicate on the "last_check_at" field.
func LastCheckAtNEQ ¶
LastCheckAtNEQ applies the NEQ predicate on the "last_check_at" field.
func LastCheckAtNotIn ¶
LastCheckAtNotIn applies the NotIn predicate on the "last_check_at" field.
func LastCheckAtNotNil ¶
LastCheckAtNotNil applies the NotNil predicate on the "last_check_at" field.
func LastCheckError ¶
LastCheckError applies equality check predicate on the "last_check_error" field. It's identical to LastCheckErrorEQ.
func LastCheckErrorContains ¶
LastCheckErrorContains applies the Contains predicate on the "last_check_error" field.
func LastCheckErrorContainsFold ¶
LastCheckErrorContainsFold applies the ContainsFold predicate on the "last_check_error" field.
func LastCheckErrorEQ ¶
LastCheckErrorEQ applies the EQ predicate on the "last_check_error" field.
func LastCheckErrorEqualFold ¶
LastCheckErrorEqualFold applies the EqualFold predicate on the "last_check_error" field.
func LastCheckErrorGT ¶
LastCheckErrorGT applies the GT predicate on the "last_check_error" field.
func LastCheckErrorGTE ¶
LastCheckErrorGTE applies the GTE predicate on the "last_check_error" field.
func LastCheckErrorHasPrefix ¶
LastCheckErrorHasPrefix applies the HasPrefix predicate on the "last_check_error" field.
func LastCheckErrorHasSuffix ¶
LastCheckErrorHasSuffix applies the HasSuffix predicate on the "last_check_error" field.
func LastCheckErrorIn ¶
LastCheckErrorIn applies the In predicate on the "last_check_error" field.
func LastCheckErrorIsNil ¶
LastCheckErrorIsNil applies the IsNil predicate on the "last_check_error" field.
func LastCheckErrorLT ¶
LastCheckErrorLT applies the LT predicate on the "last_check_error" field.
func LastCheckErrorLTE ¶
LastCheckErrorLTE applies the LTE predicate on the "last_check_error" field.
func LastCheckErrorNEQ ¶
LastCheckErrorNEQ applies the NEQ predicate on the "last_check_error" field.
func LastCheckErrorNotIn ¶
LastCheckErrorNotIn applies the NotIn predicate on the "last_check_error" field.
func LastCheckErrorNotNil ¶
LastCheckErrorNotNil applies the NotNil predicate on the "last_check_error" field.
func LastCheckSuccess ¶
LastCheckSuccess applies equality check predicate on the "last_check_success" field. It's identical to LastCheckSuccessEQ.
func LastCheckSuccessEQ ¶
LastCheckSuccessEQ applies the EQ predicate on the "last_check_success" field.
func LastCheckSuccessIsNil ¶
LastCheckSuccessIsNil applies the IsNil predicate on the "last_check_success" field.
func LastCheckSuccessNEQ ¶
LastCheckSuccessNEQ applies the NEQ predicate on the "last_check_success" field.
func LastCheckSuccessNotNil ¶
LastCheckSuccessNotNil applies the NotNil predicate on the "last_check_success" field.
func Model ¶
Model applies equality check predicate on the "model" field. It's identical to ModelEQ.
func ModelContains ¶
ModelContains applies the Contains predicate on the "model" field.
func ModelContainsFold ¶
ModelContainsFold applies the ContainsFold predicate on the "model" field.
func ModelEqualFold ¶
ModelEqualFold applies the EqualFold predicate on the "model" field.
func ModelHasPrefix ¶
ModelHasPrefix applies the HasPrefix predicate on the "model" field.
func ModelHasSuffix ¶
ModelHasSuffix applies the HasSuffix predicate on the "model" field.
func ModelNotIn ¶
ModelNotIn applies the NotIn predicate on the "model" field.
func Provider ¶
Provider applies equality check predicate on the "provider" field. It's identical to ProviderEQ.
func ProviderContains ¶
ProviderContains applies the Contains predicate on the "provider" field.
func ProviderContainsFold ¶
ProviderContainsFold applies the ContainsFold predicate on the "provider" field.
func ProviderEQ ¶
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderEqualFold ¶
ProviderEqualFold applies the EqualFold predicate on the "provider" field.
func ProviderGT ¶
ProviderGT applies the GT predicate on the "provider" field.
func ProviderGTE ¶
ProviderGTE applies the GTE predicate on the "provider" field.
func ProviderHasPrefix ¶
ProviderHasPrefix applies the HasPrefix predicate on the "provider" field.
func ProviderHasSuffix ¶
ProviderHasSuffix applies the HasSuffix predicate on the "provider" field.
func ProviderIn ¶
ProviderIn applies the In predicate on the "provider" field.
func ProviderLT ¶
ProviderLT applies the LT predicate on the "provider" field.
func ProviderLTE ¶
ProviderLTE applies the LTE predicate on the "provider" field.
func ProviderNEQ ¶
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
ProviderNotIn applies the NotIn predicate on the "provider" field.
func Remark ¶
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEqualFold ¶
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkHasPrefix ¶
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkIsNil ¶
RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkNotIn ¶
RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotNil ¶
RemarkNotNil applies the NotNil predicate on the "remark" field.
func Temperature ¶
Temperature applies equality check predicate on the "temperature" field. It's identical to TemperatureEQ.
func TemperatureEQ ¶
TemperatureEQ applies the EQ predicate on the "temperature" field.
func TemperatureGT ¶
TemperatureGT applies the GT predicate on the "temperature" field.
func TemperatureGTE ¶
TemperatureGTE applies the GTE predicate on the "temperature" field.
func TemperatureIn ¶
TemperatureIn applies the In predicate on the "temperature" field.
func TemperatureIsNil ¶
TemperatureIsNil applies the IsNil predicate on the "temperature" field.
func TemperatureLT ¶
TemperatureLT applies the LT predicate on the "temperature" field.
func TemperatureLTE ¶
TemperatureLTE applies the LTE predicate on the "temperature" field.
func TemperatureNEQ ¶
TemperatureNEQ applies the NEQ predicate on the "temperature" field.
func TemperatureNotIn ¶
TemperatureNotIn applies the NotIn predicate on the "temperature" field.
func TemperatureNotNil ¶
TemperatureNotNil applies the NotNil predicate on the "temperature" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDNotIn ¶
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 Weight ¶
Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.
func WeightNotIn ¶
WeightNotIn applies the NotIn predicate on the "weight" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Model queries.
func ByAPIKey ¶
func ByAPIKey(opts ...sql.OrderTermOption) OrderOption
ByAPIKey orders the results by the api_key field.
func ByApikeys ¶
func ByApikeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByApikeys orders the results by apikeys terms.
func ByApikeysCount ¶
func ByApikeysCount(opts ...sql.OrderTermOption) OrderOption
ByApikeysCount orders the results by apikeys count.
func ByBaseURL ¶
func ByBaseURL(opts ...sql.OrderTermOption) OrderOption
ByBaseURL orders the results by the base_url 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 ByGroups ¶
func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroups orders the results by groups terms.
func ByGroupsCount ¶
func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupsCount orders the results by groups count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInterfaceType ¶
func ByInterfaceType(opts ...sql.OrderTermOption) OrderOption
ByInterfaceType orders the results by the interface_type field.
func ByLastCheckAt ¶
func ByLastCheckAt(opts ...sql.OrderTermOption) OrderOption
ByLastCheckAt orders the results by the last_check_at field.
func ByLastCheckError ¶
func ByLastCheckError(opts ...sql.OrderTermOption) OrderOption
ByLastCheckError orders the results by the last_check_error field.
func ByLastCheckSuccess ¶
func ByLastCheckSuccess(opts ...sql.OrderTermOption) OrderOption
ByLastCheckSuccess orders the results by the last_check_success field.
func ByModel ¶
func ByModel(opts ...sql.OrderTermOption) OrderOption
ByModel orders the results by the model field.
func ByPricingField ¶
func ByPricingField(field string, opts ...sql.OrderTermOption) OrderOption
ByPricingField orders the results by pricing field.
func ByProjectTasks ¶
func ByProjectTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProjectTasks orders the results by project_tasks terms.
func ByProjectTasksCount ¶
func ByProjectTasksCount(opts ...sql.OrderTermOption) OrderOption
ByProjectTasksCount orders the results by project_tasks count.
func ByProvider ¶
func ByProvider(opts ...sql.OrderTermOption) OrderOption
ByProvider orders the results by the provider field.
func ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func ByTeamGroupModels ¶
func ByTeamGroupModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeamGroupModels orders the results by team_group_models terms.
func ByTeamGroupModelsCount ¶
func ByTeamGroupModelsCount(opts ...sql.OrderTermOption) OrderOption
ByTeamGroupModelsCount orders the results by team_group_models count.
func ByTeamModels ¶
func ByTeamModels(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeamModels orders the results by team_models terms.
func ByTeamModelsCount ¶
func ByTeamModelsCount(opts ...sql.OrderTermOption) OrderOption
ByTeamModelsCount orders the results by team_models count.
func ByTeams ¶
func ByTeams(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeams orders the results by teams terms.
func ByTeamsCount ¶
func ByTeamsCount(opts ...sql.OrderTermOption) OrderOption
ByTeamsCount orders the results by teams count.
func ByTemperature ¶
func ByTemperature(opts ...sql.OrderTermOption) OrderOption
ByTemperature orders the results by the temperature field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.
func ByVms ¶
func ByVms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByVms orders the results by vms terms.
func ByVmsCount ¶
func ByVmsCount(opts ...sql.OrderTermOption) OrderOption
ByVmsCount orders the results by vms count.
func ByWeight ¶
func ByWeight(opts ...sql.OrderTermOption) OrderOption
ByWeight orders the results by the weight field.