host

package
v0.0.0-...-481d40d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for host fields.

View Source
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 And

func And(predicates ...predicate.Host) predicate.Host

And groups predicates with the AND operator between them.

func Arch

func Arch(v string) predicate.Host

Arch applies equality check predicate on the "arch" field. It's identical to ArchEQ.

func ArchContains

func ArchContains(v string) predicate.Host

ArchContains applies the Contains predicate on the "arch" field.

func ArchContainsFold

func ArchContainsFold(v string) predicate.Host

ArchContainsFold applies the ContainsFold predicate on the "arch" field.

func ArchEQ

func ArchEQ(v string) predicate.Host

ArchEQ applies the EQ predicate on the "arch" field.

func ArchEqualFold

func ArchEqualFold(v string) predicate.Host

ArchEqualFold applies the EqualFold predicate on the "arch" field.

func ArchGT

func ArchGT(v string) predicate.Host

ArchGT applies the GT predicate on the "arch" field.

func ArchGTE

func ArchGTE(v string) predicate.Host

ArchGTE applies the GTE predicate on the "arch" field.

func ArchHasPrefix

func ArchHasPrefix(v string) predicate.Host

ArchHasPrefix applies the HasPrefix predicate on the "arch" field.

func ArchHasSuffix

func ArchHasSuffix(v string) predicate.Host

ArchHasSuffix applies the HasSuffix predicate on the "arch" field.

func ArchIn

func ArchIn(vs ...string) predicate.Host

ArchIn applies the In predicate on the "arch" field.

func ArchIsNil

func ArchIsNil() predicate.Host

ArchIsNil applies the IsNil predicate on the "arch" field.

func ArchLT

func ArchLT(v string) predicate.Host

ArchLT applies the LT predicate on the "arch" field.

func ArchLTE

func ArchLTE(v string) predicate.Host

ArchLTE applies the LTE predicate on the "arch" field.

func ArchNEQ

func ArchNEQ(v string) predicate.Host

ArchNEQ applies the NEQ predicate on the "arch" field.

func ArchNotIn

func ArchNotIn(vs ...string) predicate.Host

ArchNotIn applies the NotIn predicate on the "arch" field.

func ArchNotNil

func ArchNotNil() predicate.Host

ArchNotNil applies the NotNil predicate on the "arch" field.

func Cores

func Cores(v int) predicate.Host

Cores applies equality check predicate on the "cores" field. It's identical to CoresEQ.

func CoresEQ

func CoresEQ(v int) predicate.Host

CoresEQ applies the EQ predicate on the "cores" field.

func CoresGT

func CoresGT(v int) predicate.Host

CoresGT applies the GT predicate on the "cores" field.

func CoresGTE

func CoresGTE(v int) predicate.Host

CoresGTE applies the GTE predicate on the "cores" field.

func CoresIn

func CoresIn(vs ...int) predicate.Host

CoresIn applies the In predicate on the "cores" field.

func CoresIsNil

func CoresIsNil() predicate.Host

CoresIsNil applies the IsNil predicate on the "cores" field.

func CoresLT

func CoresLT(v int) predicate.Host

CoresLT applies the LT predicate on the "cores" field.

func CoresLTE

func CoresLTE(v int) predicate.Host

CoresLTE applies the LTE predicate on the "cores" field.

func CoresNEQ

func CoresNEQ(v int) predicate.Host

CoresNEQ applies the NEQ predicate on the "cores" field.

func CoresNotIn

func CoresNotIn(vs ...int) predicate.Host

CoresNotIn applies the NotIn predicate on the "cores" field.

func CoresNotNil

func CoresNotNil() predicate.Host

CoresNotNil applies the NotNil predicate on the "cores" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Host

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Host

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Host

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Host

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Host

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Host

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Host

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Host

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Host

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Host

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Host

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Host

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Host

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Host

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Host

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Host

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

func Disk

func Disk(v int64) predicate.Host

Disk applies equality check predicate on the "disk" field. It's identical to DiskEQ.

func DiskEQ

func DiskEQ(v int64) predicate.Host

DiskEQ applies the EQ predicate on the "disk" field.

func DiskGT

func DiskGT(v int64) predicate.Host

DiskGT applies the GT predicate on the "disk" field.

func DiskGTE

func DiskGTE(v int64) predicate.Host

DiskGTE applies the GTE predicate on the "disk" field.

func DiskIn

func DiskIn(vs ...int64) predicate.Host

DiskIn applies the In predicate on the "disk" field.

func DiskIsNil

func DiskIsNil() predicate.Host

DiskIsNil applies the IsNil predicate on the "disk" field.

func DiskLT

func DiskLT(v int64) predicate.Host

DiskLT applies the LT predicate on the "disk" field.

func DiskLTE

func DiskLTE(v int64) predicate.Host

DiskLTE applies the LTE predicate on the "disk" field.

func DiskNEQ

func DiskNEQ(v int64) predicate.Host

DiskNEQ applies the NEQ predicate on the "disk" field.

func DiskNotIn

func DiskNotIn(vs ...int64) predicate.Host

DiskNotIn applies the NotIn predicate on the "disk" field.

func DiskNotNil

func DiskNotNil() predicate.Host

DiskNotNil applies the NotNil predicate on the "disk" field.

func ExternalIP

func ExternalIP(v string) predicate.Host

ExternalIP applies equality check predicate on the "external_ip" field. It's identical to ExternalIPEQ.

func ExternalIPContains

func ExternalIPContains(v string) predicate.Host

ExternalIPContains applies the Contains predicate on the "external_ip" field.

func ExternalIPContainsFold

func ExternalIPContainsFold(v string) predicate.Host

ExternalIPContainsFold applies the ContainsFold predicate on the "external_ip" field.

func ExternalIPEQ

func ExternalIPEQ(v string) predicate.Host

ExternalIPEQ applies the EQ predicate on the "external_ip" field.

func ExternalIPEqualFold

func ExternalIPEqualFold(v string) predicate.Host

ExternalIPEqualFold applies the EqualFold predicate on the "external_ip" field.

func ExternalIPGT

func ExternalIPGT(v string) predicate.Host

ExternalIPGT applies the GT predicate on the "external_ip" field.

func ExternalIPGTE

func ExternalIPGTE(v string) predicate.Host

ExternalIPGTE applies the GTE predicate on the "external_ip" field.

func ExternalIPHasPrefix

func ExternalIPHasPrefix(v string) predicate.Host

ExternalIPHasPrefix applies the HasPrefix predicate on the "external_ip" field.

func ExternalIPHasSuffix

func ExternalIPHasSuffix(v string) predicate.Host

ExternalIPHasSuffix applies the HasSuffix predicate on the "external_ip" field.

func ExternalIPIn

func ExternalIPIn(vs ...string) predicate.Host

ExternalIPIn applies the In predicate on the "external_ip" field.

func ExternalIPIsNil

func ExternalIPIsNil() predicate.Host

ExternalIPIsNil applies the IsNil predicate on the "external_ip" field.

func ExternalIPLT

func ExternalIPLT(v string) predicate.Host

ExternalIPLT applies the LT predicate on the "external_ip" field.

func ExternalIPLTE

func ExternalIPLTE(v string) predicate.Host

ExternalIPLTE applies the LTE predicate on the "external_ip" field.

func ExternalIPNEQ

func ExternalIPNEQ(v string) predicate.Host

ExternalIPNEQ applies the NEQ predicate on the "external_ip" field.

func ExternalIPNotIn

func ExternalIPNotIn(vs ...string) predicate.Host

ExternalIPNotIn applies the NotIn predicate on the "external_ip" field.

func ExternalIPNotNil

func ExternalIPNotNil() predicate.Host

ExternalIPNotNil applies the NotNil predicate on the "external_ip" field.

func HasGitBots

func HasGitBots() predicate.Host

HasGitBots applies the HasEdge predicate on the "git_bots" edge.

func HasGitBotsWith

func HasGitBotsWith(preds ...predicate.GitBot) predicate.Host

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

func HasGroups

func HasGroups() predicate.Host

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.TeamGroup) predicate.Host

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

func HasTeamGroupHosts

func HasTeamGroupHosts() predicate.Host

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 HasUser

func HasUser() predicate.Host

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.Host

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

func HasVms

func HasVms() predicate.Host

HasVms applies the HasEdge predicate on the "vms" edge.

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

func Hostname(v string) predicate.Host

Hostname applies equality check predicate on the "hostname" field. It's identical to HostnameEQ.

func HostnameContains

func HostnameContains(v string) predicate.Host

HostnameContains applies the Contains predicate on the "hostname" field.

func HostnameContainsFold

func HostnameContainsFold(v string) predicate.Host

HostnameContainsFold applies the ContainsFold predicate on the "hostname" field.

func HostnameEQ

func HostnameEQ(v string) predicate.Host

HostnameEQ applies the EQ predicate on the "hostname" field.

func HostnameEqualFold

func HostnameEqualFold(v string) predicate.Host

HostnameEqualFold applies the EqualFold predicate on the "hostname" field.

func HostnameGT

func HostnameGT(v string) predicate.Host

HostnameGT applies the GT predicate on the "hostname" field.

func HostnameGTE

func HostnameGTE(v string) predicate.Host

HostnameGTE applies the GTE predicate on the "hostname" field.

func HostnameHasPrefix

func HostnameHasPrefix(v string) predicate.Host

HostnameHasPrefix applies the HasPrefix predicate on the "hostname" field.

func HostnameHasSuffix

func HostnameHasSuffix(v string) predicate.Host

HostnameHasSuffix applies the HasSuffix predicate on the "hostname" field.

func HostnameIn

func HostnameIn(vs ...string) predicate.Host

HostnameIn applies the In predicate on the "hostname" field.

func HostnameIsNil

func HostnameIsNil() predicate.Host

HostnameIsNil applies the IsNil predicate on the "hostname" field.

func HostnameLT

func HostnameLT(v string) predicate.Host

HostnameLT applies the LT predicate on the "hostname" field.

func HostnameLTE

func HostnameLTE(v string) predicate.Host

HostnameLTE applies the LTE predicate on the "hostname" field.

func HostnameNEQ

func HostnameNEQ(v string) predicate.Host

HostnameNEQ applies the NEQ predicate on the "hostname" field.

func HostnameNotIn

func HostnameNotIn(vs ...string) predicate.Host

HostnameNotIn applies the NotIn predicate on the "hostname" field.

func HostnameNotNil

func HostnameNotNil() predicate.Host

HostnameNotNil applies the NotNil predicate on the "hostname" field.

func ID

func ID(id string) predicate.Host

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Host

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Host

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Host

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Host

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Host

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Host

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Host

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Host

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func InternalIP

func InternalIP(v string) predicate.Host

InternalIP applies equality check predicate on the "internal_ip" field. It's identical to InternalIPEQ.

func InternalIPContains

func InternalIPContains(v string) predicate.Host

InternalIPContains applies the Contains predicate on the "internal_ip" field.

func InternalIPContainsFold

func InternalIPContainsFold(v string) predicate.Host

InternalIPContainsFold applies the ContainsFold predicate on the "internal_ip" field.

func InternalIPEQ

func InternalIPEQ(v string) predicate.Host

InternalIPEQ applies the EQ predicate on the "internal_ip" field.

func InternalIPEqualFold

func InternalIPEqualFold(v string) predicate.Host

InternalIPEqualFold applies the EqualFold predicate on the "internal_ip" field.

func InternalIPGT

func InternalIPGT(v string) predicate.Host

InternalIPGT applies the GT predicate on the "internal_ip" field.

func InternalIPGTE

func InternalIPGTE(v string) predicate.Host

InternalIPGTE applies the GTE predicate on the "internal_ip" field.

func InternalIPHasPrefix

func InternalIPHasPrefix(v string) predicate.Host

InternalIPHasPrefix applies the HasPrefix predicate on the "internal_ip" field.

func InternalIPHasSuffix

func InternalIPHasSuffix(v string) predicate.Host

InternalIPHasSuffix applies the HasSuffix predicate on the "internal_ip" field.

func InternalIPIn

func InternalIPIn(vs ...string) predicate.Host

InternalIPIn applies the In predicate on the "internal_ip" field.

func InternalIPIsNil

func InternalIPIsNil() predicate.Host

InternalIPIsNil applies the IsNil predicate on the "internal_ip" field.

func InternalIPLT

func InternalIPLT(v string) predicate.Host

InternalIPLT applies the LT predicate on the "internal_ip" field.

func InternalIPLTE

func InternalIPLTE(v string) predicate.Host

InternalIPLTE applies the LTE predicate on the "internal_ip" field.

func InternalIPNEQ

func InternalIPNEQ(v string) predicate.Host

InternalIPNEQ applies the NEQ predicate on the "internal_ip" field.

func InternalIPNotIn

func InternalIPNotIn(vs ...string) predicate.Host

InternalIPNotIn applies the NotIn predicate on the "internal_ip" field.

func InternalIPNotNil

func InternalIPNotNil() predicate.Host

InternalIPNotNil applies the NotNil predicate on the "internal_ip" field.

func MachineID

func MachineID(v string) predicate.Host

MachineID applies equality check predicate on the "machine_id" field. It's identical to MachineIDEQ.

func MachineIDContains

func MachineIDContains(v string) predicate.Host

MachineIDContains applies the Contains predicate on the "machine_id" field.

func MachineIDContainsFold

func MachineIDContainsFold(v string) predicate.Host

MachineIDContainsFold applies the ContainsFold predicate on the "machine_id" field.

func MachineIDEQ

func MachineIDEQ(v string) predicate.Host

MachineIDEQ applies the EQ predicate on the "machine_id" field.

func MachineIDEqualFold

func MachineIDEqualFold(v string) predicate.Host

MachineIDEqualFold applies the EqualFold predicate on the "machine_id" field.

func MachineIDGT

func MachineIDGT(v string) predicate.Host

MachineIDGT applies the GT predicate on the "machine_id" field.

func MachineIDGTE

func MachineIDGTE(v string) predicate.Host

MachineIDGTE applies the GTE predicate on the "machine_id" field.

func MachineIDHasPrefix

func MachineIDHasPrefix(v string) predicate.Host

MachineIDHasPrefix applies the HasPrefix predicate on the "machine_id" field.

func MachineIDHasSuffix

func MachineIDHasSuffix(v string) predicate.Host

MachineIDHasSuffix applies the HasSuffix predicate on the "machine_id" field.

func MachineIDIn

func MachineIDIn(vs ...string) predicate.Host

MachineIDIn applies the In predicate on the "machine_id" field.

func MachineIDIsNil

func MachineIDIsNil() predicate.Host

MachineIDIsNil applies the IsNil predicate on the "machine_id" field.

func MachineIDLT

func MachineIDLT(v string) predicate.Host

MachineIDLT applies the LT predicate on the "machine_id" field.

func MachineIDLTE

func MachineIDLTE(v string) predicate.Host

MachineIDLTE applies the LTE predicate on the "machine_id" field.

func MachineIDNEQ

func MachineIDNEQ(v string) predicate.Host

MachineIDNEQ applies the NEQ predicate on the "machine_id" field.

func MachineIDNotIn

func MachineIDNotIn(vs ...string) predicate.Host

MachineIDNotIn applies the NotIn predicate on the "machine_id" field.

func MachineIDNotNil

func MachineIDNotNil() predicate.Host

MachineIDNotNil applies the NotNil predicate on the "machine_id" field.

func Memory

func Memory(v int64) predicate.Host

Memory applies equality check predicate on the "memory" field. It's identical to MemoryEQ.

func MemoryEQ

func MemoryEQ(v int64) predicate.Host

MemoryEQ applies the EQ predicate on the "memory" field.

func MemoryGT

func MemoryGT(v int64) predicate.Host

MemoryGT applies the GT predicate on the "memory" field.

func MemoryGTE

func MemoryGTE(v int64) predicate.Host

MemoryGTE applies the GTE predicate on the "memory" field.

func MemoryIn

func MemoryIn(vs ...int64) predicate.Host

MemoryIn applies the In predicate on the "memory" field.

func MemoryIsNil

func MemoryIsNil() predicate.Host

MemoryIsNil applies the IsNil predicate on the "memory" field.

func MemoryLT

func MemoryLT(v int64) predicate.Host

MemoryLT applies the LT predicate on the "memory" field.

func MemoryLTE

func MemoryLTE(v int64) predicate.Host

MemoryLTE applies the LTE predicate on the "memory" field.

func MemoryNEQ

func MemoryNEQ(v int64) predicate.Host

MemoryNEQ applies the NEQ predicate on the "memory" field.

func MemoryNotIn

func MemoryNotIn(vs ...int64) predicate.Host

MemoryNotIn applies the NotIn predicate on the "memory" field.

func MemoryNotNil

func MemoryNotNil() predicate.Host

MemoryNotNil applies the NotNil predicate on the "memory" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Host) predicate.Host

Or groups predicates with the OR operator between them.

func Os

func Os(v string) predicate.Host

Os applies equality check predicate on the "os" field. It's identical to OsEQ.

func OsContains

func OsContains(v string) predicate.Host

OsContains applies the Contains predicate on the "os" field.

func OsContainsFold

func OsContainsFold(v string) predicate.Host

OsContainsFold applies the ContainsFold predicate on the "os" field.

func OsEQ

func OsEQ(v string) predicate.Host

OsEQ applies the EQ predicate on the "os" field.

func OsEqualFold

func OsEqualFold(v string) predicate.Host

OsEqualFold applies the EqualFold predicate on the "os" field.

func OsGT

func OsGT(v string) predicate.Host

OsGT applies the GT predicate on the "os" field.

func OsGTE

func OsGTE(v string) predicate.Host

OsGTE applies the GTE predicate on the "os" field.

func OsHasPrefix

func OsHasPrefix(v string) predicate.Host

OsHasPrefix applies the HasPrefix predicate on the "os" field.

func OsHasSuffix

func OsHasSuffix(v string) predicate.Host

OsHasSuffix applies the HasSuffix predicate on the "os" field.

func OsIn

func OsIn(vs ...string) predicate.Host

OsIn applies the In predicate on the "os" field.

func OsIsNil

func OsIsNil() predicate.Host

OsIsNil applies the IsNil predicate on the "os" field.

func OsLT

func OsLT(v string) predicate.Host

OsLT applies the LT predicate on the "os" field.

func OsLTE

func OsLTE(v string) predicate.Host

OsLTE applies the LTE predicate on the "os" field.

func OsNEQ

func OsNEQ(v string) predicate.Host

OsNEQ applies the NEQ predicate on the "os" field.

func OsNotIn

func OsNotIn(vs ...string) predicate.Host

OsNotIn applies the NotIn predicate on the "os" field.

func OsNotNil

func OsNotNil() predicate.Host

OsNotNil applies the NotNil predicate on the "os" field.

func Remark

func Remark(v string) predicate.Host

Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.

func RemarkContains

func RemarkContains(v string) predicate.Host

RemarkContains applies the Contains predicate on the "remark" field.

func RemarkContainsFold

func RemarkContainsFold(v string) predicate.Host

RemarkContainsFold applies the ContainsFold predicate on the "remark" field.

func RemarkEQ

func RemarkEQ(v string) predicate.Host

RemarkEQ applies the EQ predicate on the "remark" field.

func RemarkEqualFold

func RemarkEqualFold(v string) predicate.Host

RemarkEqualFold applies the EqualFold predicate on the "remark" field.

func RemarkGT

func RemarkGT(v string) predicate.Host

RemarkGT applies the GT predicate on the "remark" field.

func RemarkGTE

func RemarkGTE(v string) predicate.Host

RemarkGTE applies the GTE predicate on the "remark" field.

func RemarkHasPrefix

func RemarkHasPrefix(v string) predicate.Host

RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.

func RemarkHasSuffix

func RemarkHasSuffix(v string) predicate.Host

RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.

func RemarkIn

func RemarkIn(vs ...string) predicate.Host

RemarkIn applies the In predicate on the "remark" field.

func RemarkIsNil

func RemarkIsNil() predicate.Host

RemarkIsNil applies the IsNil predicate on the "remark" field.

func RemarkLT

func RemarkLT(v string) predicate.Host

RemarkLT applies the LT predicate on the "remark" field.

func RemarkLTE

func RemarkLTE(v string) predicate.Host

RemarkLTE applies the LTE predicate on the "remark" field.

func RemarkNEQ

func RemarkNEQ(v string) predicate.Host

RemarkNEQ applies the NEQ predicate on the "remark" field.

func RemarkNotIn

func RemarkNotIn(vs ...string) predicate.Host

RemarkNotIn applies the NotIn predicate on the "remark" field.

func RemarkNotNil

func RemarkNotNil() predicate.Host

RemarkNotNil applies the NotNil predicate on the "remark" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Host

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Host

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Host

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Host

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

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Host

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Host

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Host

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Host

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

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Host

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

func UserID

func UserID(v uuid.UUID) predicate.Host

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

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.Host

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

func UserIDIn

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

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

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.Host

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

func UserIDNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

func Version

func Version(v string) predicate.Host

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

func VersionContains

func VersionContains(v string) predicate.Host

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

func VersionContainsFold

func VersionContainsFold(v string) predicate.Host

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

func VersionEQ

func VersionEQ(v string) predicate.Host

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

func VersionEqualFold

func VersionEqualFold(v string) predicate.Host

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

func VersionGT

func VersionGT(v string) predicate.Host

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

func VersionGTE

func VersionGTE(v string) predicate.Host

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

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Host

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

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Host

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

func VersionIn

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

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

func VersionIsNil

func VersionIsNil() predicate.Host

VersionIsNil applies the IsNil predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Host

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

func VersionLTE

func VersionLTE(v string) predicate.Host

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

func VersionNEQ

func VersionNEQ(v string) predicate.Host

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

func VersionNotIn

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

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

func VersionNotNil

func VersionNotNil() predicate.Host

VersionNotNil applies the NotNil predicate on the "version" field.

func Weight

func Weight(v int) predicate.Host

Weight applies equality check predicate on the "weight" field. It's identical to WeightEQ.

func WeightEQ

func WeightEQ(v int) predicate.Host

WeightEQ applies the EQ predicate on the "weight" field.

func WeightGT

func WeightGT(v int) predicate.Host

WeightGT applies the GT predicate on the "weight" field.

func WeightGTE

func WeightGTE(v int) predicate.Host

WeightGTE applies the GTE predicate on the "weight" field.

func WeightIn

func WeightIn(vs ...int) predicate.Host

WeightIn applies the In predicate on the "weight" field.

func WeightLT

func WeightLT(v int) predicate.Host

WeightLT applies the LT predicate on the "weight" field.

func WeightLTE

func WeightLTE(v int) predicate.Host

WeightLTE applies the LTE predicate on the "weight" field.

func WeightNEQ

func WeightNEQ(v int) predicate.Host

WeightNEQ applies the NEQ predicate on the "weight" field.

func WeightNotIn

func WeightNotIn(vs ...int) predicate.Host

WeightNotIn applies the NotIn predicate on the "weight" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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