Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.OrgPolicy) predicate.OrgPolicy
- func AppID(v int) predicate.OrgPolicy
- func AppIDEQ(v int) predicate.OrgPolicy
- func AppIDGT(v int) predicate.OrgPolicy
- func AppIDGTE(v int) predicate.OrgPolicy
- func AppIDIn(vs ...int) predicate.OrgPolicy
- func AppIDIsNil() predicate.OrgPolicy
- func AppIDLT(v int) predicate.OrgPolicy
- func AppIDLTE(v int) predicate.OrgPolicy
- func AppIDNEQ(v int) predicate.OrgPolicy
- func AppIDNotIn(vs ...int) predicate.OrgPolicy
- func AppIDNotNil() predicate.OrgPolicy
- func AppPolicyID(v int) predicate.OrgPolicy
- func AppPolicyIDEQ(v int) predicate.OrgPolicy
- func AppPolicyIDGT(v int) predicate.OrgPolicy
- func AppPolicyIDGTE(v int) predicate.OrgPolicy
- func AppPolicyIDIn(vs ...int) predicate.OrgPolicy
- func AppPolicyIDIsNil() predicate.OrgPolicy
- func AppPolicyIDLT(v int) predicate.OrgPolicy
- func AppPolicyIDLTE(v int) predicate.OrgPolicy
- func AppPolicyIDNEQ(v int) predicate.OrgPolicy
- func AppPolicyIDNotIn(vs ...int) predicate.OrgPolicy
- func AppPolicyIDNotNil() predicate.OrgPolicy
- func Comments(v string) predicate.OrgPolicy
- func CommentsContains(v string) predicate.OrgPolicy
- func CommentsContainsFold(v string) predicate.OrgPolicy
- func CommentsEQ(v string) predicate.OrgPolicy
- func CommentsEqualFold(v string) predicate.OrgPolicy
- func CommentsGT(v string) predicate.OrgPolicy
- func CommentsGTE(v string) predicate.OrgPolicy
- func CommentsHasPrefix(v string) predicate.OrgPolicy
- func CommentsHasSuffix(v string) predicate.OrgPolicy
- func CommentsIn(vs ...string) predicate.OrgPolicy
- func CommentsIsNil() predicate.OrgPolicy
- func CommentsLT(v string) predicate.OrgPolicy
- func CommentsLTE(v string) predicate.OrgPolicy
- func CommentsNEQ(v string) predicate.OrgPolicy
- func CommentsNotIn(vs ...string) predicate.OrgPolicy
- func CommentsNotNil() predicate.OrgPolicy
- func CreatedAt(v time.Time) predicate.OrgPolicy
- func CreatedAtEQ(v time.Time) predicate.OrgPolicy
- func CreatedAtGT(v time.Time) predicate.OrgPolicy
- func CreatedAtGTE(v time.Time) predicate.OrgPolicy
- func CreatedAtIn(vs ...time.Time) predicate.OrgPolicy
- func CreatedAtLT(v time.Time) predicate.OrgPolicy
- func CreatedAtLTE(v time.Time) predicate.OrgPolicy
- func CreatedAtNEQ(v time.Time) predicate.OrgPolicy
- func CreatedAtNotIn(vs ...time.Time) predicate.OrgPolicy
- func CreatedBy(v int) predicate.OrgPolicy
- func CreatedByEQ(v int) predicate.OrgPolicy
- func CreatedByGT(v int) predicate.OrgPolicy
- func CreatedByGTE(v int) predicate.OrgPolicy
- func CreatedByIn(vs ...int) predicate.OrgPolicy
- func CreatedByLT(v int) predicate.OrgPolicy
- func CreatedByLTE(v int) predicate.OrgPolicy
- func CreatedByNEQ(v int) predicate.OrgPolicy
- func CreatedByNotIn(vs ...int) predicate.OrgPolicy
- func HasOrg() predicate.OrgPolicy
- func HasOrgWith(preds ...predicate.Org) predicate.OrgPolicy
- func HasPermissions() predicate.OrgPolicy
- func HasPermissionsWith(preds ...predicate.Permission) predicate.OrgPolicy
- func ID(id int) predicate.OrgPolicy
- func IDEQ(id int) predicate.OrgPolicy
- func IDGT(id int) predicate.OrgPolicy
- func IDGTE(id int) predicate.OrgPolicy
- func IDIn(ids ...int) predicate.OrgPolicy
- func IDLT(id int) predicate.OrgPolicy
- func IDLTE(id int) predicate.OrgPolicy
- func IDNEQ(id int) predicate.OrgPolicy
- func IDNotIn(ids ...int) predicate.OrgPolicy
- func Name(v string) predicate.OrgPolicy
- func NameContains(v string) predicate.OrgPolicy
- func NameContainsFold(v string) predicate.OrgPolicy
- func NameEQ(v string) predicate.OrgPolicy
- func NameEqualFold(v string) predicate.OrgPolicy
- func NameGT(v string) predicate.OrgPolicy
- func NameGTE(v string) predicate.OrgPolicy
- func NameHasPrefix(v string) predicate.OrgPolicy
- func NameHasSuffix(v string) predicate.OrgPolicy
- func NameIn(vs ...string) predicate.OrgPolicy
- func NameLT(v string) predicate.OrgPolicy
- func NameLTE(v string) predicate.OrgPolicy
- func NameNEQ(v string) predicate.OrgPolicy
- func NameNotIn(vs ...string) predicate.OrgPolicy
- func Not(p predicate.OrgPolicy) predicate.OrgPolicy
- func Or(predicates ...predicate.OrgPolicy) predicate.OrgPolicy
- func OrgID(v int) predicate.OrgPolicy
- func OrgIDEQ(v int) predicate.OrgPolicy
- func OrgIDIn(vs ...int) predicate.OrgPolicy
- func OrgIDIsNil() predicate.OrgPolicy
- func OrgIDNEQ(v int) predicate.OrgPolicy
- func OrgIDNotIn(vs ...int) predicate.OrgPolicy
- func OrgIDNotNil() predicate.OrgPolicy
- func UpdatedAt(v time.Time) predicate.OrgPolicy
- func UpdatedAtEQ(v time.Time) predicate.OrgPolicy
- func UpdatedAtGT(v time.Time) predicate.OrgPolicy
- func UpdatedAtGTE(v time.Time) predicate.OrgPolicy
- func UpdatedAtIn(vs ...time.Time) predicate.OrgPolicy
- func UpdatedAtIsNil() predicate.OrgPolicy
- func UpdatedAtLT(v time.Time) predicate.OrgPolicy
- func UpdatedAtLTE(v time.Time) predicate.OrgPolicy
- func UpdatedAtNEQ(v time.Time) predicate.OrgPolicy
- func UpdatedAtNotIn(vs ...time.Time) predicate.OrgPolicy
- func UpdatedAtNotNil() predicate.OrgPolicy
- func UpdatedBy(v int) predicate.OrgPolicy
- func UpdatedByEQ(v int) predicate.OrgPolicy
- func UpdatedByGT(v int) predicate.OrgPolicy
- func UpdatedByGTE(v int) predicate.OrgPolicy
- func UpdatedByIn(vs ...int) predicate.OrgPolicy
- func UpdatedByIsNil() predicate.OrgPolicy
- func UpdatedByLT(v int) predicate.OrgPolicy
- func UpdatedByLTE(v int) predicate.OrgPolicy
- func UpdatedByNEQ(v int) predicate.OrgPolicy
- func UpdatedByNotIn(vs ...int) predicate.OrgPolicy
- func UpdatedByNotNil() predicate.OrgPolicy
- func ValidColumn(column string) bool
- type OrderOption
- func ByAppID(opts ...sql.OrderTermOption) OrderOption
- func ByAppPolicyID(opts ...sql.OrderTermOption) OrderOption
- func ByComments(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOrgID(opts ...sql.OrderTermOption) OrderOption
- func ByPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPermissionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the orgpolicy type in the database. Label = "org_policy" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldOrgID holds the string denoting the org_id field in the database. FieldOrgID = "org_id" // FieldAppID holds the string denoting the app_id field in the database. FieldAppID = "app_id" // FieldAppPolicyID holds the string denoting the app_policy_id field in the database. FieldAppPolicyID = "app_policy_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldComments holds the string denoting the comments field in the database. FieldComments = "comments" // FieldRules holds the string denoting the rules field in the database. FieldRules = "rules" // EdgeOrg holds the string denoting the org edge name in mutations. EdgeOrg = "org" // EdgePermissions holds the string denoting the permissions edge name in mutations. EdgePermissions = "permissions" // Table holds the table name of the orgpolicy in the database. Table = "org_policy" // OrgTable is the table that holds the org relation/edge. OrgTable = "org_policy" // OrgInverseTable is the table name for the Org entity. // It exists in this package in order to avoid circular dependency with the "org" package. OrgInverseTable = "org" // OrgColumn is the table column denoting the org relation/edge. OrgColumn = "org_id" // PermissionsTable is the table that holds the permissions relation/edge. PermissionsTable = "permission" // PermissionsInverseTable is the table name for the Permission entity. // It exists in this package in order to avoid circular dependency with the "permission" package. PermissionsInverseTable = "permission" // PermissionsColumn is the table column denoting the permissions relation/edge. PermissionsColumn = "org_policy_id" )
Variables ¶
var ( Hooks [3]ent.Hook // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() int )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/woocoos/knockout/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldOrgID, FieldAppID, FieldAppPolicyID, FieldName, FieldComments, FieldRules, }
Columns holds all SQL columns for orgpolicy fields.
Functions ¶
func AppID ¶
AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.
func AppIDIsNil ¶
AppIDIsNil applies the IsNil predicate on the "app_id" field.
func AppIDNotIn ¶
AppIDNotIn applies the NotIn predicate on the "app_id" field.
func AppIDNotNil ¶
AppIDNotNil applies the NotNil predicate on the "app_id" field.
func AppPolicyID ¶
AppPolicyID applies equality check predicate on the "app_policy_id" field. It's identical to AppPolicyIDEQ.
func AppPolicyIDEQ ¶
AppPolicyIDEQ applies the EQ predicate on the "app_policy_id" field.
func AppPolicyIDGT ¶
AppPolicyIDGT applies the GT predicate on the "app_policy_id" field.
func AppPolicyIDGTE ¶
AppPolicyIDGTE applies the GTE predicate on the "app_policy_id" field.
func AppPolicyIDIn ¶
AppPolicyIDIn applies the In predicate on the "app_policy_id" field.
func AppPolicyIDIsNil ¶
AppPolicyIDIsNil applies the IsNil predicate on the "app_policy_id" field.
func AppPolicyIDLT ¶
AppPolicyIDLT applies the LT predicate on the "app_policy_id" field.
func AppPolicyIDLTE ¶
AppPolicyIDLTE applies the LTE predicate on the "app_policy_id" field.
func AppPolicyIDNEQ ¶
AppPolicyIDNEQ applies the NEQ predicate on the "app_policy_id" field.
func AppPolicyIDNotIn ¶
AppPolicyIDNotIn applies the NotIn predicate on the "app_policy_id" field.
func AppPolicyIDNotNil ¶
AppPolicyIDNotNil applies the NotNil predicate on the "app_policy_id" field.
func Comments ¶
Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.
func CommentsContains ¶
CommentsContains applies the Contains predicate on the "comments" field.
func CommentsContainsFold ¶
CommentsContainsFold applies the ContainsFold predicate on the "comments" field.
func CommentsEQ ¶
CommentsEQ applies the EQ predicate on the "comments" field.
func CommentsEqualFold ¶
CommentsEqualFold applies the EqualFold predicate on the "comments" field.
func CommentsGT ¶
CommentsGT applies the GT predicate on the "comments" field.
func CommentsGTE ¶
CommentsGTE applies the GTE predicate on the "comments" field.
func CommentsHasPrefix ¶
CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.
func CommentsHasSuffix ¶
CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.
func CommentsIn ¶
CommentsIn applies the In predicate on the "comments" field.
func CommentsIsNil ¶
CommentsIsNil applies the IsNil predicate on the "comments" field.
func CommentsLT ¶
CommentsLT applies the LT predicate on the "comments" field.
func CommentsLTE ¶
CommentsLTE applies the LTE predicate on the "comments" field.
func CommentsNEQ ¶
CommentsNEQ applies the NEQ predicate on the "comments" field.
func CommentsNotIn ¶
CommentsNotIn applies the NotIn predicate on the "comments" field.
func CommentsNotNil ¶
CommentsNotNil applies the NotNil predicate on the "comments" 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 CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func HasOrgWith ¶
HasOrgWith applies the HasEdge predicate on the "org" edge with a given conditions (other predicates).
func HasPermissions ¶
HasPermissions applies the HasEdge predicate on the "permissions" edge.
func HasPermissionsWith ¶
func HasPermissionsWith(preds ...predicate.Permission) predicate.OrgPolicy
HasPermissionsWith applies the HasEdge predicate on the "permissions" edge with a given conditions (other predicates).
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 OrgID ¶
OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.
func OrgIDIsNil ¶
OrgIDIsNil applies the IsNil predicate on the "org_id" field.
func OrgIDNotIn ¶
OrgIDNotIn applies the NotIn predicate on the "org_id" field.
func OrgIDNotNil ¶
OrgIDNotNil applies the NotNil predicate on the "org_id" 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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 OrgPolicy queries.
func ByAppID ¶
func ByAppID(opts ...sql.OrderTermOption) OrderOption
ByAppID orders the results by the app_id field.
func ByAppPolicyID ¶
func ByAppPolicyID(opts ...sql.OrderTermOption) OrderOption
ByAppPolicyID orders the results by the app_policy_id field.
func ByComments ¶
func ByComments(opts ...sql.OrderTermOption) OrderOption
ByComments orders the results by the comments field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrgField ¶
func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption
ByOrgField orders the results by org field.
func ByOrgID ¶
func ByOrgID(opts ...sql.OrderTermOption) OrderOption
ByOrgID orders the results by the org_id field.
func ByPermissions ¶
func ByPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPermissions orders the results by permissions terms.
func ByPermissionsCount ¶
func ByPermissionsCount(opts ...sql.OrderTermOption) OrderOption
ByPermissionsCount orders the results by permissions count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.