machine

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldAuthType holds the string denoting the auth_type field in the database.
	FieldAuthType = "auth_type"
	// 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
	// UpdateDefaultCreatedAt holds the default value on update for the "created_at" field.
	UpdateDefaultCreatedAt 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
	// UpdateDefaultLastPush holds the default value on update for the "last_push" field.
	UpdateDefaultLastPush func() time.Time
	// DefaultLastHeartbeat holds the default value on creation for the "last_heartbeat" field.
	DefaultLastHeartbeat func() time.Time
	// UpdateDefaultLastHeartbeat holds the default value on update for the "last_heartbeat" field.
	UpdateDefaultLastHeartbeat 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 CreatedAtIsNil added in v1.3.0

func CreatedAtIsNil() predicate.Machine

CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil added in v1.3.0

func CreatedAtNotNil() predicate.Machine

CreatedAtNotNil applies the NotNil predicate on the "created_at" 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 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 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 Status

func Status(v string) predicate.Machine

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Machine

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Machine

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Machine

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Machine

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Machine

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Machine

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Machine

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Machine

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

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

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.Machine

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Machine

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Machine

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Machine

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

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

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Machine

StatusNotNil applies the NotNil predicate on the "status" 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 UpdatedAtIsNil added in v1.3.0

func UpdatedAtIsNil() predicate.Machine

UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil added in v1.3.0

func UpdatedAtNotNil() predicate.Machine

UpdatedAtNotNil applies the NotNil 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 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 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 ByStatus added in v1.6.1

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

ByStatus orders the results by the status 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