Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ResourceGrant) predicate.ResourceGrant
- func CreatedAt(v time.Time) predicate.ResourceGrant
- func CreatedAtEQ(v time.Time) predicate.ResourceGrant
- func CreatedAtGT(v time.Time) predicate.ResourceGrant
- func CreatedAtGTE(v time.Time) predicate.ResourceGrant
- func CreatedAtIn(vs ...time.Time) predicate.ResourceGrant
- func CreatedAtLT(v time.Time) predicate.ResourceGrant
- func CreatedAtLTE(v time.Time) predicate.ResourceGrant
- func CreatedAtNEQ(v time.Time) predicate.ResourceGrant
- func CreatedAtNotIn(vs ...time.Time) predicate.ResourceGrant
- func GrantedBy(v uuid.UUID) predicate.ResourceGrant
- func GrantedByEQ(v uuid.UUID) predicate.ResourceGrant
- func GrantedByIn(vs ...uuid.UUID) predicate.ResourceGrant
- func GrantedByIsNil() predicate.ResourceGrant
- func GrantedByNEQ(v uuid.UUID) predicate.ResourceGrant
- func GrantedByNotIn(vs ...uuid.UUID) predicate.ResourceGrant
- func GrantedByNotNil() predicate.ResourceGrant
- func HasGranter() predicate.ResourceGrant
- func HasGranterWith(preds ...predicate.Principal) predicate.ResourceGrant
- func HasOrganization() predicate.ResourceGrant
- func HasOrganizationWith(preds ...predicate.Organization) predicate.ResourceGrant
- func HasPrincipal() predicate.ResourceGrant
- func HasPrincipalWith(preds ...predicate.Principal) predicate.ResourceGrant
- func ID(id uuid.UUID) predicate.ResourceGrant
- func IDEQ(id uuid.UUID) predicate.ResourceGrant
- func IDGT(id uuid.UUID) predicate.ResourceGrant
- func IDGTE(id uuid.UUID) predicate.ResourceGrant
- func IDIn(ids ...uuid.UUID) predicate.ResourceGrant
- func IDLT(id uuid.UUID) predicate.ResourceGrant
- func IDLTE(id uuid.UUID) predicate.ResourceGrant
- func IDNEQ(id uuid.UUID) predicate.ResourceGrant
- func IDNotIn(ids ...uuid.UUID) predicate.ResourceGrant
- func Not(p predicate.ResourceGrant) predicate.ResourceGrant
- func Or(predicates ...predicate.ResourceGrant) predicate.ResourceGrant
- func OrganizationID(v uuid.UUID) predicate.ResourceGrant
- func OrganizationIDEQ(v uuid.UUID) predicate.ResourceGrant
- func OrganizationIDIn(vs ...uuid.UUID) predicate.ResourceGrant
- func OrganizationIDNEQ(v uuid.UUID) predicate.ResourceGrant
- func OrganizationIDNotIn(vs ...uuid.UUID) predicate.ResourceGrant
- func PrincipalID(v uuid.UUID) predicate.ResourceGrant
- func PrincipalIDEQ(v uuid.UUID) predicate.ResourceGrant
- func PrincipalIDIn(vs ...uuid.UUID) predicate.ResourceGrant
- func PrincipalIDNEQ(v uuid.UUID) predicate.ResourceGrant
- func PrincipalIDNotIn(vs ...uuid.UUID) predicate.ResourceGrant
- func ResourceID(v string) predicate.ResourceGrant
- func ResourceIDContains(v string) predicate.ResourceGrant
- func ResourceIDContainsFold(v string) predicate.ResourceGrant
- func ResourceIDEQ(v string) predicate.ResourceGrant
- func ResourceIDEqualFold(v string) predicate.ResourceGrant
- func ResourceIDGT(v string) predicate.ResourceGrant
- func ResourceIDGTE(v string) predicate.ResourceGrant
- func ResourceIDHasPrefix(v string) predicate.ResourceGrant
- func ResourceIDHasSuffix(v string) predicate.ResourceGrant
- func ResourceIDIn(vs ...string) predicate.ResourceGrant
- func ResourceIDLT(v string) predicate.ResourceGrant
- func ResourceIDLTE(v string) predicate.ResourceGrant
- func ResourceIDNEQ(v string) predicate.ResourceGrant
- func ResourceIDNotIn(vs ...string) predicate.ResourceGrant
- func ResourceType(v string) predicate.ResourceGrant
- func ResourceTypeContains(v string) predicate.ResourceGrant
- func ResourceTypeContainsFold(v string) predicate.ResourceGrant
- func ResourceTypeEQ(v string) predicate.ResourceGrant
- func ResourceTypeEqualFold(v string) predicate.ResourceGrant
- func ResourceTypeGT(v string) predicate.ResourceGrant
- func ResourceTypeGTE(v string) predicate.ResourceGrant
- func ResourceTypeHasPrefix(v string) predicate.ResourceGrant
- func ResourceTypeHasSuffix(v string) predicate.ResourceGrant
- func ResourceTypeIn(vs ...string) predicate.ResourceGrant
- func ResourceTypeLT(v string) predicate.ResourceGrant
- func ResourceTypeLTE(v string) predicate.ResourceGrant
- func ResourceTypeNEQ(v string) predicate.ResourceGrant
- func ResourceTypeNotIn(vs ...string) predicate.ResourceGrant
- func Role(v string) predicate.ResourceGrant
- func RoleContains(v string) predicate.ResourceGrant
- func RoleContainsFold(v string) predicate.ResourceGrant
- func RoleEQ(v string) predicate.ResourceGrant
- func RoleEqualFold(v string) predicate.ResourceGrant
- func RoleGT(v string) predicate.ResourceGrant
- func RoleGTE(v string) predicate.ResourceGrant
- func RoleHasPrefix(v string) predicate.ResourceGrant
- func RoleHasSuffix(v string) predicate.ResourceGrant
- func RoleIn(vs ...string) predicate.ResourceGrant
- func RoleLT(v string) predicate.ResourceGrant
- func RoleLTE(v string) predicate.ResourceGrant
- func RoleNEQ(v string) predicate.ResourceGrant
- func RoleNotIn(vs ...string) predicate.ResourceGrant
- func UpdatedAt(v time.Time) predicate.ResourceGrant
- func UpdatedAtEQ(v time.Time) predicate.ResourceGrant
- func UpdatedAtGT(v time.Time) predicate.ResourceGrant
- func UpdatedAtGTE(v time.Time) predicate.ResourceGrant
- func UpdatedAtIn(vs ...time.Time) predicate.ResourceGrant
- func UpdatedAtLT(v time.Time) predicate.ResourceGrant
- func UpdatedAtLTE(v time.Time) predicate.ResourceGrant
- func UpdatedAtNEQ(v time.Time) predicate.ResourceGrant
- func UpdatedAtNotIn(vs ...time.Time) predicate.ResourceGrant
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByGrantedBy(opts ...sql.OrderTermOption) OrderOption
- func ByGranterField(field string, 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 ByResourceID(opts ...sql.OrderTermOption) OrderOption
- func ByResourceType(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 resourcegrant type in the database. Label = "resource_grant" // 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" // FieldResourceType holds the string denoting the resource_type field in the database. FieldResourceType = "resource_type" // FieldResourceID holds the string denoting the resource_id field in the database. FieldResourceID = "resource_id" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // FieldGrantedBy holds the string denoting the granted_by field in the database. FieldGrantedBy = "granted_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" // EdgeGranter holds the string denoting the granter edge name in mutations. EdgeGranter = "granter" // Table holds the table name of the resourcegrant in the database. Table = "sf_resource_grants" // PrincipalTable is the table that holds the principal relation/edge. PrincipalTable = "sf_resource_grants" // 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_resource_grants" // 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" // GranterTable is the table that holds the granter relation/edge. GranterTable = "sf_resource_grants" // GranterInverseTable is the table name for the Principal entity. // It exists in this package in order to avoid circular dependency with the "principal" package. GranterInverseTable = "sf_principals" // GranterColumn is the table column denoting the granter relation/edge. GranterColumn = "granted_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 // ResourceTypeValidator is a validator for the "resource_type" field. It is called by the builders before save. ResourceTypeValidator func(string) error // ResourceIDValidator is a validator for the "resource_id" field. It is called by the builders before save. ResourceIDValidator 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, FieldResourceType, FieldResourceID, FieldRole, FieldGrantedBy, }
Columns holds all SQL columns for resourcegrant fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ResourceGrant) predicate.ResourceGrant
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ResourceGrant
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ResourceGrant
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ResourceGrant
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ResourceGrant
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ResourceGrant
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ResourceGrant
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ResourceGrant
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ResourceGrant
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ResourceGrant
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func GrantedBy ¶
func GrantedBy(v uuid.UUID) predicate.ResourceGrant
GrantedBy applies equality check predicate on the "granted_by" field. It's identical to GrantedByEQ.
func GrantedByEQ ¶
func GrantedByEQ(v uuid.UUID) predicate.ResourceGrant
GrantedByEQ applies the EQ predicate on the "granted_by" field.
func GrantedByIn ¶
func GrantedByIn(vs ...uuid.UUID) predicate.ResourceGrant
GrantedByIn applies the In predicate on the "granted_by" field.
func GrantedByIsNil ¶
func GrantedByIsNil() predicate.ResourceGrant
GrantedByIsNil applies the IsNil predicate on the "granted_by" field.
func GrantedByNEQ ¶
func GrantedByNEQ(v uuid.UUID) predicate.ResourceGrant
GrantedByNEQ applies the NEQ predicate on the "granted_by" field.
func GrantedByNotIn ¶
func GrantedByNotIn(vs ...uuid.UUID) predicate.ResourceGrant
GrantedByNotIn applies the NotIn predicate on the "granted_by" field.
func GrantedByNotNil ¶
func GrantedByNotNil() predicate.ResourceGrant
GrantedByNotNil applies the NotNil predicate on the "granted_by" field.
func HasGranter ¶
func HasGranter() predicate.ResourceGrant
HasGranter applies the HasEdge predicate on the "granter" edge.
func HasGranterWith ¶
func HasGranterWith(preds ...predicate.Principal) predicate.ResourceGrant
HasGranterWith applies the HasEdge predicate on the "granter" edge with a given conditions (other predicates).
func HasOrganization ¶
func HasOrganization() predicate.ResourceGrant
HasOrganization applies the HasEdge predicate on the "organization" edge.
func HasOrganizationWith ¶
func HasOrganizationWith(preds ...predicate.Organization) predicate.ResourceGrant
HasOrganizationWith applies the HasEdge predicate on the "organization" edge with a given conditions (other predicates).
func HasPrincipal ¶
func HasPrincipal() predicate.ResourceGrant
HasPrincipal applies the HasEdge predicate on the "principal" edge.
func HasPrincipalWith ¶
func HasPrincipalWith(preds ...predicate.Principal) predicate.ResourceGrant
HasPrincipalWith applies the HasEdge predicate on the "principal" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.ResourceGrant
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.ResourceGrant
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.ResourceGrant
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.ResourceGrant
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.ResourceGrant
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.ResourceGrant
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.ResourceGrant
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.ResourceGrant
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.ResourceGrant
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ResourceGrant) predicate.ResourceGrant
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ResourceGrant) predicate.ResourceGrant
Or groups predicates with the OR operator between them.
func OrganizationID ¶
func OrganizationID(v uuid.UUID) predicate.ResourceGrant
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDEQ ¶
func OrganizationIDEQ(v uuid.UUID) predicate.ResourceGrant
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDIn ¶
func OrganizationIDIn(vs ...uuid.UUID) predicate.ResourceGrant
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
func OrganizationIDNEQ(v uuid.UUID) predicate.ResourceGrant
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
func OrganizationIDNotIn(vs ...uuid.UUID) predicate.ResourceGrant
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func PrincipalID ¶
func PrincipalID(v uuid.UUID) predicate.ResourceGrant
PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.
func PrincipalIDEQ ¶
func PrincipalIDEQ(v uuid.UUID) predicate.ResourceGrant
PrincipalIDEQ applies the EQ predicate on the "principal_id" field.
func PrincipalIDIn ¶
func PrincipalIDIn(vs ...uuid.UUID) predicate.ResourceGrant
PrincipalIDIn applies the In predicate on the "principal_id" field.
func PrincipalIDNEQ ¶
func PrincipalIDNEQ(v uuid.UUID) predicate.ResourceGrant
PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.
func PrincipalIDNotIn ¶
func PrincipalIDNotIn(vs ...uuid.UUID) predicate.ResourceGrant
PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.
func ResourceID ¶
func ResourceID(v string) predicate.ResourceGrant
ResourceID applies equality check predicate on the "resource_id" field. It's identical to ResourceIDEQ.
func ResourceIDContains ¶
func ResourceIDContains(v string) predicate.ResourceGrant
ResourceIDContains applies the Contains predicate on the "resource_id" field.
func ResourceIDContainsFold ¶
func ResourceIDContainsFold(v string) predicate.ResourceGrant
ResourceIDContainsFold applies the ContainsFold predicate on the "resource_id" field.
func ResourceIDEQ ¶
func ResourceIDEQ(v string) predicate.ResourceGrant
ResourceIDEQ applies the EQ predicate on the "resource_id" field.
func ResourceIDEqualFold ¶
func ResourceIDEqualFold(v string) predicate.ResourceGrant
ResourceIDEqualFold applies the EqualFold predicate on the "resource_id" field.
func ResourceIDGT ¶
func ResourceIDGT(v string) predicate.ResourceGrant
ResourceIDGT applies the GT predicate on the "resource_id" field.
func ResourceIDGTE ¶
func ResourceIDGTE(v string) predicate.ResourceGrant
ResourceIDGTE applies the GTE predicate on the "resource_id" field.
func ResourceIDHasPrefix ¶
func ResourceIDHasPrefix(v string) predicate.ResourceGrant
ResourceIDHasPrefix applies the HasPrefix predicate on the "resource_id" field.
func ResourceIDHasSuffix ¶
func ResourceIDHasSuffix(v string) predicate.ResourceGrant
ResourceIDHasSuffix applies the HasSuffix predicate on the "resource_id" field.
func ResourceIDIn ¶
func ResourceIDIn(vs ...string) predicate.ResourceGrant
ResourceIDIn applies the In predicate on the "resource_id" field.
func ResourceIDLT ¶
func ResourceIDLT(v string) predicate.ResourceGrant
ResourceIDLT applies the LT predicate on the "resource_id" field.
func ResourceIDLTE ¶
func ResourceIDLTE(v string) predicate.ResourceGrant
ResourceIDLTE applies the LTE predicate on the "resource_id" field.
func ResourceIDNEQ ¶
func ResourceIDNEQ(v string) predicate.ResourceGrant
ResourceIDNEQ applies the NEQ predicate on the "resource_id" field.
func ResourceIDNotIn ¶
func ResourceIDNotIn(vs ...string) predicate.ResourceGrant
ResourceIDNotIn applies the NotIn predicate on the "resource_id" field.
func ResourceType ¶
func ResourceType(v string) predicate.ResourceGrant
ResourceType applies equality check predicate on the "resource_type" field. It's identical to ResourceTypeEQ.
func ResourceTypeContains ¶
func ResourceTypeContains(v string) predicate.ResourceGrant
ResourceTypeContains applies the Contains predicate on the "resource_type" field.
func ResourceTypeContainsFold ¶
func ResourceTypeContainsFold(v string) predicate.ResourceGrant
ResourceTypeContainsFold applies the ContainsFold predicate on the "resource_type" field.
func ResourceTypeEQ ¶
func ResourceTypeEQ(v string) predicate.ResourceGrant
ResourceTypeEQ applies the EQ predicate on the "resource_type" field.
func ResourceTypeEqualFold ¶
func ResourceTypeEqualFold(v string) predicate.ResourceGrant
ResourceTypeEqualFold applies the EqualFold predicate on the "resource_type" field.
func ResourceTypeGT ¶
func ResourceTypeGT(v string) predicate.ResourceGrant
ResourceTypeGT applies the GT predicate on the "resource_type" field.
func ResourceTypeGTE ¶
func ResourceTypeGTE(v string) predicate.ResourceGrant
ResourceTypeGTE applies the GTE predicate on the "resource_type" field.
func ResourceTypeHasPrefix ¶
func ResourceTypeHasPrefix(v string) predicate.ResourceGrant
ResourceTypeHasPrefix applies the HasPrefix predicate on the "resource_type" field.
func ResourceTypeHasSuffix ¶
func ResourceTypeHasSuffix(v string) predicate.ResourceGrant
ResourceTypeHasSuffix applies the HasSuffix predicate on the "resource_type" field.
func ResourceTypeIn ¶
func ResourceTypeIn(vs ...string) predicate.ResourceGrant
ResourceTypeIn applies the In predicate on the "resource_type" field.
func ResourceTypeLT ¶
func ResourceTypeLT(v string) predicate.ResourceGrant
ResourceTypeLT applies the LT predicate on the "resource_type" field.
func ResourceTypeLTE ¶
func ResourceTypeLTE(v string) predicate.ResourceGrant
ResourceTypeLTE applies the LTE predicate on the "resource_type" field.
func ResourceTypeNEQ ¶
func ResourceTypeNEQ(v string) predicate.ResourceGrant
ResourceTypeNEQ applies the NEQ predicate on the "resource_type" field.
func ResourceTypeNotIn ¶
func ResourceTypeNotIn(vs ...string) predicate.ResourceGrant
ResourceTypeNotIn applies the NotIn predicate on the "resource_type" field.
func Role ¶
func Role(v string) predicate.ResourceGrant
Role applies equality check predicate on the "role" field. It's identical to RoleEQ.
func RoleContains ¶
func RoleContains(v string) predicate.ResourceGrant
RoleContains applies the Contains predicate on the "role" field.
func RoleContainsFold ¶
func RoleContainsFold(v string) predicate.ResourceGrant
RoleContainsFold applies the ContainsFold predicate on the "role" field.
func RoleEQ ¶
func RoleEQ(v string) predicate.ResourceGrant
RoleEQ applies the EQ predicate on the "role" field.
func RoleEqualFold ¶
func RoleEqualFold(v string) predicate.ResourceGrant
RoleEqualFold applies the EqualFold predicate on the "role" field.
func RoleGT ¶
func RoleGT(v string) predicate.ResourceGrant
RoleGT applies the GT predicate on the "role" field.
func RoleGTE ¶
func RoleGTE(v string) predicate.ResourceGrant
RoleGTE applies the GTE predicate on the "role" field.
func RoleHasPrefix ¶
func RoleHasPrefix(v string) predicate.ResourceGrant
RoleHasPrefix applies the HasPrefix predicate on the "role" field.
func RoleHasSuffix ¶
func RoleHasSuffix(v string) predicate.ResourceGrant
RoleHasSuffix applies the HasSuffix predicate on the "role" field.
func RoleIn ¶
func RoleIn(vs ...string) predicate.ResourceGrant
RoleIn applies the In predicate on the "role" field.
func RoleLT ¶
func RoleLT(v string) predicate.ResourceGrant
RoleLT applies the LT predicate on the "role" field.
func RoleLTE ¶
func RoleLTE(v string) predicate.ResourceGrant
RoleLTE applies the LTE predicate on the "role" field.
func RoleNEQ ¶
func RoleNEQ(v string) predicate.ResourceGrant
RoleNEQ applies the NEQ predicate on the "role" field.
func RoleNotIn ¶
func RoleNotIn(vs ...string) predicate.ResourceGrant
RoleNotIn applies the NotIn predicate on the "role" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ResourceGrant
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ResourceGrant
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ResourceGrant
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ResourceGrant
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ResourceGrant
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ResourceGrant
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ResourceGrant
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ResourceGrant
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ResourceGrant
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 ResourceGrant queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByGrantedBy ¶
func ByGrantedBy(opts ...sql.OrderTermOption) OrderOption
ByGrantedBy orders the results by the granted_by field.
func ByGranterField ¶
func ByGranterField(field string, opts ...sql.OrderTermOption) OrderOption
ByGranterField orders the results by granter 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 ByResourceID ¶
func ByResourceID(opts ...sql.OrderTermOption) OrderOption
ByResourceID orders the results by the resource_id field.
func ByResourceType ¶
func ByResourceType(opts ...sql.OrderTermOption) OrderOption
ByResourceType orders the results by the resource_type 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.