Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Host) predicate.Host
- func Arch(v string) predicate.Host
- func ArchContains(v string) predicate.Host
- func ArchContainsFold(v string) predicate.Host
- func ArchEQ(v string) predicate.Host
- func ArchEqualFold(v string) predicate.Host
- func ArchGT(v string) predicate.Host
- func ArchGTE(v string) predicate.Host
- func ArchHasPrefix(v string) predicate.Host
- func ArchHasSuffix(v string) predicate.Host
- func ArchIn(vs ...string) predicate.Host
- func ArchIsNil() predicate.Host
- func ArchLT(v string) predicate.Host
- func ArchLTE(v string) predicate.Host
- func ArchNEQ(v string) predicate.Host
- func ArchNotIn(vs ...string) predicate.Host
- func ArchNotNil() predicate.Host
- func Cores(v int) predicate.Host
- func CoresEQ(v int) predicate.Host
- func CoresGT(v int) predicate.Host
- func CoresGTE(v int) predicate.Host
- func CoresIn(vs ...int) predicate.Host
- func CoresIsNil() predicate.Host
- func CoresLT(v int) predicate.Host
- func CoresLTE(v int) predicate.Host
- func CoresNEQ(v int) predicate.Host
- func CoresNotIn(vs ...int) predicate.Host
- func CoresNotNil() predicate.Host
- func CreatedAt(v time.Time) predicate.Host
- func CreatedAtEQ(v time.Time) predicate.Host
- func CreatedAtGT(v time.Time) predicate.Host
- func CreatedAtGTE(v time.Time) predicate.Host
- func CreatedAtIn(vs ...time.Time) predicate.Host
- func CreatedAtLT(v time.Time) predicate.Host
- func CreatedAtLTE(v time.Time) predicate.Host
- func CreatedAtNEQ(v time.Time) predicate.Host
- func CreatedAtNotIn(vs ...time.Time) predicate.Host
- func DeletedAt(v time.Time) predicate.Host
- func DeletedAtEQ(v time.Time) predicate.Host
- func DeletedAtGT(v time.Time) predicate.Host
- func DeletedAtGTE(v time.Time) predicate.Host
- func DeletedAtIn(vs ...time.Time) predicate.Host
- func DeletedAtIsNil() predicate.Host
- func DeletedAtLT(v time.Time) predicate.Host
- func DeletedAtLTE(v time.Time) predicate.Host
- func DeletedAtNEQ(v time.Time) predicate.Host
- func DeletedAtNotIn(vs ...time.Time) predicate.Host
- func DeletedAtNotNil() predicate.Host
- func Disk(v int64) predicate.Host
- func DiskEQ(v int64) predicate.Host
- func DiskGT(v int64) predicate.Host
- func DiskGTE(v int64) predicate.Host
- func DiskIn(vs ...int64) predicate.Host
- func DiskIsNil() predicate.Host
- func DiskLT(v int64) predicate.Host
- func DiskLTE(v int64) predicate.Host
- func DiskNEQ(v int64) predicate.Host
- func DiskNotIn(vs ...int64) predicate.Host
- func DiskNotNil() predicate.Host
- func ExternalIP(v string) predicate.Host
- func ExternalIPContains(v string) predicate.Host
- func ExternalIPContainsFold(v string) predicate.Host
- func ExternalIPEQ(v string) predicate.Host
- func ExternalIPEqualFold(v string) predicate.Host
- func ExternalIPGT(v string) predicate.Host
- func ExternalIPGTE(v string) predicate.Host
- func ExternalIPHasPrefix(v string) predicate.Host
- func ExternalIPHasSuffix(v string) predicate.Host
- func ExternalIPIn(vs ...string) predicate.Host
- func ExternalIPIsNil() predicate.Host
- func ExternalIPLT(v string) predicate.Host
- func ExternalIPLTE(v string) predicate.Host
- func ExternalIPNEQ(v string) predicate.Host
- func ExternalIPNotIn(vs ...string) predicate.Host
- func ExternalIPNotNil() predicate.Host
- func HasGitBots() predicate.Host
- func HasGitBotsWith(preds ...predicate.GitBot) predicate.Host
- func HasGroups() predicate.Host
- func HasGroupsWith(preds ...predicate.TeamGroup) predicate.Host
- func HasTeamGroupHosts() predicate.Host
- func HasTeamGroupHostsWith(preds ...predicate.TeamGroupHost) predicate.Host
- func HasUser() predicate.Host
- func HasUserWith(preds ...predicate.User) predicate.Host
- func HasVms() predicate.Host
- func HasVmsWith(preds ...predicate.VirtualMachine) predicate.Host
- func Hostname(v string) predicate.Host
- func HostnameContains(v string) predicate.Host
- func HostnameContainsFold(v string) predicate.Host
- func HostnameEQ(v string) predicate.Host
- func HostnameEqualFold(v string) predicate.Host
- func HostnameGT(v string) predicate.Host
- func HostnameGTE(v string) predicate.Host
- func HostnameHasPrefix(v string) predicate.Host
- func HostnameHasSuffix(v string) predicate.Host
- func HostnameIn(vs ...string) predicate.Host
- func HostnameIsNil() predicate.Host
- func HostnameLT(v string) predicate.Host
- func HostnameLTE(v string) predicate.Host
- func HostnameNEQ(v string) predicate.Host
- func HostnameNotIn(vs ...string) predicate.Host
- func HostnameNotNil() predicate.Host
- func ID(id string) predicate.Host
- func IDContainsFold(id string) predicate.Host
- func IDEQ(id string) predicate.Host
- func IDEqualFold(id string) predicate.Host
- func IDGT(id string) predicate.Host
- func IDGTE(id string) predicate.Host
- func IDIn(ids ...string) predicate.Host
- func IDLT(id string) predicate.Host
- func IDLTE(id string) predicate.Host
- func IDNEQ(id string) predicate.Host
- func IDNotIn(ids ...string) predicate.Host
- func InternalIP(v string) predicate.Host
- func InternalIPContains(v string) predicate.Host
- func InternalIPContainsFold(v string) predicate.Host
- func InternalIPEQ(v string) predicate.Host
- func InternalIPEqualFold(v string) predicate.Host
- func InternalIPGT(v string) predicate.Host
- func InternalIPGTE(v string) predicate.Host
- func InternalIPHasPrefix(v string) predicate.Host
- func InternalIPHasSuffix(v string) predicate.Host
- func InternalIPIn(vs ...string) predicate.Host
- func InternalIPIsNil() predicate.Host
- func InternalIPLT(v string) predicate.Host
- func InternalIPLTE(v string) predicate.Host
- func InternalIPNEQ(v string) predicate.Host
- func InternalIPNotIn(vs ...string) predicate.Host
- func InternalIPNotNil() predicate.Host
- func MachineID(v string) predicate.Host
- func MachineIDContains(v string) predicate.Host
- func MachineIDContainsFold(v string) predicate.Host
- func MachineIDEQ(v string) predicate.Host
- func MachineIDEqualFold(v string) predicate.Host
- func MachineIDGT(v string) predicate.Host
- func MachineIDGTE(v string) predicate.Host
- func MachineIDHasPrefix(v string) predicate.Host
- func MachineIDHasSuffix(v string) predicate.Host
- func MachineIDIn(vs ...string) predicate.Host
- func MachineIDIsNil() predicate.Host
- func MachineIDLT(v string) predicate.Host
- func MachineIDLTE(v string) predicate.Host
- func MachineIDNEQ(v string) predicate.Host
- func MachineIDNotIn(vs ...string) predicate.Host
- func MachineIDNotNil() predicate.Host
- func Memory(v int64) predicate.Host
- func MemoryEQ(v int64) predicate.Host
- func MemoryGT(v int64) predicate.Host
- func MemoryGTE(v int64) predicate.Host
- func MemoryIn(vs ...int64) predicate.Host
- func MemoryIsNil() predicate.Host
- func MemoryLT(v int64) predicate.Host
- func MemoryLTE(v int64) predicate.Host
- func MemoryNEQ(v int64) predicate.Host
- func MemoryNotIn(vs ...int64) predicate.Host
- func MemoryNotNil() predicate.Host
- func Not(p predicate.Host) predicate.Host
- func Or(predicates ...predicate.Host) predicate.Host
- func Os(v string) predicate.Host
- func OsContains(v string) predicate.Host
- func OsContainsFold(v string) predicate.Host
- func OsEQ(v string) predicate.Host
- func OsEqualFold(v string) predicate.Host
- func OsGT(v string) predicate.Host
- func OsGTE(v string) predicate.Host
- func OsHasPrefix(v string) predicate.Host
- func OsHasSuffix(v string) predicate.Host
- func OsIn(vs ...string) predicate.Host
- func OsIsNil() predicate.Host
- func OsLT(v string) predicate.Host
- func OsLTE(v string) predicate.Host
- func OsNEQ(v string) predicate.Host
- func OsNotIn(vs ...string) predicate.Host
- func OsNotNil() predicate.Host
- func Remark(v string) predicate.Host
- func RemarkContains(v string) predicate.Host
- func RemarkContainsFold(v string) predicate.Host
- func RemarkEQ(v string) predicate.Host
- func RemarkEqualFold(v string) predicate.Host
- func RemarkGT(v string) predicate.Host
- func RemarkGTE(v string) predicate.Host
- func RemarkHasPrefix(v string) predicate.Host
- func RemarkHasSuffix(v string) predicate.Host
- func RemarkIn(vs ...string) predicate.Host
- func RemarkIsNil() predicate.Host
- func RemarkLT(v string) predicate.Host
- func RemarkLTE(v string) predicate.Host
- func RemarkNEQ(v string) predicate.Host
- func RemarkNotIn(vs ...string) predicate.Host
- func RemarkNotNil() predicate.Host
- func UpdatedAt(v time.Time) predicate.Host
- func UpdatedAtEQ(v time.Time) predicate.Host
- func UpdatedAtGT(v time.Time) predicate.Host
- func UpdatedAtGTE(v time.Time) predicate.Host
- func UpdatedAtIn(vs ...time.Time) predicate.Host
- func UpdatedAtLT(v time.Time) predicate.Host
- func UpdatedAtLTE(v time.Time) predicate.Host
- func UpdatedAtNEQ(v time.Time) predicate.Host
- func UpdatedAtNotIn(vs ...time.Time) predicate.Host
- func UserID(v uuid.UUID) predicate.Host
- func UserIDEQ(v uuid.UUID) predicate.Host
- func UserIDIn(vs ...uuid.UUID) predicate.Host
- func UserIDNEQ(v uuid.UUID) predicate.Host
- func UserIDNotIn(vs ...uuid.UUID) predicate.Host
- func ValidColumn(column string) bool
- func Version(v string) predicate.Host
- func VersionContains(v string) predicate.Host
- func VersionContainsFold(v string) predicate.Host
- func VersionEQ(v string) predicate.Host
- func VersionEqualFold(v string) predicate.Host
- func VersionGT(v string) predicate.Host
- func VersionGTE(v string) predicate.Host
- func VersionHasPrefix(v string) predicate.Host
- func VersionHasSuffix(v string) predicate.Host
- func VersionIn(vs ...string) predicate.Host
- func VersionIsNil() predicate.Host
- func VersionLT(v string) predicate.Host
- func VersionLTE(v string) predicate.Host
- func VersionNEQ(v string) predicate.Host
- func VersionNotIn(vs ...string) predicate.Host
- func VersionNotNil() predicate.Host
- func Weight(v int) predicate.Host
- func WeightEQ(v int) predicate.Host
- func WeightGT(v int) predicate.Host
- func WeightGTE(v int) predicate.Host
- func WeightIn(vs ...int) predicate.Host
- func WeightLT(v int) predicate.Host
- func WeightLTE(v int) predicate.Host
- func WeightNEQ(v int) predicate.Host
- func WeightNotIn(vs ...int) predicate.Host
- type OrderOption
- func ByArch(opts ...sql.OrderTermOption) OrderOption
- func ByCores(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDisk(opts ...sql.OrderTermOption) OrderOption
- func ByExternalIP(opts ...sql.OrderTermOption) OrderOption
- func ByGitBots(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGitBotsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByHostname(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInternalIP(opts ...sql.OrderTermOption) OrderOption
- func ByMachineID(opts ...sql.OrderTermOption) OrderOption
- func ByMemory(opts ...sql.OrderTermOption) OrderOption
- func ByOs(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func ByTeamGroupHosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTeamGroupHostsCount(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 ByVersion(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 host type in the database. Label = "host" // 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" // FieldHostname holds the string denoting the hostname field in the database. FieldHostname = "hostname" // FieldArch holds the string denoting the arch field in the database. FieldArch = "arch" // FieldCores holds the string denoting the cores field in the database. FieldCores = "cores" // FieldWeight holds the string denoting the weight field in the database. FieldWeight = "weight" // FieldMemory holds the string denoting the memory field in the database. FieldMemory = "memory" // FieldDisk holds the string denoting the disk field in the database. FieldDisk = "disk" // FieldOs holds the string denoting the os field in the database. FieldOs = "os" // FieldExternalIP holds the string denoting the external_ip field in the database. FieldExternalIP = "external_ip" // FieldInternalIP holds the string denoting the internal_ip field in the database. FieldInternalIP = "internal_ip" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldMachineID holds the string denoting the machine_id field in the database. FieldMachineID = "machine_id" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // 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" // EdgeVms holds the string denoting the vms edge name in mutations. EdgeVms = "vms" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeGitBots holds the string denoting the git_bots edge name in mutations. EdgeGitBots = "git_bots" // EdgeTeamGroupHosts holds the string denoting the team_group_hosts edge name in mutations. EdgeTeamGroupHosts = "team_group_hosts" // Table holds the table name of the host in the database. Table = "hosts" // 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 = "host_id" // UserTable is the table that holds the user relation/edge. UserTable = "hosts" // 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" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "team_group_hosts" // 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" // GitBotsTable is the table that holds the git_bots relation/edge. GitBotsTable = "git_bots" // GitBotsInverseTable is the table name for the GitBot entity. // It exists in this package in order to avoid circular dependency with the "gitbot" package. GitBotsInverseTable = "git_bots" // GitBotsColumn is the table column denoting the git_bots relation/edge. GitBotsColumn = "host_id" // TeamGroupHostsTable is the table that holds the team_group_hosts relation/edge. TeamGroupHostsTable = "team_group_hosts" // TeamGroupHostsInverseTable is the table name for the TeamGroupHost entity. // It exists in this package in order to avoid circular dependency with the "teamgrouphost" package. TeamGroupHostsInverseTable = "team_group_hosts" // TeamGroupHostsColumn is the table column denoting the team_group_hosts relation/edge. TeamGroupHostsColumn = "host_id" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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, FieldHostname, FieldArch, FieldCores, FieldWeight, FieldMemory, FieldDisk, FieldOs, FieldExternalIP, FieldInternalIP, FieldVersion, FieldMachineID, FieldRemark, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for host fields.
var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"group_id", "host_id"} )
Functions ¶
func ArchContains ¶
ArchContains applies the Contains predicate on the "arch" field.
func ArchContainsFold ¶
ArchContainsFold applies the ContainsFold predicate on the "arch" field.
func ArchEqualFold ¶
ArchEqualFold applies the EqualFold predicate on the "arch" field.
func ArchHasPrefix ¶
ArchHasPrefix applies the HasPrefix predicate on the "arch" field.
func ArchHasSuffix ¶
ArchHasSuffix applies the HasSuffix predicate on the "arch" field.
func ArchNotNil ¶
ArchNotNil applies the NotNil predicate on the "arch" field.
func Cores ¶
Cores applies equality check predicate on the "cores" field. It's identical to CoresEQ.
func CoresIsNil ¶
CoresIsNil applies the IsNil predicate on the "cores" field.
func CoresNotIn ¶
CoresNotIn applies the NotIn predicate on the "cores" field.
func CoresNotNil ¶
CoresNotNil applies the NotNil predicate on the "cores" 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 DiskNotNil ¶
DiskNotNil applies the NotNil predicate on the "disk" field.
func ExternalIP ¶
ExternalIP applies equality check predicate on the "external_ip" field. It's identical to ExternalIPEQ.
func ExternalIPContains ¶
ExternalIPContains applies the Contains predicate on the "external_ip" field.
func ExternalIPContainsFold ¶
ExternalIPContainsFold applies the ContainsFold predicate on the "external_ip" field.
func ExternalIPEQ ¶
ExternalIPEQ applies the EQ predicate on the "external_ip" field.
func ExternalIPEqualFold ¶
ExternalIPEqualFold applies the EqualFold predicate on the "external_ip" field.
func ExternalIPGT ¶
ExternalIPGT applies the GT predicate on the "external_ip" field.
func ExternalIPGTE ¶
ExternalIPGTE applies the GTE predicate on the "external_ip" field.
func ExternalIPHasPrefix ¶
ExternalIPHasPrefix applies the HasPrefix predicate on the "external_ip" field.
func ExternalIPHasSuffix ¶
ExternalIPHasSuffix applies the HasSuffix predicate on the "external_ip" field.
func ExternalIPIn ¶
ExternalIPIn applies the In predicate on the "external_ip" field.
func ExternalIPIsNil ¶
ExternalIPIsNil applies the IsNil predicate on the "external_ip" field.
func ExternalIPLT ¶
ExternalIPLT applies the LT predicate on the "external_ip" field.
func ExternalIPLTE ¶
ExternalIPLTE applies the LTE predicate on the "external_ip" field.
func ExternalIPNEQ ¶
ExternalIPNEQ applies the NEQ predicate on the "external_ip" field.
func ExternalIPNotIn ¶
ExternalIPNotIn applies the NotIn predicate on the "external_ip" field.
func ExternalIPNotNil ¶
ExternalIPNotNil applies the NotNil predicate on the "external_ip" field.
func HasGitBots ¶
HasGitBots applies the HasEdge predicate on the "git_bots" edge.
func HasGitBotsWith ¶
HasGitBotsWith applies the HasEdge predicate on the "git_bots" 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 HasTeamGroupHosts ¶
HasTeamGroupHosts applies the HasEdge predicate on the "team_group_hosts" edge.
func HasTeamGroupHostsWith ¶
func HasTeamGroupHostsWith(preds ...predicate.TeamGroupHost) predicate.Host
HasTeamGroupHostsWith applies the HasEdge predicate on the "team_group_hosts" 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.Host
HasVmsWith applies the HasEdge predicate on the "vms" edge with a given conditions (other predicates).
func Hostname ¶
Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.
func HostnameContains ¶
HostnameContains applies the Contains predicate on the "hostname" field.
func HostnameContainsFold ¶
HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.
func HostnameEQ ¶
HostnameEQ applies the EQ predicate on the "hostname" field.
func HostnameEqualFold ¶
HostnameEqualFold applies the EqualFold predicate on the "hostname" field.
func HostnameGT ¶
HostnameGT applies the GT predicate on the "hostname" field.
func HostnameGTE ¶
HostnameGTE applies the GTE predicate on the "hostname" field.
func HostnameHasPrefix ¶
HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.
func HostnameHasSuffix ¶
HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.
func HostnameIn ¶
HostnameIn applies the In predicate on the "hostname" field.
func HostnameIsNil ¶
HostnameIsNil applies the IsNil predicate on the "hostname" field.
func HostnameLT ¶
HostnameLT applies the LT predicate on the "hostname" field.
func HostnameLTE ¶
HostnameLTE applies the LTE predicate on the "hostname" field.
func HostnameNEQ ¶
HostnameNEQ applies the NEQ predicate on the "hostname" field.
func HostnameNotIn ¶
HostnameNotIn applies the NotIn predicate on the "hostname" field.
func HostnameNotNil ¶
HostnameNotNil applies the NotNil predicate on the "hostname" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func InternalIP ¶
InternalIP applies equality check predicate on the "internal_ip" field. It's identical to InternalIPEQ.
func InternalIPContains ¶
InternalIPContains applies the Contains predicate on the "internal_ip" field.
func InternalIPContainsFold ¶
InternalIPContainsFold applies the ContainsFold predicate on the "internal_ip" field.
func InternalIPEQ ¶
InternalIPEQ applies the EQ predicate on the "internal_ip" field.
func InternalIPEqualFold ¶
InternalIPEqualFold applies the EqualFold predicate on the "internal_ip" field.
func InternalIPGT ¶
InternalIPGT applies the GT predicate on the "internal_ip" field.
func InternalIPGTE ¶
InternalIPGTE applies the GTE predicate on the "internal_ip" field.
func InternalIPHasPrefix ¶
InternalIPHasPrefix applies the HasPrefix predicate on the "internal_ip" field.
func InternalIPHasSuffix ¶
InternalIPHasSuffix applies the HasSuffix predicate on the "internal_ip" field.
func InternalIPIn ¶
InternalIPIn applies the In predicate on the "internal_ip" field.
func InternalIPIsNil ¶
InternalIPIsNil applies the IsNil predicate on the "internal_ip" field.
func InternalIPLT ¶
InternalIPLT applies the LT predicate on the "internal_ip" field.
func InternalIPLTE ¶
InternalIPLTE applies the LTE predicate on the "internal_ip" field.
func InternalIPNEQ ¶
InternalIPNEQ applies the NEQ predicate on the "internal_ip" field.
func InternalIPNotIn ¶
InternalIPNotIn applies the NotIn predicate on the "internal_ip" field.
func InternalIPNotNil ¶
InternalIPNotNil applies the NotNil predicate on the "internal_ip" field.
func MachineID ¶
MachineID applies equality check predicate on the "machine_id" field. It's identical to MachineIDEQ.
func MachineIDContains ¶
MachineIDContains applies the Contains predicate on the "machine_id" field.
func MachineIDContainsFold ¶
MachineIDContainsFold applies the ContainsFold predicate on the "machine_id" field.
func MachineIDEQ ¶
MachineIDEQ applies the EQ predicate on the "machine_id" field.
func MachineIDEqualFold ¶
MachineIDEqualFold applies the EqualFold predicate on the "machine_id" field.
func MachineIDGT ¶
MachineIDGT applies the GT predicate on the "machine_id" field.
func MachineIDGTE ¶
MachineIDGTE applies the GTE predicate on the "machine_id" field.
func MachineIDHasPrefix ¶
MachineIDHasPrefix applies the HasPrefix predicate on the "machine_id" field.
func MachineIDHasSuffix ¶
MachineIDHasSuffix applies the HasSuffix predicate on the "machine_id" field.
func MachineIDIn ¶
MachineIDIn applies the In predicate on the "machine_id" field.
func MachineIDIsNil ¶
MachineIDIsNil applies the IsNil predicate on the "machine_id" field.
func MachineIDLT ¶
MachineIDLT applies the LT predicate on the "machine_id" field.
func MachineIDLTE ¶
MachineIDLTE applies the LTE predicate on the "machine_id" field.
func MachineIDNEQ ¶
MachineIDNEQ applies the NEQ predicate on the "machine_id" field.
func MachineIDNotIn ¶
MachineIDNotIn applies the NotIn predicate on the "machine_id" field.
func MachineIDNotNil ¶
MachineIDNotNil applies the NotNil predicate on the "machine_id" field.
func Memory ¶
Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.
func MemoryIsNil ¶
MemoryIsNil applies the IsNil predicate on the "memory" field.
func MemoryNotIn ¶
MemoryNotIn applies the NotIn predicate on the "memory" field.
func MemoryNotNil ¶
MemoryNotNil applies the NotNil predicate on the "memory" field.
func OsContains ¶
OsContains applies the Contains predicate on the "os" field.
func OsContainsFold ¶
OsContainsFold applies the ContainsFold predicate on the "os" field.
func OsEqualFold ¶
OsEqualFold applies the EqualFold predicate on the "os" field.
func OsHasPrefix ¶
OsHasPrefix applies the HasPrefix predicate on the "os" field.
func OsHasSuffix ¶
OsHasSuffix applies the HasSuffix predicate on the "os" 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 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 Version ¶
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEqualFold ¶
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGTE ¶
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIsNil ¶
VersionIsNil applies the IsNil predicate on the "version" field.
func VersionLTE ¶
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotNil ¶
VersionNotNil applies the NotNil predicate on the "version" field.
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 Host queries.
func ByArch ¶
func ByArch(opts ...sql.OrderTermOption) OrderOption
ByArch orders the results by the arch field.
func ByCores ¶
func ByCores(opts ...sql.OrderTermOption) OrderOption
ByCores orders the results by the cores 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 ByDisk ¶
func ByDisk(opts ...sql.OrderTermOption) OrderOption
ByDisk orders the results by the disk field.
func ByExternalIP ¶
func ByExternalIP(opts ...sql.OrderTermOption) OrderOption
ByExternalIP orders the results by the external_ip field.
func ByGitBots ¶
func ByGitBots(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGitBots orders the results by git_bots terms.
func ByGitBotsCount ¶
func ByGitBotsCount(opts ...sql.OrderTermOption) OrderOption
ByGitBotsCount orders the results by git_bots count.
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 ByHostname ¶
func ByHostname(opts ...sql.OrderTermOption) OrderOption
ByHostname orders the results by the hostname field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInternalIP ¶
func ByInternalIP(opts ...sql.OrderTermOption) OrderOption
ByInternalIP orders the results by the internal_ip field.
func ByMachineID ¶
func ByMachineID(opts ...sql.OrderTermOption) OrderOption
ByMachineID orders the results by the machine_id field.
func ByMemory ¶
func ByMemory(opts ...sql.OrderTermOption) OrderOption
ByMemory orders the results by the memory field.
func ByOs ¶
func ByOs(opts ...sql.OrderTermOption) OrderOption
ByOs orders the results by the os field.
func ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func ByTeamGroupHosts ¶
func ByTeamGroupHosts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTeamGroupHosts orders the results by team_group_hosts terms.
func ByTeamGroupHostsCount ¶
func ByTeamGroupHostsCount(opts ...sql.OrderTermOption) OrderOption
ByTeamGroupHostsCount orders the results by team_group_hosts count.
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 ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version 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.