Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Machine) predicate.Machine
- func AuthType(v string) predicate.Machine
- func AuthTypeContains(v string) predicate.Machine
- func AuthTypeContainsFold(v string) predicate.Machine
- func AuthTypeEQ(v string) predicate.Machine
- func AuthTypeEqualFold(v string) predicate.Machine
- func AuthTypeGT(v string) predicate.Machine
- func AuthTypeGTE(v string) predicate.Machine
- func AuthTypeHasPrefix(v string) predicate.Machine
- func AuthTypeHasSuffix(v string) predicate.Machine
- func AuthTypeIn(vs ...string) predicate.Machine
- func AuthTypeLT(v string) predicate.Machine
- func AuthTypeLTE(v string) predicate.Machine
- func AuthTypeNEQ(v string) predicate.Machine
- func AuthTypeNotIn(vs ...string) predicate.Machine
- func CreatedAt(v time.Time) predicate.Machine
- func CreatedAtEQ(v time.Time) predicate.Machine
- func CreatedAtGT(v time.Time) predicate.Machine
- func CreatedAtGTE(v time.Time) predicate.Machine
- func CreatedAtIn(vs ...time.Time) predicate.Machine
- func CreatedAtLT(v time.Time) predicate.Machine
- func CreatedAtLTE(v time.Time) predicate.Machine
- func CreatedAtNEQ(v time.Time) predicate.Machine
- func CreatedAtNotIn(vs ...time.Time) predicate.Machine
- func DatasourcesIsNil() predicate.Machine
- func DatasourcesNotNil() predicate.Machine
- func Featureflags(v string) predicate.Machine
- func FeatureflagsContains(v string) predicate.Machine
- func FeatureflagsContainsFold(v string) predicate.Machine
- func FeatureflagsEQ(v string) predicate.Machine
- func FeatureflagsEqualFold(v string) predicate.Machine
- func FeatureflagsGT(v string) predicate.Machine
- func FeatureflagsGTE(v string) predicate.Machine
- func FeatureflagsHasPrefix(v string) predicate.Machine
- func FeatureflagsHasSuffix(v string) predicate.Machine
- func FeatureflagsIn(vs ...string) predicate.Machine
- func FeatureflagsIsNil() predicate.Machine
- func FeatureflagsLT(v string) predicate.Machine
- func FeatureflagsLTE(v string) predicate.Machine
- func FeatureflagsNEQ(v string) predicate.Machine
- func FeatureflagsNotIn(vs ...string) predicate.Machine
- func FeatureflagsNotNil() predicate.Machine
- func HasAlerts() predicate.Machine
- func HasAlertsWith(preds ...predicate.Alert) predicate.Machine
- func HubstateIsNil() predicate.Machine
- func HubstateNotNil() predicate.Machine
- func ID(id int) predicate.Machine
- func IDEQ(id int) predicate.Machine
- func IDGT(id int) predicate.Machine
- func IDGTE(id int) predicate.Machine
- func IDIn(ids ...int) predicate.Machine
- func IDLT(id int) predicate.Machine
- func IDLTE(id int) predicate.Machine
- func IDNEQ(id int) predicate.Machine
- func IDNotIn(ids ...int) predicate.Machine
- func IpAddress(v string) predicate.Machine
- func IpAddressContains(v string) predicate.Machine
- func IpAddressContainsFold(v string) predicate.Machine
- func IpAddressEQ(v string) predicate.Machine
- func IpAddressEqualFold(v string) predicate.Machine
- func IpAddressGT(v string) predicate.Machine
- func IpAddressGTE(v string) predicate.Machine
- func IpAddressHasPrefix(v string) predicate.Machine
- func IpAddressHasSuffix(v string) predicate.Machine
- func IpAddressIn(vs ...string) predicate.Machine
- func IpAddressLT(v string) predicate.Machine
- func IpAddressLTE(v string) predicate.Machine
- func IpAddressNEQ(v string) predicate.Machine
- func IpAddressNotIn(vs ...string) predicate.Machine
- func IsValidated(v bool) predicate.Machine
- func IsValidatedEQ(v bool) predicate.Machine
- func IsValidatedNEQ(v bool) predicate.Machine
- func LastHeartbeat(v time.Time) predicate.Machine
- func LastHeartbeatEQ(v time.Time) predicate.Machine
- func LastHeartbeatGT(v time.Time) predicate.Machine
- func LastHeartbeatGTE(v time.Time) predicate.Machine
- func LastHeartbeatIn(vs ...time.Time) predicate.Machine
- func LastHeartbeatIsNil() predicate.Machine
- func LastHeartbeatLT(v time.Time) predicate.Machine
- func LastHeartbeatLTE(v time.Time) predicate.Machine
- func LastHeartbeatNEQ(v time.Time) predicate.Machine
- func LastHeartbeatNotIn(vs ...time.Time) predicate.Machine
- func LastHeartbeatNotNil() predicate.Machine
- func LastPush(v time.Time) predicate.Machine
- func LastPushEQ(v time.Time) predicate.Machine
- func LastPushGT(v time.Time) predicate.Machine
- func LastPushGTE(v time.Time) predicate.Machine
- func LastPushIn(vs ...time.Time) predicate.Machine
- func LastPushIsNil() predicate.Machine
- func LastPushLT(v time.Time) predicate.Machine
- func LastPushLTE(v time.Time) predicate.Machine
- func LastPushNEQ(v time.Time) predicate.Machine
- func LastPushNotIn(vs ...time.Time) predicate.Machine
- func LastPushNotNil() predicate.Machine
- func MachineId(v string) predicate.Machine
- func MachineIdContains(v string) predicate.Machine
- func MachineIdContainsFold(v string) predicate.Machine
- func MachineIdEQ(v string) predicate.Machine
- func MachineIdEqualFold(v string) predicate.Machine
- func MachineIdGT(v string) predicate.Machine
- func MachineIdGTE(v string) predicate.Machine
- func MachineIdHasPrefix(v string) predicate.Machine
- func MachineIdHasSuffix(v string) predicate.Machine
- func MachineIdIn(vs ...string) predicate.Machine
- func MachineIdLT(v string) predicate.Machine
- func MachineIdLTE(v string) predicate.Machine
- func MachineIdNEQ(v string) predicate.Machine
- func MachineIdNotIn(vs ...string) predicate.Machine
- func Not(p predicate.Machine) predicate.Machine
- func Or(predicates ...predicate.Machine) predicate.Machine
- func Osname(v string) predicate.Machine
- func OsnameContains(v string) predicate.Machine
- func OsnameContainsFold(v string) predicate.Machine
- func OsnameEQ(v string) predicate.Machine
- func OsnameEqualFold(v string) predicate.Machine
- func OsnameGT(v string) predicate.Machine
- func OsnameGTE(v string) predicate.Machine
- func OsnameHasPrefix(v string) predicate.Machine
- func OsnameHasSuffix(v string) predicate.Machine
- func OsnameIn(vs ...string) predicate.Machine
- func OsnameIsNil() predicate.Machine
- func OsnameLT(v string) predicate.Machine
- func OsnameLTE(v string) predicate.Machine
- func OsnameNEQ(v string) predicate.Machine
- func OsnameNotIn(vs ...string) predicate.Machine
- func OsnameNotNil() predicate.Machine
- func Osversion(v string) predicate.Machine
- func OsversionContains(v string) predicate.Machine
- func OsversionContainsFold(v string) predicate.Machine
- func OsversionEQ(v string) predicate.Machine
- func OsversionEqualFold(v string) predicate.Machine
- func OsversionGT(v string) predicate.Machine
- func OsversionGTE(v string) predicate.Machine
- func OsversionHasPrefix(v string) predicate.Machine
- func OsversionHasSuffix(v string) predicate.Machine
- func OsversionIn(vs ...string) predicate.Machine
- func OsversionIsNil() predicate.Machine
- func OsversionLT(v string) predicate.Machine
- func OsversionLTE(v string) predicate.Machine
- func OsversionNEQ(v string) predicate.Machine
- func OsversionNotIn(vs ...string) predicate.Machine
- func OsversionNotNil() predicate.Machine
- func Password(v string) predicate.Machine
- func PasswordContains(v string) predicate.Machine
- func PasswordContainsFold(v string) predicate.Machine
- func PasswordEQ(v string) predicate.Machine
- func PasswordEqualFold(v string) predicate.Machine
- func PasswordGT(v string) predicate.Machine
- func PasswordGTE(v string) predicate.Machine
- func PasswordHasPrefix(v string) predicate.Machine
- func PasswordHasSuffix(v string) predicate.Machine
- func PasswordIn(vs ...string) predicate.Machine
- func PasswordLT(v string) predicate.Machine
- func PasswordLTE(v string) predicate.Machine
- func PasswordNEQ(v string) predicate.Machine
- func PasswordNotIn(vs ...string) predicate.Machine
- func Scenarios(v string) predicate.Machine
- func ScenariosContains(v string) predicate.Machine
- func ScenariosContainsFold(v string) predicate.Machine
- func ScenariosEQ(v string) predicate.Machine
- func ScenariosEqualFold(v string) predicate.Machine
- func ScenariosGT(v string) predicate.Machine
- func ScenariosGTE(v string) predicate.Machine
- func ScenariosHasPrefix(v string) predicate.Machine
- func ScenariosHasSuffix(v string) predicate.Machine
- func ScenariosIn(vs ...string) predicate.Machine
- func ScenariosIsNil() predicate.Machine
- func ScenariosLT(v string) predicate.Machine
- func ScenariosLTE(v string) predicate.Machine
- func ScenariosNEQ(v string) predicate.Machine
- func ScenariosNotIn(vs ...string) predicate.Machine
- func ScenariosNotNil() predicate.Machine
- func UpdatedAt(v time.Time) predicate.Machine
- func UpdatedAtEQ(v time.Time) predicate.Machine
- func UpdatedAtGT(v time.Time) predicate.Machine
- func UpdatedAtGTE(v time.Time) predicate.Machine
- func UpdatedAtIn(vs ...time.Time) predicate.Machine
- func UpdatedAtLT(v time.Time) predicate.Machine
- func UpdatedAtLTE(v time.Time) predicate.Machine
- func UpdatedAtNEQ(v time.Time) predicate.Machine
- func UpdatedAtNotIn(vs ...time.Time) predicate.Machine
- func ValidColumn(column string) bool
- func Version(v string) predicate.Machine
- func VersionContains(v string) predicate.Machine
- func VersionContainsFold(v string) predicate.Machine
- func VersionEQ(v string) predicate.Machine
- func VersionEqualFold(v string) predicate.Machine
- func VersionGT(v string) predicate.Machine
- func VersionGTE(v string) predicate.Machine
- func VersionHasPrefix(v string) predicate.Machine
- func VersionHasSuffix(v string) predicate.Machine
- func VersionIn(vs ...string) predicate.Machine
- func VersionIsNil() predicate.Machine
- func VersionLT(v string) predicate.Machine
- func VersionLTE(v string) predicate.Machine
- func VersionNEQ(v string) predicate.Machine
- func VersionNotIn(vs ...string) predicate.Machine
- func VersionNotNil() predicate.Machine
- type OrderOption
- func ByAlerts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAlertsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAuthType(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByFeatureflags(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIpAddress(opts ...sql.OrderTermOption) OrderOption
- func ByIsValidated(opts ...sql.OrderTermOption) OrderOption
- func ByLastHeartbeat(opts ...sql.OrderTermOption) OrderOption
- func ByLastPush(opts ...sql.OrderTermOption) OrderOption
- func ByMachineId(opts ...sql.OrderTermOption) OrderOption
- func ByOsname(opts ...sql.OrderTermOption) OrderOption
- func ByOsversion(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByScenarios(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldLastPush, FieldLastHeartbeat, FieldMachineId, FieldPassword, FieldIpAddress, FieldScenarios, FieldVersion, FieldIsValidated, FieldAuthType, FieldOsname, FieldOsversion, FieldFeatureflags, FieldHubstate, FieldDatasources, }
Columns holds all SQL columns for machine fields.
Functions ¶
func AuthType ¶ added in v1.4.0
AuthType applies equality check predicate on the "auth_type" field. It's identical to AuthTypeEQ.
func AuthTypeContains ¶ added in v1.4.0
AuthTypeContains applies the Contains predicate on the "auth_type" field.
func AuthTypeContainsFold ¶ added in v1.4.0
AuthTypeContainsFold applies the ContainsFold predicate on the "auth_type" field.
func AuthTypeEQ ¶ added in v1.4.0
AuthTypeEQ applies the EQ predicate on the "auth_type" field.
func AuthTypeEqualFold ¶ added in v1.4.0
AuthTypeEqualFold applies the EqualFold predicate on the "auth_type" field.
func AuthTypeGT ¶ added in v1.4.0
AuthTypeGT applies the GT predicate on the "auth_type" field.
func AuthTypeGTE ¶ added in v1.4.0
AuthTypeGTE applies the GTE predicate on the "auth_type" field.
func AuthTypeHasPrefix ¶ added in v1.4.0
AuthTypeHasPrefix applies the HasPrefix predicate on the "auth_type" field.
func AuthTypeHasSuffix ¶ added in v1.4.0
AuthTypeHasSuffix applies the HasSuffix predicate on the "auth_type" field.
func AuthTypeIn ¶ added in v1.4.0
AuthTypeIn applies the In predicate on the "auth_type" field.
func AuthTypeLT ¶ added in v1.4.0
AuthTypeLT applies the LT predicate on the "auth_type" field.
func AuthTypeLTE ¶ added in v1.4.0
AuthTypeLTE applies the LTE predicate on the "auth_type" field.
func AuthTypeNEQ ¶ added in v1.4.0
AuthTypeNEQ applies the NEQ predicate on the "auth_type" field.
func AuthTypeNotIn ¶ added in v1.4.0
AuthTypeNotIn applies the NotIn predicate on the "auth_type" 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 DatasourcesIsNil ¶ added in v1.6.3
DatasourcesIsNil applies the IsNil predicate on the "datasources" field.
func DatasourcesNotNil ¶ added in v1.6.3
DatasourcesNotNil applies the NotNil predicate on the "datasources" field.
func Featureflags ¶ added in v1.6.3
Featureflags applies equality check predicate on the "featureflags" field. It's identical to FeatureflagsEQ.
func FeatureflagsContains ¶ added in v1.6.3
FeatureflagsContains applies the Contains predicate on the "featureflags" field.
func FeatureflagsContainsFold ¶ added in v1.6.3
FeatureflagsContainsFold applies the ContainsFold predicate on the "featureflags" field.
func FeatureflagsEQ ¶ added in v1.6.3
FeatureflagsEQ applies the EQ predicate on the "featureflags" field.
func FeatureflagsEqualFold ¶ added in v1.6.3
FeatureflagsEqualFold applies the EqualFold predicate on the "featureflags" field.
func FeatureflagsGT ¶ added in v1.6.3
FeatureflagsGT applies the GT predicate on the "featureflags" field.
func FeatureflagsGTE ¶ added in v1.6.3
FeatureflagsGTE applies the GTE predicate on the "featureflags" field.
func FeatureflagsHasPrefix ¶ added in v1.6.3
FeatureflagsHasPrefix applies the HasPrefix predicate on the "featureflags" field.
func FeatureflagsHasSuffix ¶ added in v1.6.3
FeatureflagsHasSuffix applies the HasSuffix predicate on the "featureflags" field.
func FeatureflagsIn ¶ added in v1.6.3
FeatureflagsIn applies the In predicate on the "featureflags" field.
func FeatureflagsIsNil ¶ added in v1.6.3
FeatureflagsIsNil applies the IsNil predicate on the "featureflags" field.
func FeatureflagsLT ¶ added in v1.6.3
FeatureflagsLT applies the LT predicate on the "featureflags" field.
func FeatureflagsLTE ¶ added in v1.6.3
FeatureflagsLTE applies the LTE predicate on the "featureflags" field.
func FeatureflagsNEQ ¶ added in v1.6.3
FeatureflagsNEQ applies the NEQ predicate on the "featureflags" field.
func FeatureflagsNotIn ¶ added in v1.6.3
FeatureflagsNotIn applies the NotIn predicate on the "featureflags" field.
func FeatureflagsNotNil ¶ added in v1.6.3
FeatureflagsNotNil applies the NotNil predicate on the "featureflags" field.
func HasAlertsWith ¶
HasAlertsWith applies the HasEdge predicate on the "alerts" edge with a given conditions (other predicates).
func HubstateIsNil ¶ added in v1.6.3
HubstateIsNil applies the IsNil predicate on the "hubstate" field.
func HubstateNotNil ¶ added in v1.6.3
HubstateNotNil applies the NotNil predicate on the "hubstate" field.
func IpAddress ¶
IpAddress applies equality check predicate on the "ipAddress" field. It's identical to IpAddressEQ.
func IpAddressContains ¶
IpAddressContains applies the Contains predicate on the "ipAddress" field.
func IpAddressContainsFold ¶
IpAddressContainsFold applies the ContainsFold predicate on the "ipAddress" field.
func IpAddressEQ ¶
IpAddressEQ applies the EQ predicate on the "ipAddress" field.
func IpAddressEqualFold ¶
IpAddressEqualFold applies the EqualFold predicate on the "ipAddress" field.
func IpAddressGT ¶
IpAddressGT applies the GT predicate on the "ipAddress" field.
func IpAddressGTE ¶
IpAddressGTE applies the GTE predicate on the "ipAddress" field.
func IpAddressHasPrefix ¶
IpAddressHasPrefix applies the HasPrefix predicate on the "ipAddress" field.
func IpAddressHasSuffix ¶
IpAddressHasSuffix applies the HasSuffix predicate on the "ipAddress" field.
func IpAddressIn ¶
IpAddressIn applies the In predicate on the "ipAddress" field.
func IpAddressLT ¶
IpAddressLT applies the LT predicate on the "ipAddress" field.
func IpAddressLTE ¶
IpAddressLTE applies the LTE predicate on the "ipAddress" field.
func IpAddressNEQ ¶
IpAddressNEQ applies the NEQ predicate on the "ipAddress" field.
func IpAddressNotIn ¶
IpAddressNotIn applies the NotIn predicate on the "ipAddress" field.
func IsValidated ¶
IsValidated applies equality check predicate on the "isValidated" field. It's identical to IsValidatedEQ.
func IsValidatedEQ ¶
IsValidatedEQ applies the EQ predicate on the "isValidated" field.
func IsValidatedNEQ ¶
IsValidatedNEQ applies the NEQ predicate on the "isValidated" field.
func LastHeartbeat ¶ added in v1.4.0
LastHeartbeat applies equality check predicate on the "last_heartbeat" field. It's identical to LastHeartbeatEQ.
func LastHeartbeatEQ ¶ added in v1.4.0
LastHeartbeatEQ applies the EQ predicate on the "last_heartbeat" field.
func LastHeartbeatGT ¶ added in v1.4.0
LastHeartbeatGT applies the GT predicate on the "last_heartbeat" field.
func LastHeartbeatGTE ¶ added in v1.4.0
LastHeartbeatGTE applies the GTE predicate on the "last_heartbeat" field.
func LastHeartbeatIn ¶ added in v1.4.0
LastHeartbeatIn applies the In predicate on the "last_heartbeat" field.
func LastHeartbeatIsNil ¶ added in v1.4.0
LastHeartbeatIsNil applies the IsNil predicate on the "last_heartbeat" field.
func LastHeartbeatLT ¶ added in v1.4.0
LastHeartbeatLT applies the LT predicate on the "last_heartbeat" field.
func LastHeartbeatLTE ¶ added in v1.4.0
LastHeartbeatLTE applies the LTE predicate on the "last_heartbeat" field.
func LastHeartbeatNEQ ¶ added in v1.4.0
LastHeartbeatNEQ applies the NEQ predicate on the "last_heartbeat" field.
func LastHeartbeatNotIn ¶ added in v1.4.0
LastHeartbeatNotIn applies the NotIn predicate on the "last_heartbeat" field.
func LastHeartbeatNotNil ¶ added in v1.4.0
LastHeartbeatNotNil applies the NotNil predicate on the "last_heartbeat" field.
func LastPush ¶ added in v1.3.0
LastPush applies equality check predicate on the "last_push" field. It's identical to LastPushEQ.
func LastPushEQ ¶ added in v1.3.0
LastPushEQ applies the EQ predicate on the "last_push" field.
func LastPushGT ¶ added in v1.3.0
LastPushGT applies the GT predicate on the "last_push" field.
func LastPushGTE ¶ added in v1.3.0
LastPushGTE applies the GTE predicate on the "last_push" field.
func LastPushIn ¶ added in v1.3.0
LastPushIn applies the In predicate on the "last_push" field.
func LastPushIsNil ¶ added in v1.3.0
LastPushIsNil applies the IsNil predicate on the "last_push" field.
func LastPushLT ¶ added in v1.3.0
LastPushLT applies the LT predicate on the "last_push" field.
func LastPushLTE ¶ added in v1.3.0
LastPushLTE applies the LTE predicate on the "last_push" field.
func LastPushNEQ ¶ added in v1.3.0
LastPushNEQ applies the NEQ predicate on the "last_push" field.
func LastPushNotIn ¶ added in v1.3.0
LastPushNotIn applies the NotIn predicate on the "last_push" field.
func LastPushNotNil ¶ added in v1.3.0
LastPushNotNil applies the NotNil predicate on the "last_push" field.
func MachineId ¶
MachineId applies equality check predicate on the "machineId" field. It's identical to MachineIdEQ.
func MachineIdContains ¶
MachineIdContains applies the Contains predicate on the "machineId" field.
func MachineIdContainsFold ¶
MachineIdContainsFold applies the ContainsFold predicate on the "machineId" field.
func MachineIdEQ ¶
MachineIdEQ applies the EQ predicate on the "machineId" field.
func MachineIdEqualFold ¶
MachineIdEqualFold applies the EqualFold predicate on the "machineId" field.
func MachineIdGT ¶
MachineIdGT applies the GT predicate on the "machineId" field.
func MachineIdGTE ¶
MachineIdGTE applies the GTE predicate on the "machineId" field.
func MachineIdHasPrefix ¶
MachineIdHasPrefix applies the HasPrefix predicate on the "machineId" field.
func MachineIdHasSuffix ¶
MachineIdHasSuffix applies the HasSuffix predicate on the "machineId" field.
func MachineIdIn ¶
MachineIdIn applies the In predicate on the "machineId" field.
func MachineIdLT ¶
MachineIdLT applies the LT predicate on the "machineId" field.
func MachineIdLTE ¶
MachineIdLTE applies the LTE predicate on the "machineId" field.
func MachineIdNEQ ¶
MachineIdNEQ applies the NEQ predicate on the "machineId" field.
func MachineIdNotIn ¶
MachineIdNotIn applies the NotIn predicate on the "machineId" field.
func Osname ¶ added in v1.6.3
Osname applies equality check predicate on the "osname" field. It's identical to OsnameEQ.
func OsnameContains ¶ added in v1.6.3
OsnameContains applies the Contains predicate on the "osname" field.
func OsnameContainsFold ¶ added in v1.6.3
OsnameContainsFold applies the ContainsFold predicate on the "osname" field.
func OsnameEqualFold ¶ added in v1.6.3
OsnameEqualFold applies the EqualFold predicate on the "osname" field.
func OsnameHasPrefix ¶ added in v1.6.3
OsnameHasPrefix applies the HasPrefix predicate on the "osname" field.
func OsnameHasSuffix ¶ added in v1.6.3
OsnameHasSuffix applies the HasSuffix predicate on the "osname" field.
func OsnameIsNil ¶ added in v1.6.3
OsnameIsNil applies the IsNil predicate on the "osname" field.
func OsnameNotIn ¶ added in v1.6.3
OsnameNotIn applies the NotIn predicate on the "osname" field.
func OsnameNotNil ¶ added in v1.6.3
OsnameNotNil applies the NotNil predicate on the "osname" field.
func Osversion ¶ added in v1.6.3
Osversion applies equality check predicate on the "osversion" field. It's identical to OsversionEQ.
func OsversionContains ¶ added in v1.6.3
OsversionContains applies the Contains predicate on the "osversion" field.
func OsversionContainsFold ¶ added in v1.6.3
OsversionContainsFold applies the ContainsFold predicate on the "osversion" field.
func OsversionEQ ¶ added in v1.6.3
OsversionEQ applies the EQ predicate on the "osversion" field.
func OsversionEqualFold ¶ added in v1.6.3
OsversionEqualFold applies the EqualFold predicate on the "osversion" field.
func OsversionGT ¶ added in v1.6.3
OsversionGT applies the GT predicate on the "osversion" field.
func OsversionGTE ¶ added in v1.6.3
OsversionGTE applies the GTE predicate on the "osversion" field.
func OsversionHasPrefix ¶ added in v1.6.3
OsversionHasPrefix applies the HasPrefix predicate on the "osversion" field.
func OsversionHasSuffix ¶ added in v1.6.3
OsversionHasSuffix applies the HasSuffix predicate on the "osversion" field.
func OsversionIn ¶ added in v1.6.3
OsversionIn applies the In predicate on the "osversion" field.
func OsversionIsNil ¶ added in v1.6.3
OsversionIsNil applies the IsNil predicate on the "osversion" field.
func OsversionLT ¶ added in v1.6.3
OsversionLT applies the LT predicate on the "osversion" field.
func OsversionLTE ¶ added in v1.6.3
OsversionLTE applies the LTE predicate on the "osversion" field.
func OsversionNEQ ¶ added in v1.6.3
OsversionNEQ applies the NEQ predicate on the "osversion" field.
func OsversionNotIn ¶ added in v1.6.3
OsversionNotIn applies the NotIn predicate on the "osversion" field.
func OsversionNotNil ¶ added in v1.6.3
OsversionNotNil applies the NotNil predicate on the "osversion" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func Scenarios ¶
Scenarios applies equality check predicate on the "scenarios" field. It's identical to ScenariosEQ.
func ScenariosContains ¶
ScenariosContains applies the Contains predicate on the "scenarios" field.
func ScenariosContainsFold ¶
ScenariosContainsFold applies the ContainsFold predicate on the "scenarios" field.
func ScenariosEQ ¶
ScenariosEQ applies the EQ predicate on the "scenarios" field.
func ScenariosEqualFold ¶
ScenariosEqualFold applies the EqualFold predicate on the "scenarios" field.
func ScenariosGT ¶
ScenariosGT applies the GT predicate on the "scenarios" field.
func ScenariosGTE ¶
ScenariosGTE applies the GTE predicate on the "scenarios" field.
func ScenariosHasPrefix ¶
ScenariosHasPrefix applies the HasPrefix predicate on the "scenarios" field.
func ScenariosHasSuffix ¶
ScenariosHasSuffix applies the HasSuffix predicate on the "scenarios" field.
func ScenariosIn ¶
ScenariosIn applies the In predicate on the "scenarios" field.
func ScenariosIsNil ¶
ScenariosIsNil applies the IsNil predicate on the "scenarios" field.
func ScenariosLT ¶
ScenariosLT applies the LT predicate on the "scenarios" field.
func ScenariosLTE ¶
ScenariosLTE applies the LTE predicate on the "scenarios" field.
func ScenariosNEQ ¶
ScenariosNEQ applies the NEQ predicate on the "scenarios" field.
func ScenariosNotIn ¶
ScenariosNotIn applies the NotIn predicate on the "scenarios" field.
func ScenariosNotNil ¶
ScenariosNotNil applies the NotNil predicate on the "scenarios" 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 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.
Types ¶
type OrderOption ¶ added in v1.6.1
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.