Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Machine) 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 HasAlerts() predicate.Machine
- func HasAlertsWith(preds ...predicate.Alert) 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 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 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 Status(v string) predicate.Machine
- func StatusContains(v string) predicate.Machine
- func StatusContainsFold(v string) predicate.Machine
- func StatusEQ(v string) predicate.Machine
- func StatusEqualFold(v string) predicate.Machine
- func StatusGT(v string) predicate.Machine
- func StatusGTE(v string) predicate.Machine
- func StatusHasPrefix(v string) predicate.Machine
- func StatusHasSuffix(v string) predicate.Machine
- func StatusIn(vs ...string) predicate.Machine
- func StatusIsNil() predicate.Machine
- func StatusLT(v string) predicate.Machine
- func StatusLTE(v string) predicate.Machine
- func StatusNEQ(v string) predicate.Machine
- func StatusNotIn(vs ...string) predicate.Machine
- func StatusNotNil() 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
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" // 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" // 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 the 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 // 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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldMachineId, FieldPassword, FieldIpAddress, FieldScenarios, FieldVersion, FieldIsValidated, FieldStatus, }
Columns holds all SQL columns for machine fields.
Functions ¶
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 HasAlertsWith ¶
HasAlertsWith applies the HasEdge predicate on the "alerts" edge with a given conditions (other predicates).
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 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 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 Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" 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 ¶
This section is empty.