Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.AppRole) predicate.AppRole
- func Application(v string) predicate.AppRole
- func ApplicationContains(v string) predicate.AppRole
- func ApplicationContainsFold(v string) predicate.AppRole
- func ApplicationEQ(v string) predicate.AppRole
- func ApplicationEqualFold(v string) predicate.AppRole
- func ApplicationGT(v string) predicate.AppRole
- func ApplicationGTE(v string) predicate.AppRole
- func ApplicationHasPrefix(v string) predicate.AppRole
- func ApplicationHasSuffix(v string) predicate.AppRole
- func ApplicationIn(vs ...string) predicate.AppRole
- func ApplicationLT(v string) predicate.AppRole
- func ApplicationLTE(v string) predicate.AppRole
- func ApplicationNEQ(v string) predicate.AppRole
- func ApplicationNotIn(vs ...string) predicate.AppRole
- func AssignedBy(v uuid.UUID) predicate.AppRole
- func AssignedByEQ(v uuid.UUID) predicate.AppRole
- func AssignedByIn(vs ...uuid.UUID) predicate.AppRole
- func AssignedByIsNil() predicate.AppRole
- func AssignedByNEQ(v uuid.UUID) predicate.AppRole
- func AssignedByNotIn(vs ...uuid.UUID) predicate.AppRole
- func AssignedByNotNil() predicate.AppRole
- func CreatedAt(v time.Time) predicate.AppRole
- func CreatedAtEQ(v time.Time) predicate.AppRole
- func CreatedAtGT(v time.Time) predicate.AppRole
- func CreatedAtGTE(v time.Time) predicate.AppRole
- func CreatedAtIn(vs ...time.Time) predicate.AppRole
- func CreatedAtLT(v time.Time) predicate.AppRole
- func CreatedAtLTE(v time.Time) predicate.AppRole
- func CreatedAtNEQ(v time.Time) predicate.AppRole
- func CreatedAtNotIn(vs ...time.Time) predicate.AppRole
- func HasAssigner() predicate.AppRole
- func HasAssignerWith(preds ...predicate.Principal) predicate.AppRole
- func HasOrganization() predicate.AppRole
- func HasOrganizationWith(preds ...predicate.Organization) predicate.AppRole
- func HasPrincipal() predicate.AppRole
- func HasPrincipalWith(preds ...predicate.Principal) predicate.AppRole
- func ID(id uuid.UUID) predicate.AppRole
- func IDEQ(id uuid.UUID) predicate.AppRole
- func IDGT(id uuid.UUID) predicate.AppRole
- func IDGTE(id uuid.UUID) predicate.AppRole
- func IDIn(ids ...uuid.UUID) predicate.AppRole
- func IDLT(id uuid.UUID) predicate.AppRole
- func IDLTE(id uuid.UUID) predicate.AppRole
- func IDNEQ(id uuid.UUID) predicate.AppRole
- func IDNotIn(ids ...uuid.UUID) predicate.AppRole
- func Not(p predicate.AppRole) predicate.AppRole
- func Or(predicates ...predicate.AppRole) predicate.AppRole
- func OrganizationID(v uuid.UUID) predicate.AppRole
- func OrganizationIDEQ(v uuid.UUID) predicate.AppRole
- func OrganizationIDIn(vs ...uuid.UUID) predicate.AppRole
- func OrganizationIDNEQ(v uuid.UUID) predicate.AppRole
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.AppRole
- func PrincipalID(v uuid.UUID) predicate.AppRole
- func PrincipalIDEQ(v uuid.UUID) predicate.AppRole
- func PrincipalIDIn(vs ...uuid.UUID) predicate.AppRole
- func PrincipalIDNEQ(v uuid.UUID) predicate.AppRole
- func PrincipalIDNotIn(vs ...uuid.UUID) predicate.AppRole
- func Role(v string) predicate.AppRole
- func RoleContains(v string) predicate.AppRole
- func RoleContainsFold(v string) predicate.AppRole
- func RoleEQ(v string) predicate.AppRole
- func RoleEqualFold(v string) predicate.AppRole
- func RoleGT(v string) predicate.AppRole
- func RoleGTE(v string) predicate.AppRole
- func RoleHasPrefix(v string) predicate.AppRole
- func RoleHasSuffix(v string) predicate.AppRole
- func RoleIn(vs ...string) predicate.AppRole
- func RoleLT(v string) predicate.AppRole
- func RoleLTE(v string) predicate.AppRole
- func RoleNEQ(v string) predicate.AppRole
- func RoleNotIn(vs ...string) predicate.AppRole
- func UpdatedAt(v time.Time) predicate.AppRole
- func UpdatedAtEQ(v time.Time) predicate.AppRole
- func UpdatedAtGT(v time.Time) predicate.AppRole
- func UpdatedAtGTE(v time.Time) predicate.AppRole
- func UpdatedAtIn(vs ...time.Time) predicate.AppRole
- func UpdatedAtLT(v time.Time) predicate.AppRole
- func UpdatedAtLTE(v time.Time) predicate.AppRole
- func UpdatedAtNEQ(v time.Time) predicate.AppRole
- func UpdatedAtNotIn(vs ...time.Time) predicate.AppRole
- func ValidColumn(column string) bool
- type OrderOption
- func ByApplication(opts ...sql.OrderTermOption) OrderOption
- func ByAssignedBy(opts ...sql.OrderTermOption) OrderOption
- func ByAssignerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the approle type in the database. Label = "app_role" // 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" // FieldPrincipalID holds the string denoting the principal_id field in the database. FieldPrincipalID = "principal_id" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // FieldApplication holds the string denoting the application field in the database. FieldApplication = "application" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldAssignedBy holds the string denoting the assigned_by field in the database. FieldAssignedBy = "assigned_by" // EdgePrincipal holds the string denoting the principal edge name in mutations. EdgePrincipal = "principal" // EdgeOrganization holds the string denoting the organization edge name in mutations. EdgeOrganization = "organization" // EdgeAssigner holds the string denoting the assigner edge name in mutations. EdgeAssigner = "assigner" // Table holds the table name of the approle in the database. Table = "sf_app_roles" // PrincipalTable is the table that holds the principal relation/edge. PrincipalTable = "sf_app_roles" // PrincipalInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. PrincipalInverseTable = "sf_principals" // PrincipalColumn is the table column denoting the principal relation/edge. PrincipalColumn = "principal_id" // OrganizationTable is the table that holds the organization relation/edge. OrganizationTable = "sf_app_roles" // OrganizationInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationInverseTable = "sf_organizations" // OrganizationColumn is the table column denoting the organization relation/edge. OrganizationColumn = "organization_id" // AssignerTable is the table that holds the assigner relation/edge. AssignerTable = "sf_app_roles" // AssignerInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. AssignerInverseTable = "sf_principals" // AssignerColumn is the table column denoting the assigner relation/edge. AssignerColumn = "assigned_by" )
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 // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // ApplicationValidator is a validator for the "application" field. It is called by the builders before save. ApplicationValidator func(string) error // RoleValidator is a validator for the "role" field. It is called by the builders before save. RoleValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldPrincipalID, FieldOrganizationID, FieldApplication, FieldRole, FieldAssignedBy, }
Columns holds all SQL columns for approle fields.
Functions ¶
func Application ¶
Application applies equality check predicate on the "application" field. It's identical to ApplicationEQ.
func ApplicationContains ¶
ApplicationContains applies the Contains predicate on the "application" field.
func ApplicationContainsFold ¶
ApplicationContainsFold applies the ContainsFold predicate on the "application" field.
func ApplicationEQ ¶
ApplicationEQ applies the EQ predicate on the "application" field.
func ApplicationEqualFold ¶
ApplicationEqualFold applies the EqualFold predicate on the "application" field.
func ApplicationGT ¶
ApplicationGT applies the GT predicate on the "application" field.
func ApplicationGTE ¶
ApplicationGTE applies the GTE predicate on the "application" field.
func ApplicationHasPrefix ¶
ApplicationHasPrefix applies the HasPrefix predicate on the "application" field.
func ApplicationHasSuffix ¶
ApplicationHasSuffix applies the HasSuffix predicate on the "application" field.
func ApplicationIn ¶
ApplicationIn applies the In predicate on the "application" field.
func ApplicationLT ¶
ApplicationLT applies the LT predicate on the "application" field.
func ApplicationLTE ¶
ApplicationLTE applies the LTE predicate on the "application" field.
func ApplicationNEQ ¶
ApplicationNEQ applies the NEQ predicate on the "application" field.
func ApplicationNotIn ¶
ApplicationNotIn applies the NotIn predicate on the "application" field.
func AssignedBy ¶
AssignedBy applies equality check predicate on the "assigned_by" field. It's identical to AssignedByEQ.
func AssignedByEQ ¶
AssignedByEQ applies the EQ predicate on the "assigned_by" field.
func AssignedByIn ¶
AssignedByIn applies the In predicate on the "assigned_by" field.
func AssignedByIsNil ¶
AssignedByIsNil applies the IsNil predicate on the "assigned_by" field.
func AssignedByNEQ ¶
AssignedByNEQ applies the NEQ predicate on the "assigned_by" field.
func AssignedByNotIn ¶
AssignedByNotIn applies the NotIn predicate on the "assigned_by" field.
func AssignedByNotNil ¶
AssignedByNotNil applies the NotNil predicate on the "assigned_by" field.
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 HasAssigner ¶
HasAssigner applies the HasEdge predicate on the "assigner" edge.
func HasAssignerWith ¶
HasAssignerWith applies the HasEdge predicate on the "assigner" edge with a given conditions (other predicates).
func HasOrganization ¶
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.AppRole
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasPrincipal ¶
HasPrincipal applies the HasEdge predicate on the "principal" edge.
func HasPrincipalWith ¶
HasPrincipalWith applies the HasEdge predicate on the "principal" edge with a given conditions (other predicates).
func OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func PrincipalID ¶
PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.
func PrincipalIDEQ ¶
PrincipalIDEQ applies the EQ predicate on the "principal_id" field.
func PrincipalIDIn ¶
PrincipalIDIn applies the In predicate on the "principal_id" field.
func PrincipalIDNEQ ¶
PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.
func PrincipalIDNotIn ¶
PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.
func RoleContains ¶
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEqualFold ¶
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleHasPrefix ¶
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
RoleHasSuffix applies the HasSuffix predicate on the "role" 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).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the AppRole queries.
func ByApplication ¶
func ByApplication(opts ...sql.OrderTermOption) OrderOption
ByApplication orders the results by the application field.
func ByAssignedBy ¶
func ByAssignedBy(opts ...sql.OrderTermOption) OrderOption
ByAssignedBy orders the results by the assigned_by field.
func ByAssignerField ¶
func ByAssignerField(field string, opts ...sql.OrderTermOption) OrderOption
ByAssignerField orders the results by assigner field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByOrganizationField ¶
func ByOrganizationField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrganizationField orders the results by organization field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByPrincipalField ¶
func ByPrincipalField(field string, opts ...sql.OrderTermOption) OrderOption
ByPrincipalField orders the results by principal field.
func ByPrincipalID ¶
func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByPrincipalID orders the results by the principal_id field.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.