Documentation ¶
Index ¶
- Constants
- Variables
- func AgentIdentifier(v string) predicate.Beacon
- func AgentIdentifierContains(v string) predicate.Beacon
- func AgentIdentifierContainsFold(v string) predicate.Beacon
- func AgentIdentifierEQ(v string) predicate.Beacon
- func AgentIdentifierEqualFold(v string) predicate.Beacon
- func AgentIdentifierGT(v string) predicate.Beacon
- func AgentIdentifierGTE(v string) predicate.Beacon
- func AgentIdentifierHasPrefix(v string) predicate.Beacon
- func AgentIdentifierHasSuffix(v string) predicate.Beacon
- func AgentIdentifierIn(vs ...string) predicate.Beacon
- func AgentIdentifierIsNil() predicate.Beacon
- func AgentIdentifierLT(v string) predicate.Beacon
- func AgentIdentifierLTE(v string) predicate.Beacon
- func AgentIdentifierNEQ(v string) predicate.Beacon
- func AgentIdentifierNotIn(vs ...string) predicate.Beacon
- func AgentIdentifierNotNil() predicate.Beacon
- func And(predicates ...predicate.Beacon) predicate.Beacon
- func CreatedAt(v time.Time) predicate.Beacon
- func CreatedAtEQ(v time.Time) predicate.Beacon
- func CreatedAtGT(v time.Time) predicate.Beacon
- func CreatedAtGTE(v time.Time) predicate.Beacon
- func CreatedAtIn(vs ...time.Time) predicate.Beacon
- func CreatedAtLT(v time.Time) predicate.Beacon
- func CreatedAtLTE(v time.Time) predicate.Beacon
- func CreatedAtNEQ(v time.Time) predicate.Beacon
- func CreatedAtNotIn(vs ...time.Time) predicate.Beacon
- func HasHost() predicate.Beacon
- func HasHostWith(preds ...predicate.Host) predicate.Beacon
- func HasTasks() predicate.Beacon
- func HasTasksWith(preds ...predicate.Task) predicate.Beacon
- func ID(id int) predicate.Beacon
- func IDEQ(id int) predicate.Beacon
- func IDGT(id int) predicate.Beacon
- func IDGTE(id int) predicate.Beacon
- func IDIn(ids ...int) predicate.Beacon
- func IDLT(id int) predicate.Beacon
- func IDLTE(id int) predicate.Beacon
- func IDNEQ(id int) predicate.Beacon
- func IDNotIn(ids ...int) predicate.Beacon
- func Identifier(v string) predicate.Beacon
- func IdentifierContains(v string) predicate.Beacon
- func IdentifierContainsFold(v string) predicate.Beacon
- func IdentifierEQ(v string) predicate.Beacon
- func IdentifierEqualFold(v string) predicate.Beacon
- func IdentifierGT(v string) predicate.Beacon
- func IdentifierGTE(v string) predicate.Beacon
- func IdentifierHasPrefix(v string) predicate.Beacon
- func IdentifierHasSuffix(v string) predicate.Beacon
- func IdentifierIn(vs ...string) predicate.Beacon
- func IdentifierLT(v string) predicate.Beacon
- func IdentifierLTE(v string) predicate.Beacon
- func IdentifierNEQ(v string) predicate.Beacon
- func IdentifierNotIn(vs ...string) predicate.Beacon
- func Interval(v uint64) predicate.Beacon
- func IntervalEQ(v uint64) predicate.Beacon
- func IntervalGT(v uint64) predicate.Beacon
- func IntervalGTE(v uint64) predicate.Beacon
- func IntervalIn(vs ...uint64) predicate.Beacon
- func IntervalIsNil() predicate.Beacon
- func IntervalLT(v uint64) predicate.Beacon
- func IntervalLTE(v uint64) predicate.Beacon
- func IntervalNEQ(v uint64) predicate.Beacon
- func IntervalNotIn(vs ...uint64) predicate.Beacon
- func IntervalNotNil() predicate.Beacon
- func LastModifiedAt(v time.Time) predicate.Beacon
- func LastModifiedAtEQ(v time.Time) predicate.Beacon
- func LastModifiedAtGT(v time.Time) predicate.Beacon
- func LastModifiedAtGTE(v time.Time) predicate.Beacon
- func LastModifiedAtIn(vs ...time.Time) predicate.Beacon
- func LastModifiedAtLT(v time.Time) predicate.Beacon
- func LastModifiedAtLTE(v time.Time) predicate.Beacon
- func LastModifiedAtNEQ(v time.Time) predicate.Beacon
- func LastModifiedAtNotIn(vs ...time.Time) predicate.Beacon
- func LastSeenAt(v time.Time) predicate.Beacon
- func LastSeenAtEQ(v time.Time) predicate.Beacon
- func LastSeenAtGT(v time.Time) predicate.Beacon
- func LastSeenAtGTE(v time.Time) predicate.Beacon
- func LastSeenAtIn(vs ...time.Time) predicate.Beacon
- func LastSeenAtIsNil() predicate.Beacon
- func LastSeenAtLT(v time.Time) predicate.Beacon
- func LastSeenAtLTE(v time.Time) predicate.Beacon
- func LastSeenAtNEQ(v time.Time) predicate.Beacon
- func LastSeenAtNotIn(vs ...time.Time) predicate.Beacon
- func LastSeenAtNotNil() predicate.Beacon
- func Name(v string) predicate.Beacon
- func NameContains(v string) predicate.Beacon
- func NameContainsFold(v string) predicate.Beacon
- func NameEQ(v string) predicate.Beacon
- func NameEqualFold(v string) predicate.Beacon
- func NameGT(v string) predicate.Beacon
- func NameGTE(v string) predicate.Beacon
- func NameHasPrefix(v string) predicate.Beacon
- func NameHasSuffix(v string) predicate.Beacon
- func NameIn(vs ...string) predicate.Beacon
- func NameLT(v string) predicate.Beacon
- func NameLTE(v string) predicate.Beacon
- func NameNEQ(v string) predicate.Beacon
- func NameNotIn(vs ...string) predicate.Beacon
- func Not(p predicate.Beacon) predicate.Beacon
- func Or(predicates ...predicate.Beacon) predicate.Beacon
- func Principal(v string) predicate.Beacon
- func PrincipalContains(v string) predicate.Beacon
- func PrincipalContainsFold(v string) predicate.Beacon
- func PrincipalEQ(v string) predicate.Beacon
- func PrincipalEqualFold(v string) predicate.Beacon
- func PrincipalGT(v string) predicate.Beacon
- func PrincipalGTE(v string) predicate.Beacon
- func PrincipalHasPrefix(v string) predicate.Beacon
- func PrincipalHasSuffix(v string) predicate.Beacon
- func PrincipalIn(vs ...string) predicate.Beacon
- func PrincipalIsNil() predicate.Beacon
- func PrincipalLT(v string) predicate.Beacon
- func PrincipalLTE(v string) predicate.Beacon
- func PrincipalNEQ(v string) predicate.Beacon
- func PrincipalNotIn(vs ...string) predicate.Beacon
- func PrincipalNotNil() predicate.Beacon
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentIdentifier(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHostField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIdentifier(opts ...sql.OrderTermOption) OrderOption
- func ByInterval(opts ...sql.OrderTermOption) OrderOption
- func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
- func ByLastSeenAt(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipal(opts ...sql.OrderTermOption) OrderOption
- func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the beacon type in the database. Label = "beacon" // 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" // FieldLastModifiedAt holds the string denoting the last_modified_at field in the database. FieldLastModifiedAt = "last_modified_at" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPrincipal holds the string denoting the principal field in the database. FieldPrincipal = "principal" // FieldIdentifier holds the string denoting the identifier field in the database. FieldIdentifier = "identifier" // FieldAgentIdentifier holds the string denoting the agent_identifier field in the database. FieldAgentIdentifier = "agent_identifier" // FieldLastSeenAt holds the string denoting the last_seen_at field in the database. FieldLastSeenAt = "last_seen_at" // FieldInterval holds the string denoting the interval field in the database. FieldInterval = "interval" // EdgeHost holds the string denoting the host edge name in mutations. EdgeHost = "host" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // Table holds the table name of the beacon in the database. Table = "beacons" // HostTable is the table that holds the host relation/edge. HostTable = "beacons" // HostInverseTable is the table name for the Host entity. // It exists in this package in order to avoid circular dependency with the "host" package. HostInverseTable = "hosts" // HostColumn is the table column denoting the host relation/edge. HostColumn = "beacon_host" // TasksTable is the table that holds the tasks relation/edge. TasksTable = "tasks" // TasksInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TasksInverseTable = "tasks" // TasksColumn is the table column denoting the tasks relation/edge. TasksColumn = "task_beacon" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultLastModifiedAt holds the default value on creation for the "last_modified_at" field. DefaultLastModifiedAt func() time.Time // UpdateDefaultLastModifiedAt holds the default value on update for the "last_modified_at" field. UpdateDefaultLastModifiedAt func() time.Time // DefaultName holds the default value on creation for the "name" field. DefaultName func() string // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // PrincipalValidator is a validator for the "principal" field. It is called by the builders before save. PrincipalValidator func(string) error // DefaultIdentifier holds the default value on creation for the "identifier" field. DefaultIdentifier func() string // IdentifierValidator is a validator for the "identifier" field. It is called by the builders before save. IdentifierValidator func(string) error // AgentIdentifierValidator is a validator for the "agent_identifier" field. It is called by the builders before save. AgentIdentifierValidator func(string) error )
var Columns = []string{ FieldID, FieldCreatedAt, FieldLastModifiedAt, FieldName, FieldPrincipal, FieldIdentifier, FieldAgentIdentifier, FieldLastSeenAt, FieldInterval, }
Columns holds all SQL columns for beacon fields.
var ForeignKeys = []string{
"beacon_host",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "beacons" table and are not defined as standalone fields in the schema.
Functions ¶
func AgentIdentifier ¶
AgentIdentifier applies equality check predicate on the "agent_identifier" field. It's identical to AgentIdentifierEQ.
func AgentIdentifierContains ¶
AgentIdentifierContains applies the Contains predicate on the "agent_identifier" field.
func AgentIdentifierContainsFold ¶
AgentIdentifierContainsFold applies the ContainsFold predicate on the "agent_identifier" field.
func AgentIdentifierEQ ¶
AgentIdentifierEQ applies the EQ predicate on the "agent_identifier" field.
func AgentIdentifierEqualFold ¶
AgentIdentifierEqualFold applies the EqualFold predicate on the "agent_identifier" field.
func AgentIdentifierGT ¶
AgentIdentifierGT applies the GT predicate on the "agent_identifier" field.
func AgentIdentifierGTE ¶
AgentIdentifierGTE applies the GTE predicate on the "agent_identifier" field.
func AgentIdentifierHasPrefix ¶
AgentIdentifierHasPrefix applies the HasPrefix predicate on the "agent_identifier" field.
func AgentIdentifierHasSuffix ¶
AgentIdentifierHasSuffix applies the HasSuffix predicate on the "agent_identifier" field.
func AgentIdentifierIn ¶
AgentIdentifierIn applies the In predicate on the "agent_identifier" field.
func AgentIdentifierIsNil ¶
AgentIdentifierIsNil applies the IsNil predicate on the "agent_identifier" field.
func AgentIdentifierLT ¶
AgentIdentifierLT applies the LT predicate on the "agent_identifier" field.
func AgentIdentifierLTE ¶
AgentIdentifierLTE applies the LTE predicate on the "agent_identifier" field.
func AgentIdentifierNEQ ¶
AgentIdentifierNEQ applies the NEQ predicate on the "agent_identifier" field.
func AgentIdentifierNotIn ¶
AgentIdentifierNotIn applies the NotIn predicate on the "agent_identifier" field.
func AgentIdentifierNotNil ¶
AgentIdentifierNotNil applies the NotNil predicate on the "agent_identifier" field.
func CreatedAt ¶ added in v0.0.5
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶ added in v0.0.5
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶ added in v0.0.5
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶ added in v0.0.5
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶ added in v0.0.5
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶ added in v0.0.5
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶ added in v0.0.5
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶ added in v0.0.5
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶ added in v0.0.5
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasHostWith ¶
HasHostWith applies the HasEdge predicate on the "host" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func Identifier ¶
Identifier applies equality check predicate on the "identifier" field. It's identical to IdentifierEQ.
func IdentifierContains ¶
IdentifierContains applies the Contains predicate on the "identifier" field.
func IdentifierContainsFold ¶
IdentifierContainsFold applies the ContainsFold predicate on the "identifier" field.
func IdentifierEQ ¶
IdentifierEQ applies the EQ predicate on the "identifier" field.
func IdentifierEqualFold ¶
IdentifierEqualFold applies the EqualFold predicate on the "identifier" field.
func IdentifierGT ¶
IdentifierGT applies the GT predicate on the "identifier" field.
func IdentifierGTE ¶
IdentifierGTE applies the GTE predicate on the "identifier" field.
func IdentifierHasPrefix ¶
IdentifierHasPrefix applies the HasPrefix predicate on the "identifier" field.
func IdentifierHasSuffix ¶
IdentifierHasSuffix applies the HasSuffix predicate on the "identifier" field.
func IdentifierIn ¶
IdentifierIn applies the In predicate on the "identifier" field.
func IdentifierLT ¶
IdentifierLT applies the LT predicate on the "identifier" field.
func IdentifierLTE ¶
IdentifierLTE applies the LTE predicate on the "identifier" field.
func IdentifierNEQ ¶
IdentifierNEQ applies the NEQ predicate on the "identifier" field.
func IdentifierNotIn ¶
IdentifierNotIn applies the NotIn predicate on the "identifier" field.
func Interval ¶
Interval applies equality check predicate on the "interval" field. It's identical to IntervalEQ.
func IntervalEQ ¶
IntervalEQ applies the EQ predicate on the "interval" field.
func IntervalGT ¶
IntervalGT applies the GT predicate on the "interval" field.
func IntervalGTE ¶
IntervalGTE applies the GTE predicate on the "interval" field.
func IntervalIn ¶
IntervalIn applies the In predicate on the "interval" field.
func IntervalIsNil ¶
IntervalIsNil applies the IsNil predicate on the "interval" field.
func IntervalLT ¶
IntervalLT applies the LT predicate on the "interval" field.
func IntervalLTE ¶
IntervalLTE applies the LTE predicate on the "interval" field.
func IntervalNEQ ¶
IntervalNEQ applies the NEQ predicate on the "interval" field.
func IntervalNotIn ¶
IntervalNotIn applies the NotIn predicate on the "interval" field.
func IntervalNotNil ¶
IntervalNotNil applies the NotNil predicate on the "interval" field.
func LastModifiedAt ¶ added in v0.0.5
LastModifiedAt applies equality check predicate on the "last_modified_at" field. It's identical to LastModifiedAtEQ.
func LastModifiedAtEQ ¶ added in v0.0.5
LastModifiedAtEQ applies the EQ predicate on the "last_modified_at" field.
func LastModifiedAtGT ¶ added in v0.0.5
LastModifiedAtGT applies the GT predicate on the "last_modified_at" field.
func LastModifiedAtGTE ¶ added in v0.0.5
LastModifiedAtGTE applies the GTE predicate on the "last_modified_at" field.
func LastModifiedAtIn ¶ added in v0.0.5
LastModifiedAtIn applies the In predicate on the "last_modified_at" field.
func LastModifiedAtLT ¶ added in v0.0.5
LastModifiedAtLT applies the LT predicate on the "last_modified_at" field.
func LastModifiedAtLTE ¶ added in v0.0.5
LastModifiedAtLTE applies the LTE predicate on the "last_modified_at" field.
func LastModifiedAtNEQ ¶ added in v0.0.5
LastModifiedAtNEQ applies the NEQ predicate on the "last_modified_at" field.
func LastModifiedAtNotIn ¶ added in v0.0.5
LastModifiedAtNotIn applies the NotIn predicate on the "last_modified_at" field.
func LastSeenAt ¶
LastSeenAt applies equality check predicate on the "last_seen_at" field. It's identical to LastSeenAtEQ.
func LastSeenAtEQ ¶
LastSeenAtEQ applies the EQ predicate on the "last_seen_at" field.
func LastSeenAtGT ¶
LastSeenAtGT applies the GT predicate on the "last_seen_at" field.
func LastSeenAtGTE ¶
LastSeenAtGTE applies the GTE predicate on the "last_seen_at" field.
func LastSeenAtIn ¶
LastSeenAtIn applies the In predicate on the "last_seen_at" field.
func LastSeenAtIsNil ¶
LastSeenAtIsNil applies the IsNil predicate on the "last_seen_at" field.
func LastSeenAtLT ¶
LastSeenAtLT applies the LT predicate on the "last_seen_at" field.
func LastSeenAtLTE ¶
LastSeenAtLTE applies the LTE predicate on the "last_seen_at" field.
func LastSeenAtNEQ ¶
LastSeenAtNEQ applies the NEQ predicate on the "last_seen_at" field.
func LastSeenAtNotIn ¶
LastSeenAtNotIn applies the NotIn predicate on the "last_seen_at" field.
func LastSeenAtNotNil ¶
LastSeenAtNotNil applies the NotNil predicate on the "last_seen_at" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Principal ¶
Principal applies equality check predicate on the "principal" field. It's identical to PrincipalEQ.
func PrincipalContains ¶
PrincipalContains applies the Contains predicate on the "principal" field.
func PrincipalContainsFold ¶
PrincipalContainsFold applies the ContainsFold predicate on the "principal" field.
func PrincipalEQ ¶
PrincipalEQ applies the EQ predicate on the "principal" field.
func PrincipalEqualFold ¶
PrincipalEqualFold applies the EqualFold predicate on the "principal" field.
func PrincipalGT ¶
PrincipalGT applies the GT predicate on the "principal" field.
func PrincipalGTE ¶
PrincipalGTE applies the GTE predicate on the "principal" field.
func PrincipalHasPrefix ¶
PrincipalHasPrefix applies the HasPrefix predicate on the "principal" field.
func PrincipalHasSuffix ¶
PrincipalHasSuffix applies the HasSuffix predicate on the "principal" field.
func PrincipalIn ¶
PrincipalIn applies the In predicate on the "principal" field.
func PrincipalIsNil ¶
PrincipalIsNil applies the IsNil predicate on the "principal" field.
func PrincipalLT ¶
PrincipalLT applies the LT predicate on the "principal" field.
func PrincipalLTE ¶
PrincipalLTE applies the LTE predicate on the "principal" field.
func PrincipalNEQ ¶
PrincipalNEQ applies the NEQ predicate on the "principal" field.
func PrincipalNotIn ¶
PrincipalNotIn applies the NotIn predicate on the "principal" field.
func PrincipalNotNil ¶
PrincipalNotNil applies the NotNil predicate on the "principal" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Beacon queries.
func ByAgentIdentifier ¶
func ByAgentIdentifier(opts ...sql.OrderTermOption) OrderOption
ByAgentIdentifier orders the results by the agent_identifier field.
func ByCreatedAt ¶ added in v0.0.5
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByHostField ¶
func ByHostField(field string, opts ...sql.OrderTermOption) OrderOption
ByHostField orders the results by host field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIdentifier ¶
func ByIdentifier(opts ...sql.OrderTermOption) OrderOption
ByIdentifier orders the results by the identifier field.
func ByInterval ¶
func ByInterval(opts ...sql.OrderTermOption) OrderOption
ByInterval orders the results by the interval field.
func ByLastModifiedAt ¶ added in v0.0.5
func ByLastModifiedAt(opts ...sql.OrderTermOption) OrderOption
ByLastModifiedAt orders the results by the last_modified_at field.
func ByLastSeenAt ¶
func ByLastSeenAt(opts ...sql.OrderTermOption) OrderOption
ByLastSeenAt orders the results by the last_seen_at field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPrincipal ¶
func ByPrincipal(opts ...sql.OrderTermOption) OrderOption
ByPrincipal orders the results by the principal field.
func ByTasks ¶
func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTasks orders the results by tasks terms.
func ByTasksCount ¶
func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
ByTasksCount orders the results by tasks count.