Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Metadata) predicate.Metadata
- func HasOrg() predicate.Metadata
- func HasOrgWith(preds ...predicate.OrgMetadata) predicate.Metadata
- func HasOwner() predicate.Metadata
- func HasOwnerWith(preds ...predicate.Agent) predicate.Metadata
- func ID(id int) predicate.Metadata
- func IDEQ(id int) predicate.Metadata
- func IDGT(id int) predicate.Metadata
- func IDGTE(id int) predicate.Metadata
- func IDIn(ids ...int) predicate.Metadata
- func IDLT(id int) predicate.Metadata
- func IDLTE(id int) predicate.Metadata
- func IDNEQ(id int) predicate.Metadata
- func IDNotIn(ids ...int) predicate.Metadata
- func Not(p predicate.Metadata) predicate.Metadata
- func Or(predicates ...predicate.Metadata) predicate.Metadata
- func ValidColumn(column string) bool
- func Value(v string) predicate.Metadata
- func ValueContains(v string) predicate.Metadata
- func ValueContainsFold(v string) predicate.Metadata
- func ValueEQ(v string) predicate.Metadata
- func ValueEqualFold(v string) predicate.Metadata
- func ValueGT(v string) predicate.Metadata
- func ValueGTE(v string) predicate.Metadata
- func ValueHasPrefix(v string) predicate.Metadata
- func ValueHasSuffix(v string) predicate.Metadata
- func ValueIn(vs ...string) predicate.Metadata
- func ValueLT(v string) predicate.Metadata
- func ValueLTE(v string) predicate.Metadata
- func ValueNEQ(v string) predicate.Metadata
- func ValueNotIn(vs ...string) predicate.Metadata
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the metadata type in the database. Label = "metadata" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldValue holds the string denoting the value field in the database. FieldValue = "value" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeOrg holds the string denoting the org edge name in mutations. EdgeOrg = "org" // AgentFieldID holds the string denoting the ID field of the Agent. AgentFieldID = "oid" // Table holds the table name of the metadata in the database. Table = "metadata" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "metadata" // OwnerInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. OwnerInverseTable = "agents" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "agent_metadata" // OrgTable is the table that holds the org relation/edge. OrgTable = "metadata" // OrgInverseTable is the table name for the OrgMetadata entity. // It exists in this package in order to avoid circular dependency with the "orgmetadata" package. OrgInverseTable = "org_metadata" // OrgColumn is the table column denoting the org relation/edge. OrgColumn = "org_metadata_metadata" )
Variables ¶
var Columns = []string{ FieldID, FieldValue, }
Columns holds all SQL columns for metadata fields.
var ForeignKeys = []string{
"agent_metadata",
"org_metadata_metadata",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "metadata" table and are not defined as standalone fields in the schema.
Functions ¶
func HasOrgWith ¶
func HasOrgWith(preds ...predicate.OrgMetadata) predicate.Metadata
HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func Value ¶
Value applies equality check predicate on the "value" field. It's identical to ValueEQ.
func ValueContains ¶
ValueContains applies the Contains predicate on the "value" field.
func ValueContainsFold ¶
ValueContainsFold applies the ContainsFold predicate on the "value" field.
func ValueEqualFold ¶
ValueEqualFold applies the EqualFold predicate on the "value" field.
func ValueHasPrefix ¶
ValueHasPrefix applies the HasPrefix predicate on the "value" field.
func ValueHasSuffix ¶
ValueHasSuffix applies the HasSuffix predicate on the "value" field.
func ValueNotIn ¶
ValueNotIn applies the NotIn predicate on the "value" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Metadata queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrgField ¶
func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrgField orders the results by org field.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByValue ¶
func ByValue(opts ...sql.OrderTermOption) OrderOption
ByValue orders the results by the value field.