Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Site) predicate.Site
- func Created(v time.Time) predicate.Site
- func CreatedEQ(v time.Time) predicate.Site
- func CreatedGT(v time.Time) predicate.Site
- func CreatedGTE(v time.Time) predicate.Site
- func CreatedIn(vs ...time.Time) predicate.Site
- func CreatedIsNil() predicate.Site
- func CreatedLT(v time.Time) predicate.Site
- func CreatedLTE(v time.Time) predicate.Site
- func CreatedNEQ(v time.Time) predicate.Site
- func CreatedNotIn(vs ...time.Time) predicate.Site
- func CreatedNotNil() predicate.Site
- func Description(v string) predicate.Site
- func DescriptionContains(v string) predicate.Site
- func DescriptionContainsFold(v string) predicate.Site
- func DescriptionEQ(v string) predicate.Site
- func DescriptionEqualFold(v string) predicate.Site
- func DescriptionGT(v string) predicate.Site
- func DescriptionGTE(v string) predicate.Site
- func DescriptionHasPrefix(v string) predicate.Site
- func DescriptionHasSuffix(v string) predicate.Site
- func DescriptionIn(vs ...string) predicate.Site
- func DescriptionIsNil() predicate.Site
- func DescriptionLT(v string) predicate.Site
- func DescriptionLTE(v string) predicate.Site
- func DescriptionNEQ(v string) predicate.Site
- func DescriptionNotIn(vs ...string) predicate.Site
- func DescriptionNotNil() predicate.Site
- func Domain(v string) predicate.Site
- func DomainContains(v string) predicate.Site
- func DomainContainsFold(v string) predicate.Site
- func DomainEQ(v string) predicate.Site
- func DomainEqualFold(v string) predicate.Site
- func DomainGT(v string) predicate.Site
- func DomainGTE(v string) predicate.Site
- func DomainHasPrefix(v string) predicate.Site
- func DomainHasSuffix(v string) predicate.Site
- func DomainIn(vs ...string) predicate.Site
- func DomainIsNil() predicate.Site
- func DomainLT(v string) predicate.Site
- func DomainLTE(v string) predicate.Site
- func DomainNEQ(v string) predicate.Site
- func DomainNotIn(vs ...string) predicate.Site
- func DomainNotNil() predicate.Site
- func HasAgents() predicate.Site
- func HasAgentsWith(preds ...predicate.Agent) predicate.Site
- func HasProfiles() predicate.Site
- func HasProfilesWith(preds ...predicate.Profile) predicate.Site
- func HasTenant() predicate.Site
- func HasTenantWith(preds ...predicate.Tenant) predicate.Site
- func ID(id int) predicate.Site
- func IDEQ(id int) predicate.Site
- func IDGT(id int) predicate.Site
- func IDGTE(id int) predicate.Site
- func IDIn(ids ...int) predicate.Site
- func IDLT(id int) predicate.Site
- func IDLTE(id int) predicate.Site
- func IDNEQ(id int) predicate.Site
- func IDNotIn(ids ...int) predicate.Site
- func IsDefault(v bool) predicate.Site
- func IsDefaultEQ(v bool) predicate.Site
- func IsDefaultIsNil() predicate.Site
- func IsDefaultNEQ(v bool) predicate.Site
- func IsDefaultNotNil() predicate.Site
- func Modified(v time.Time) predicate.Site
- func ModifiedEQ(v time.Time) predicate.Site
- func ModifiedGT(v time.Time) predicate.Site
- func ModifiedGTE(v time.Time) predicate.Site
- func ModifiedIn(vs ...time.Time) predicate.Site
- func ModifiedIsNil() predicate.Site
- func ModifiedLT(v time.Time) predicate.Site
- func ModifiedLTE(v time.Time) predicate.Site
- func ModifiedNEQ(v time.Time) predicate.Site
- func ModifiedNotIn(vs ...time.Time) predicate.Site
- func ModifiedNotNil() predicate.Site
- func Not(p predicate.Site) predicate.Site
- func Or(predicates ...predicate.Site) predicate.Site
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAgentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreated(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByDomain(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByModified(opts ...sql.OrderTermOption) OrderOption
- func ByProfiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProfilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the site type in the database. Label = "site" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldIsDefault holds the string denoting the is_default field in the database. FieldIsDefault = "is_default" // FieldDomain holds the string denoting the domain field in the database. FieldDomain = "domain" // FieldCreated holds the string denoting the created field in the database. FieldCreated = "created" // FieldModified holds the string denoting the modified field in the database. FieldModified = "modified" // EdgeTenant holds the string denoting the tenant edge name in mutations. EdgeTenant = "tenant" // EdgeAgents holds the string denoting the agents edge name in mutations. EdgeAgents = "agents" // EdgeProfiles holds the string denoting the profiles edge name in mutations. EdgeProfiles = "profiles" // AgentFieldID holds the string denoting the ID field of the Agent. AgentFieldID = "oid" // Table holds the table name of the site in the database. Table = "sites" // TenantTable is the table that holds the tenant relation/edge. TenantTable = "sites" // TenantInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. TenantInverseTable = "tenants" // TenantColumn is the table column denoting the tenant relation/edge. TenantColumn = "tenant_sites" // AgentsTable is the table that holds the agents relation/edge. The primary key declared below. AgentsTable = "site_agents" // AgentsInverseTable is the table name for the Agent entity. // It exists in this package in order to avoid circular dependency with the "agent" package. AgentsInverseTable = "agents" // ProfilesTable is the table that holds the profiles relation/edge. ProfilesTable = "profiles" // ProfilesInverseTable is the table name for the Profile entity. // It exists in this package in order to avoid circular dependency with the "profile" package. ProfilesInverseTable = "profiles" // ProfilesColumn is the table column denoting the profiles relation/edge. ProfilesColumn = "site_profiles" )
Variables ¶
var ( // DefaultCreated holds the default value on creation for the "created" field. DefaultCreated func() time.Time // DefaultModified holds the default value on creation for the "modified" field. DefaultModified func() time.Time // UpdateDefaultModified holds the default value on update for the "modified" field. UpdateDefaultModified func() time.Time )
var ( // AgentsPrimaryKey and AgentsColumn2 are the table columns denoting the // primary key for the agents relation (M2M). AgentsPrimaryKey = []string{"site_id", "agent_id"} )
var Columns = []string{ FieldID, FieldDescription, FieldIsDefault, FieldDomain, FieldCreated, FieldModified, }
Columns holds all SQL columns for site fields.
var ForeignKeys = []string{
"tenant_sites",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "sites" table and are not defined as standalone fields in the schema.
Functions ¶
func Created ¶
Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.
func CreatedGTE ¶
CreatedGTE applies the GTE predicate on the "created" field.
func CreatedIsNil ¶
CreatedIsNil applies the IsNil predicate on the "created" field.
func CreatedLTE ¶
CreatedLTE applies the LTE predicate on the "created" field.
func CreatedNEQ ¶
CreatedNEQ applies the NEQ predicate on the "created" field.
func CreatedNotIn ¶
CreatedNotIn applies the NotIn predicate on the "created" field.
func CreatedNotNil ¶
CreatedNotNil applies the NotNil predicate on the "created" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func Domain ¶
Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.
func DomainContains ¶
DomainContains applies the Contains predicate on the "domain" field.
func DomainContainsFold ¶
DomainContainsFold applies the ContainsFold predicate on the "domain" field.
func DomainEqualFold ¶
DomainEqualFold applies the EqualFold predicate on the "domain" field.
func DomainHasPrefix ¶
DomainHasPrefix applies the HasPrefix predicate on the "domain" field.
func DomainHasSuffix ¶
DomainHasSuffix applies the HasSuffix predicate on the "domain" field.
func DomainIsNil ¶
DomainIsNil applies the IsNil predicate on the "domain" field.
func DomainNotIn ¶
DomainNotIn applies the NotIn predicate on the "domain" field.
func DomainNotNil ¶
DomainNotNil applies the NotNil predicate on the "domain" field.
func HasAgentsWith ¶
HasAgentsWith applies the HasEdge predicate on the "agents" edge with a given conditions (other predicates).
func HasProfiles ¶
HasProfiles applies the HasEdge predicate on the "profiles" edge.
func HasProfilesWith ¶
HasProfilesWith applies the HasEdge predicate on the "profiles" edge with a given conditions (other predicates).
func HasTenantWith ¶
HasTenantWith applies the HasEdge predicate on the "tenant" edge with a given conditions (other predicates).
func IsDefault ¶
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultIsNil ¶
IsDefaultIsNil applies the IsNil predicate on the "is_default" field.
func IsDefaultNEQ ¶
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func IsDefaultNotNil ¶
IsDefaultNotNil applies the NotNil predicate on the "is_default" field.
func Modified ¶
Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.
func ModifiedEQ ¶
ModifiedEQ applies the EQ predicate on the "modified" field.
func ModifiedGT ¶
ModifiedGT applies the GT predicate on the "modified" field.
func ModifiedGTE ¶
ModifiedGTE applies the GTE predicate on the "modified" field.
func ModifiedIn ¶
ModifiedIn applies the In predicate on the "modified" field.
func ModifiedIsNil ¶
ModifiedIsNil applies the IsNil predicate on the "modified" field.
func ModifiedLT ¶
ModifiedLT applies the LT predicate on the "modified" field.
func ModifiedLTE ¶
ModifiedLTE applies the LTE predicate on the "modified" field.
func ModifiedNEQ ¶
ModifiedNEQ applies the NEQ predicate on the "modified" field.
func ModifiedNotIn ¶
ModifiedNotIn applies the NotIn predicate on the "modified" field.
func ModifiedNotNil ¶
ModifiedNotNil applies the NotNil predicate on the "modified" 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 Site queries.
func ByAgents ¶
func ByAgents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAgents orders the results by agents terms.
func ByAgentsCount ¶
func ByAgentsCount(opts ...sql.OrderTermOption) OrderOption
ByAgentsCount orders the results by agents count.
func ByCreated ¶
func ByCreated(opts ...sql.OrderTermOption) OrderOption
ByCreated orders the results by the created field.
func ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByDomain ¶
func ByDomain(opts ...sql.OrderTermOption) OrderOption
ByDomain orders the results by the domain field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsDefault ¶
func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
ByIsDefault orders the results by the is_default field.
func ByModified ¶
func ByModified(opts ...sql.OrderTermOption) OrderOption
ByModified orders the results by the modified field.
func ByProfiles ¶
func ByProfiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProfiles orders the results by profiles terms.
func ByProfilesCount ¶
func ByProfilesCount(opts ...sql.OrderTermOption) OrderOption
ByProfilesCount orders the results by profiles count.
func ByTenantField ¶
func ByTenantField(field string, opts ...sql.OrderTermOption) OrderOption
ByTenantField orders the results by tenant field.