machine

package
v1.6.4-rc4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the machine type in the database.
	Label = "machine"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldLastPush holds the string denoting the last_push field in the database.
	FieldLastPush = "last_push"
	// FieldLastHeartbeat holds the string denoting the last_heartbeat field in the database.
	FieldLastHeartbeat = "last_heartbeat"
	// FieldMachineId holds the string denoting the machineid field in the database.
	FieldMachineId = "machine_id"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldIpAddress holds the string denoting the ipaddress field in the database.
	FieldIpAddress = "ip_address"
	// FieldScenarios holds the string denoting the scenarios field in the database.
	FieldScenarios = "scenarios"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldIsValidated holds the string denoting the isvalidated field in the database.
	FieldIsValidated = "is_validated"
	// FieldAuthType holds the string denoting the auth_type field in the database.
	FieldAuthType = "auth_type"
	// FieldOsname holds the string denoting the osname field in the database.
	FieldOsname = "osname"
	// FieldOsversion holds the string denoting the osversion field in the database.
	FieldOsversion = "osversion"
	// FieldFeatureflags holds the string denoting the featureflags field in the database.
	FieldFeatureflags = "featureflags"
	// FieldHubstate holds the string denoting the hubstate field in the database.
	FieldHubstate = "hubstate"
	// FieldDatasources holds the string denoting the datasources field in the database.
	FieldDatasources = "datasources"
	// EdgeAlerts holds the string denoting the alerts edge name in mutations.
	EdgeAlerts = "alerts"
	// Table holds the table name of the machine in the database.
	Table = "machines"
	// AlertsTable is the table that holds the alerts relation/edge.
	AlertsTable = "alerts"
	// AlertsInverseTable is the table name for the Alert entity.
	// It exists in this package in order to avoid circular dependency with the "alert" package.
	AlertsInverseTable = "alerts"
	// AlertsColumn is the table column denoting the alerts relation/edge.
	AlertsColumn = "machine_alerts"
)

Variables

View Source
var (
	// 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
	// DefaultLastPush holds the default value on creation for the "last_push" field.
	DefaultLastPush func() time.Time
	// ScenariosValidator is a validator for the "scenarios" field. It is called by the builders before save.
	ScenariosValidator func(string) error
	// DefaultIsValidated holds the default value on creation for the "isValidated" field.
	DefaultIsValidated bool
	// DefaultAuthType holds the default value on creation for the "auth_type" field.
	DefaultAuthType string
)

Columns holds all SQL columns for machine fields.

Functions

func And

func And(predicates ...predicate.Machine) predicate.Machine

And groups predicates with the AND operator between them.

func AuthType added in v1.4.0

func AuthType(v string) predicate.Machine

AuthType applies equality check predicate on the "auth_type" field. It's identical to AuthTypeEQ.

func AuthTypeContains added in v1.4.0

func AuthTypeContains(v string) predicate.Machine

AuthTypeContains applies the Contains predicate on the "auth_type" field.

func AuthTypeContainsFold added in v1.4.0

func AuthTypeContainsFold(v string) predicate.Machine

AuthTypeContainsFold applies the ContainsFold predicate on the "auth_type" field.

func AuthTypeEQ added in v1.4.0

func AuthTypeEQ(v string) predicate.Machine

AuthTypeEQ applies the EQ predicate on the "auth_type" field.

func AuthTypeEqualFold added in v1.4.0

func AuthTypeEqualFold(v string) predicate.Machine

AuthTypeEqualFold applies the EqualFold predicate on the "auth_type" field.

func AuthTypeGT added in v1.4.0

func AuthTypeGT(v string) predicate.Machine

AuthTypeGT applies the GT predicate on the "auth_type" field.

func AuthTypeGTE added in v1.4.0

func AuthTypeGTE(v string) predicate.Machine

AuthTypeGTE applies the GTE predicate on the "auth_type" field.

func AuthTypeHasPrefix added in v1.4.0

func AuthTypeHasPrefix(v string) predicate.Machine

AuthTypeHasPrefix applies the HasPrefix predicate on the "auth_type" field.

func AuthTypeHasSuffix added in v1.4.0

func AuthTypeHasSuffix(v string) predicate.Machine

AuthTypeHasSuffix applies the HasSuffix predicate on the "auth_type" field.

func AuthTypeIn added in v1.4.0

func AuthTypeIn(vs ...string) predicate.Machine

AuthTypeIn applies the In predicate on the "auth_type" field.

func AuthTypeLT added in v1.4.0

func AuthTypeLT(v string) predicate.Machine

AuthTypeLT applies the LT predicate on the "auth_type" field.

func AuthTypeLTE added in v1.4.0

func AuthTypeLTE(v string) predicate.Machine

AuthTypeLTE applies the LTE predicate on the "auth_type" field.

func AuthTypeNEQ added in v1.4.0

func AuthTypeNEQ(v string) predicate.Machine

AuthTypeNEQ applies the NEQ predicate on the "auth_type" field.

func AuthTypeNotIn added in v1.4.0

func AuthTypeNotIn(vs ...string) predicate.Machine

AuthTypeNotIn applies the NotIn predicate on the "auth_type" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.Machine

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Machine

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Machine

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Machine

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Machine

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Machine

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Machine

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

func CreatedAtNotIn

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

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

func DatasourcesIsNil added in v1.6.3

func DatasourcesIsNil() predicate.Machine

DatasourcesIsNil applies the IsNil predicate on the "datasources" field.

func DatasourcesNotNil added in v1.6.3

func DatasourcesNotNil() predicate.Machine

DatasourcesNotNil applies the NotNil predicate on the "datasources" field.

func Featureflags added in v1.6.3

func Featureflags(v string) predicate.Machine

Featureflags applies equality check predicate on the "featureflags" field. It's identical to FeatureflagsEQ.

func FeatureflagsContains added in v1.6.3

func FeatureflagsContains(v string) predicate.Machine

FeatureflagsContains applies the Contains predicate on the "featureflags" field.

func FeatureflagsContainsFold added in v1.6.3

func FeatureflagsContainsFold(v string) predicate.Machine

FeatureflagsContainsFold applies the ContainsFold predicate on the "featureflags" field.

func FeatureflagsEQ added in v1.6.3

func FeatureflagsEQ(v string) predicate.Machine

FeatureflagsEQ applies the EQ predicate on the "featureflags" field.

func FeatureflagsEqualFold added in v1.6.3

func FeatureflagsEqualFold(v string) predicate.Machine

FeatureflagsEqualFold applies the EqualFold predicate on the "featureflags" field.

func FeatureflagsGT added in v1.6.3

func FeatureflagsGT(v string) predicate.Machine

FeatureflagsGT applies the GT predicate on the "featureflags" field.

func FeatureflagsGTE added in v1.6.3

func FeatureflagsGTE(v string) predicate.Machine

FeatureflagsGTE applies the GTE predicate on the "featureflags" field.

func FeatureflagsHasPrefix added in v1.6.3

func FeatureflagsHasPrefix(v string) predicate.Machine

FeatureflagsHasPrefix applies the HasPrefix predicate on the "featureflags" field.

func FeatureflagsHasSuffix added in v1.6.3

func FeatureflagsHasSuffix(v string) predicate.Machine

FeatureflagsHasSuffix applies the HasSuffix predicate on the "featureflags" field.

func FeatureflagsIn added in v1.6.3

func FeatureflagsIn(vs ...string) predicate.Machine

FeatureflagsIn applies the In predicate on the "featureflags" field.

func FeatureflagsIsNil added in v1.6.3

func FeatureflagsIsNil() predicate.Machine

FeatureflagsIsNil applies the IsNil predicate on the "featureflags" field.

func FeatureflagsLT added in v1.6.3

func FeatureflagsLT(v string) predicate.Machine

FeatureflagsLT applies the LT predicate on the "featureflags" field.

func FeatureflagsLTE added in v1.6.3

func FeatureflagsLTE(v string) predicate.Machine

FeatureflagsLTE applies the LTE predicate on the "featureflags" field.

func FeatureflagsNEQ added in v1.6.3

func FeatureflagsNEQ(v string) predicate.Machine

FeatureflagsNEQ applies the NEQ predicate on the "featureflags" field.

func FeatureflagsNotIn added in v1.6.3

func FeatureflagsNotIn(vs ...string) predicate.Machine

FeatureflagsNotIn applies the NotIn predicate on the "featureflags" field.

func FeatureflagsNotNil added in v1.6.3

func FeatureflagsNotNil() predicate.Machine

FeatureflagsNotNil applies the NotNil predicate on the "featureflags" field.

func HasAlerts

func HasAlerts() predicate.Machine

HasAlerts applies the HasEdge predicate on the "alerts" edge.

func HasAlertsWith

func HasAlertsWith(preds ...predicate.Alert) predicate.Machine

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

func HubstateIsNil added in v1.6.3

func HubstateIsNil() predicate.Machine

HubstateIsNil applies the IsNil predicate on the "hubstate" field.

func HubstateNotNil added in v1.6.3

func HubstateNotNil() predicate.Machine

HubstateNotNil applies the NotNil predicate on the "hubstate" field.

func ID

func ID(id int) predicate.Machine

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Machine

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Machine

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Machine

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Machine

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Machine

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Machine

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Machine

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Machine

IDNotIn applies the NotIn predicate on the ID field.

func IpAddress

func IpAddress(v string) predicate.Machine

IpAddress applies equality check predicate on the "ipAddress" field. It's identical to IpAddressEQ.

func IpAddressContains

func IpAddressContains(v string) predicate.Machine

IpAddressContains applies the Contains predicate on the "ipAddress" field.

func IpAddressContainsFold

func IpAddressContainsFold(v string) predicate.Machine

IpAddressContainsFold applies the ContainsFold predicate on the "ipAddress" field.

func IpAddressEQ

func IpAddressEQ(v string) predicate.Machine

IpAddressEQ applies the EQ predicate on the "ipAddress" field.

func IpAddressEqualFold

func IpAddressEqualFold(v string) predicate.Machine

IpAddressEqualFold applies the EqualFold predicate on the "ipAddress" field.

func IpAddressGT

func IpAddressGT(v string) predicate.Machine

IpAddressGT applies the GT predicate on the "ipAddress" field.

func IpAddressGTE

func IpAddressGTE(v string) predicate.Machine

IpAddressGTE applies the GTE predicate on the "ipAddress" field.

func IpAddressHasPrefix

func IpAddressHasPrefix(v string) predicate.Machine

IpAddressHasPrefix applies the HasPrefix predicate on the "ipAddress" field.

func IpAddressHasSuffix

func IpAddressHasSuffix(v string) predicate.Machine

IpAddressHasSuffix applies the HasSuffix predicate on the "ipAddress" field.

func IpAddressIn

func IpAddressIn(vs ...string) predicate.Machine

IpAddressIn applies the In predicate on the "ipAddress" field.

func IpAddressLT

func IpAddressLT(v string) predicate.Machine

IpAddressLT applies the LT predicate on the "ipAddress" field.

func IpAddressLTE

func IpAddressLTE(v string) predicate.Machine

IpAddressLTE applies the LTE predicate on the "ipAddress" field.

func IpAddressNEQ

func IpAddressNEQ(v string) predicate.Machine

IpAddressNEQ applies the NEQ predicate on the "ipAddress" field.

func IpAddressNotIn

func IpAddressNotIn(vs ...string) predicate.Machine

IpAddressNotIn applies the NotIn predicate on the "ipAddress" field.

func IsValidated

func IsValidated(v bool) predicate.Machine

IsValidated applies equality check predicate on the "isValidated" field. It's identical to IsValidatedEQ.

func IsValidatedEQ

func IsValidatedEQ(v bool) predicate.Machine

IsValidatedEQ applies the EQ predicate on the "isValidated" field.

func IsValidatedNEQ

func IsValidatedNEQ(v bool) predicate.Machine

IsValidatedNEQ applies the NEQ predicate on the "isValidated" field.

func LastHeartbeat added in v1.4.0

func LastHeartbeat(v time.Time) predicate.Machine

LastHeartbeat applies equality check predicate on the "last_heartbeat" field. It's identical to LastHeartbeatEQ.

func LastHeartbeatEQ added in v1.4.0

func LastHeartbeatEQ(v time.Time) predicate.Machine

LastHeartbeatEQ applies the EQ predicate on the "last_heartbeat" field.

func LastHeartbeatGT added in v1.4.0

func LastHeartbeatGT(v time.Time) predicate.Machine

LastHeartbeatGT applies the GT predicate on the "last_heartbeat" field.

func LastHeartbeatGTE added in v1.4.0

func LastHeartbeatGTE(v time.Time) predicate.Machine

LastHeartbeatGTE applies the GTE predicate on the "last_heartbeat" field.

func LastHeartbeatIn added in v1.4.0

func LastHeartbeatIn(vs ...time.Time) predicate.Machine

LastHeartbeatIn applies the In predicate on the "last_heartbeat" field.

func LastHeartbeatIsNil added in v1.4.0

func LastHeartbeatIsNil() predicate.Machine

LastHeartbeatIsNil applies the IsNil predicate on the "last_heartbeat" field.

func LastHeartbeatLT added in v1.4.0

func LastHeartbeatLT(v time.Time) predicate.Machine

LastHeartbeatLT applies the LT predicate on the "last_heartbeat" field.

func LastHeartbeatLTE added in v1.4.0

func LastHeartbeatLTE(v time.Time) predicate.Machine

LastHeartbeatLTE applies the LTE predicate on the "last_heartbeat" field.

func LastHeartbeatNEQ added in v1.4.0

func LastHeartbeatNEQ(v time.Time) predicate.Machine

LastHeartbeatNEQ applies the NEQ predicate on the "last_heartbeat" field.

func LastHeartbeatNotIn added in v1.4.0

func LastHeartbeatNotIn(vs ...time.Time) predicate.Machine

LastHeartbeatNotIn applies the NotIn predicate on the "last_heartbeat" field.

func LastHeartbeatNotNil added in v1.4.0

func LastHeartbeatNotNil() predicate.Machine

LastHeartbeatNotNil applies the NotNil predicate on the "last_heartbeat" field.

func LastPush added in v1.3.0

func LastPush(v time.Time) predicate.Machine

LastPush applies equality check predicate on the "last_push" field. It's identical to LastPushEQ.

func LastPushEQ added in v1.3.0

func LastPushEQ(v time.Time) predicate.Machine

LastPushEQ applies the EQ predicate on the "last_push" field.

func LastPushGT added in v1.3.0

func LastPushGT(v time.Time) predicate.Machine

LastPushGT applies the GT predicate on the "last_push" field.

func LastPushGTE added in v1.3.0

func LastPushGTE(v time.Time) predicate.Machine

LastPushGTE applies the GTE predicate on the "last_push" field.

func LastPushIn added in v1.3.0

func LastPushIn(vs ...time.Time) predicate.Machine

LastPushIn applies the In predicate on the "last_push" field.

func LastPushIsNil added in v1.3.0

func LastPushIsNil() predicate.Machine

LastPushIsNil applies the IsNil predicate on the "last_push" field.

func LastPushLT added in v1.3.0

func LastPushLT(v time.Time) predicate.Machine

LastPushLT applies the LT predicate on the "last_push" field.

func LastPushLTE added in v1.3.0

func LastPushLTE(v time.Time) predicate.Machine

LastPushLTE applies the LTE predicate on the "last_push" field.

func LastPushNEQ added in v1.3.0

func LastPushNEQ(v time.Time) predicate.Machine

LastPushNEQ applies the NEQ predicate on the "last_push" field.

func LastPushNotIn added in v1.3.0

func LastPushNotIn(vs ...time.Time) predicate.Machine

LastPushNotIn applies the NotIn predicate on the "last_push" field.

func LastPushNotNil added in v1.3.0

func LastPushNotNil() predicate.Machine

LastPushNotNil applies the NotNil predicate on the "last_push" field.

func MachineId

func MachineId(v string) predicate.Machine

MachineId applies equality check predicate on the "machineId" field. It's identical to MachineIdEQ.

func MachineIdContains

func MachineIdContains(v string) predicate.Machine

MachineIdContains applies the Contains predicate on the "machineId" field.

func MachineIdContainsFold

func MachineIdContainsFold(v string) predicate.Machine

MachineIdContainsFold applies the ContainsFold predicate on the "machineId" field.

func MachineIdEQ

func MachineIdEQ(v string) predicate.Machine

MachineIdEQ applies the EQ predicate on the "machineId" field.

func MachineIdEqualFold

func MachineIdEqualFold(v string) predicate.Machine

MachineIdEqualFold applies the EqualFold predicate on the "machineId" field.

func MachineIdGT

func MachineIdGT(v string) predicate.Machine

MachineIdGT applies the GT predicate on the "machineId" field.

func MachineIdGTE

func MachineIdGTE(v string) predicate.Machine

MachineIdGTE applies the GTE predicate on the "machineId" field.

func MachineIdHasPrefix

func MachineIdHasPrefix(v string) predicate.Machine

MachineIdHasPrefix applies the HasPrefix predicate on the "machineId" field.

func MachineIdHasSuffix

func MachineIdHasSuffix(v string) predicate.Machine

MachineIdHasSuffix applies the HasSuffix predicate on the "machineId" field.

func MachineIdIn

func MachineIdIn(vs ...string) predicate.Machine

MachineIdIn applies the In predicate on the "machineId" field.

func MachineIdLT

func MachineIdLT(v string) predicate.Machine

MachineIdLT applies the LT predicate on the "machineId" field.

func MachineIdLTE

func MachineIdLTE(v string) predicate.Machine

MachineIdLTE applies the LTE predicate on the "machineId" field.

func MachineIdNEQ

func MachineIdNEQ(v string) predicate.Machine

MachineIdNEQ applies the NEQ predicate on the "machineId" field.

func MachineIdNotIn

func MachineIdNotIn(vs ...string) predicate.Machine

MachineIdNotIn applies the NotIn predicate on the "machineId" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Machine) predicate.Machine

Or groups predicates with the OR operator between them.

func Osname added in v1.6.3

func Osname(v string) predicate.Machine

Osname applies equality check predicate on the "osname" field. It's identical to OsnameEQ.

func OsnameContains added in v1.6.3

func OsnameContains(v string) predicate.Machine

OsnameContains applies the Contains predicate on the "osname" field.

func OsnameContainsFold added in v1.6.3

func OsnameContainsFold(v string) predicate.Machine

OsnameContainsFold applies the ContainsFold predicate on the "osname" field.

func OsnameEQ added in v1.6.3

func OsnameEQ(v string) predicate.Machine

OsnameEQ applies the EQ predicate on the "osname" field.

func OsnameEqualFold added in v1.6.3

func OsnameEqualFold(v string) predicate.Machine

OsnameEqualFold applies the EqualFold predicate on the "osname" field.

func OsnameGT added in v1.6.3

func OsnameGT(v string) predicate.Machine

OsnameGT applies the GT predicate on the "osname" field.

func OsnameGTE added in v1.6.3

func OsnameGTE(v string) predicate.Machine

OsnameGTE applies the GTE predicate on the "osname" field.

func OsnameHasPrefix added in v1.6.3

func OsnameHasPrefix(v string) predicate.Machine

OsnameHasPrefix applies the HasPrefix predicate on the "osname" field.

func OsnameHasSuffix added in v1.6.3

func OsnameHasSuffix(v string) predicate.Machine

OsnameHasSuffix applies the HasSuffix predicate on the "osname" field.

func OsnameIn added in v1.6.3

func OsnameIn(vs ...string) predicate.Machine

OsnameIn applies the In predicate on the "osname" field.

func OsnameIsNil added in v1.6.3

func OsnameIsNil() predicate.Machine

OsnameIsNil applies the IsNil predicate on the "osname" field.

func OsnameLT added in v1.6.3

func OsnameLT(v string) predicate.Machine

OsnameLT applies the LT predicate on the "osname" field.

func OsnameLTE added in v1.6.3

func OsnameLTE(v string) predicate.Machine

OsnameLTE applies the LTE predicate on the "osname" field.

func OsnameNEQ added in v1.6.3

func OsnameNEQ(v string) predicate.Machine

OsnameNEQ applies the NEQ predicate on the "osname" field.

func OsnameNotIn added in v1.6.3

func OsnameNotIn(vs ...string) predicate.Machine

OsnameNotIn applies the NotIn predicate on the "osname" field.

func OsnameNotNil added in v1.6.3

func OsnameNotNil() predicate.Machine

OsnameNotNil applies the NotNil predicate on the "osname" field.

func Osversion added in v1.6.3

func Osversion(v string) predicate.Machine

Osversion applies equality check predicate on the "osversion" field. It's identical to OsversionEQ.

func OsversionContains added in v1.6.3

func OsversionContains(v string) predicate.Machine

OsversionContains applies the Contains predicate on the "osversion" field.

func OsversionContainsFold added in v1.6.3

func OsversionContainsFold(v string) predicate.Machine

OsversionContainsFold applies the ContainsFold predicate on the "osversion" field.

func OsversionEQ added in v1.6.3

func OsversionEQ(v string) predicate.Machine

OsversionEQ applies the EQ predicate on the "osversion" field.

func OsversionEqualFold added in v1.6.3

func OsversionEqualFold(v string) predicate.Machine

OsversionEqualFold applies the EqualFold predicate on the "osversion" field.

func OsversionGT added in v1.6.3

func OsversionGT(v string) predicate.Machine

OsversionGT applies the GT predicate on the "osversion" field.

func OsversionGTE added in v1.6.3

func OsversionGTE(v string) predicate.Machine

OsversionGTE applies the GTE predicate on the "osversion" field.

func OsversionHasPrefix added in v1.6.3

func OsversionHasPrefix(v string) predicate.Machine

OsversionHasPrefix applies the HasPrefix predicate on the "osversion" field.

func OsversionHasSuffix added in v1.6.3

func OsversionHasSuffix(v string) predicate.Machine

OsversionHasSuffix applies the HasSuffix predicate on the "osversion" field.

func OsversionIn added in v1.6.3

func OsversionIn(vs ...string) predicate.Machine

OsversionIn applies the In predicate on the "osversion" field.

func OsversionIsNil added in v1.6.3

func OsversionIsNil() predicate.Machine

OsversionIsNil applies the IsNil predicate on the "osversion" field.

func OsversionLT added in v1.6.3

func OsversionLT(v string) predicate.Machine

OsversionLT applies the LT predicate on the "osversion" field.

func OsversionLTE added in v1.6.3

func OsversionLTE(v string) predicate.Machine

OsversionLTE applies the LTE predicate on the "osversion" field.

func OsversionNEQ added in v1.6.3

func OsversionNEQ(v string) predicate.Machine

OsversionNEQ applies the NEQ predicate on the "osversion" field.

func OsversionNotIn added in v1.6.3

func OsversionNotIn(vs ...string) predicate.Machine

OsversionNotIn applies the NotIn predicate on the "osversion" field.

func OsversionNotNil added in v1.6.3

func OsversionNotNil() predicate.Machine

OsversionNotNil applies the NotNil predicate on the "osversion" field.

func Password

func Password(v string) predicate.Machine

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.Machine

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.Machine

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.Machine

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.Machine

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.Machine

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.Machine

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.Machine

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.Machine

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.Machine

PasswordIn applies the In predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.Machine

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.Machine

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.Machine

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.Machine

PasswordNotIn applies the NotIn predicate on the "password" field.

func Scenarios

func Scenarios(v string) predicate.Machine

Scenarios applies equality check predicate on the "scenarios" field. It's identical to ScenariosEQ.

func ScenariosContains

func ScenariosContains(v string) predicate.Machine

ScenariosContains applies the Contains predicate on the "scenarios" field.

func ScenariosContainsFold

func ScenariosContainsFold(v string) predicate.Machine

ScenariosContainsFold applies the ContainsFold predicate on the "scenarios" field.

func ScenariosEQ

func ScenariosEQ(v string) predicate.Machine

ScenariosEQ applies the EQ predicate on the "scenarios" field.

func ScenariosEqualFold

func ScenariosEqualFold(v string) predicate.Machine

ScenariosEqualFold applies the EqualFold predicate on the "scenarios" field.

func ScenariosGT

func ScenariosGT(v string) predicate.Machine

ScenariosGT applies the GT predicate on the "scenarios" field.

func ScenariosGTE

func ScenariosGTE(v string) predicate.Machine

ScenariosGTE applies the GTE predicate on the "scenarios" field.

func ScenariosHasPrefix

func ScenariosHasPrefix(v string) predicate.Machine

ScenariosHasPrefix applies the HasPrefix predicate on the "scenarios" field.

func ScenariosHasSuffix

func ScenariosHasSuffix(v string) predicate.Machine

ScenariosHasSuffix applies the HasSuffix predicate on the "scenarios" field.

func ScenariosIn

func ScenariosIn(vs ...string) predicate.Machine

ScenariosIn applies the In predicate on the "scenarios" field.

func ScenariosIsNil

func ScenariosIsNil() predicate.Machine

ScenariosIsNil applies the IsNil predicate on the "scenarios" field.

func ScenariosLT

func ScenariosLT(v string) predicate.Machine

ScenariosLT applies the LT predicate on the "scenarios" field.

func ScenariosLTE

func ScenariosLTE(v string) predicate.Machine

ScenariosLTE applies the LTE predicate on the "scenarios" field.

func ScenariosNEQ

func ScenariosNEQ(v string) predicate.Machine

ScenariosNEQ applies the NEQ predicate on the "scenarios" field.

func ScenariosNotIn

func ScenariosNotIn(vs ...string) predicate.Machine

ScenariosNotIn applies the NotIn predicate on the "scenarios" field.

func ScenariosNotNil

func ScenariosNotNil() predicate.Machine

ScenariosNotNil applies the NotNil predicate on the "scenarios" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Machine

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Machine

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Machine

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Machine

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Machine

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Machine

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Machine

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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.Machine

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

func VersionContains

func VersionContains(v string) predicate.Machine

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

func VersionContainsFold

func VersionContainsFold(v string) predicate.Machine

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

func VersionEQ

func VersionEQ(v string) predicate.Machine

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

func VersionEqualFold

func VersionEqualFold(v string) predicate.Machine

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

func VersionGT

func VersionGT(v string) predicate.Machine

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

func VersionGTE

func VersionGTE(v string) predicate.Machine

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

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Machine

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

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Machine

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

func VersionIn

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

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

func VersionIsNil

func VersionIsNil() predicate.Machine

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

func VersionLT

func VersionLT(v string) predicate.Machine

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

func VersionLTE

func VersionLTE(v string) predicate.Machine

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

func VersionNEQ

func VersionNEQ(v string) predicate.Machine

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

func VersionNotIn

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

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

func VersionNotNil

func VersionNotNil() predicate.Machine

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

Types

type OrderOption added in v1.6.1

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Machine queries.

func ByAlerts added in v1.6.1

func ByAlerts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByAlerts orders the results by alerts terms.

func ByAlertsCount added in v1.6.1

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

ByAlertsCount orders the results by alerts count.

func ByAuthType added in v1.6.1

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

ByAuthType orders the results by the auth_type field.

func ByCreatedAt added in v1.6.1

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

ByCreatedAt orders the results by the created_at field.

func ByFeatureflags added in v1.6.3

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

ByFeatureflags orders the results by the featureflags field.

func ByID added in v1.6.1

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

ByID orders the results by the id field.

func ByIpAddress added in v1.6.1

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

ByIpAddress orders the results by the ipAddress field.

func ByIsValidated added in v1.6.1

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

ByIsValidated orders the results by the isValidated field.

func ByLastHeartbeat added in v1.6.1

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

ByLastHeartbeat orders the results by the last_heartbeat field.

func ByLastPush added in v1.6.1

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

ByLastPush orders the results by the last_push field.

func ByMachineId added in v1.6.1

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

ByMachineId orders the results by the machineId field.

func ByOsname added in v1.6.3

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

ByOsname orders the results by the osname field.

func ByOsversion added in v1.6.3

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

ByOsversion orders the results by the osversion field.

func ByPassword added in v1.6.1

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

ByPassword orders the results by the password field.

func ByScenarios added in v1.6.1

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

ByScenarios orders the results by the scenarios field.

func ByUpdatedAt added in v1.6.1

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

ByUpdatedAt orders the results by the updated_at field.

func ByVersion added in v1.6.1

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

ByVersion orders the results by the version field.

Jump to

Keyboard shortcuts

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