machine

package
v0.0.0-...-236fc01 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 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"
	// 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

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
	// 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
)

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

This section is empty.

Jump to

Keyboard shortcuts

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