approle

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for approle fields.

Functions

func And

func And(predicates ...predicate.AppRole) predicate.AppRole

And groups predicates with the AND operator between them.

func Application

func Application(v string) predicate.AppRole

Application applies equality check predicate on the "application" field. It's identical to ApplicationEQ.

func ApplicationContains

func ApplicationContains(v string) predicate.AppRole

ApplicationContains applies the Contains predicate on the "application" field.

func ApplicationContainsFold

func ApplicationContainsFold(v string) predicate.AppRole

ApplicationContainsFold applies the ContainsFold predicate on the "application" field.

func ApplicationEQ

func ApplicationEQ(v string) predicate.AppRole

ApplicationEQ applies the EQ predicate on the "application" field.

func ApplicationEqualFold

func ApplicationEqualFold(v string) predicate.AppRole

ApplicationEqualFold applies the EqualFold predicate on the "application" field.

func ApplicationGT

func ApplicationGT(v string) predicate.AppRole

ApplicationGT applies the GT predicate on the "application" field.

func ApplicationGTE

func ApplicationGTE(v string) predicate.AppRole

ApplicationGTE applies the GTE predicate on the "application" field.

func ApplicationHasPrefix

func ApplicationHasPrefix(v string) predicate.AppRole

ApplicationHasPrefix applies the HasPrefix predicate on the "application" field.

func ApplicationHasSuffix

func ApplicationHasSuffix(v string) predicate.AppRole

ApplicationHasSuffix applies the HasSuffix predicate on the "application" field.

func ApplicationIn

func ApplicationIn(vs ...string) predicate.AppRole

ApplicationIn applies the In predicate on the "application" field.

func ApplicationLT

func ApplicationLT(v string) predicate.AppRole

ApplicationLT applies the LT predicate on the "application" field.

func ApplicationLTE

func ApplicationLTE(v string) predicate.AppRole

ApplicationLTE applies the LTE predicate on the "application" field.

func ApplicationNEQ

func ApplicationNEQ(v string) predicate.AppRole

ApplicationNEQ applies the NEQ predicate on the "application" field.

func ApplicationNotIn

func ApplicationNotIn(vs ...string) predicate.AppRole

ApplicationNotIn applies the NotIn predicate on the "application" field.

func AssignedBy

func AssignedBy(v uuid.UUID) predicate.AppRole

AssignedBy applies equality check predicate on the "assigned_by" field. It's identical to AssignedByEQ.

func AssignedByEQ

func AssignedByEQ(v uuid.UUID) predicate.AppRole

AssignedByEQ applies the EQ predicate on the "assigned_by" field.

func AssignedByIn

func AssignedByIn(vs ...uuid.UUID) predicate.AppRole

AssignedByIn applies the In predicate on the "assigned_by" field.

func AssignedByIsNil

func AssignedByIsNil() predicate.AppRole

AssignedByIsNil applies the IsNil predicate on the "assigned_by" field.

func AssignedByNEQ

func AssignedByNEQ(v uuid.UUID) predicate.AppRole

AssignedByNEQ applies the NEQ predicate on the "assigned_by" field.

func AssignedByNotIn

func AssignedByNotIn(vs ...uuid.UUID) predicate.AppRole

AssignedByNotIn applies the NotIn predicate on the "assigned_by" field.

func AssignedByNotNil

func AssignedByNotNil() predicate.AppRole

AssignedByNotNil applies the NotNil predicate on the "assigned_by" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.AppRole

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AppRole

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AppRole

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AppRole

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.AppRole

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AppRole

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AppRole

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AppRole

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.AppRole

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasAssigner

func HasAssigner() predicate.AppRole

HasAssigner applies the HasEdge predicate on the "assigner" edge.

func HasAssignerWith

func HasAssignerWith(preds ...predicate.Principal) predicate.AppRole

HasAssignerWith applies the HasEdge predicate on the "assigner" edge with a given conditions (other predicates).

func HasOrganization

func HasOrganization() predicate.AppRole

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

func HasPrincipal() predicate.AppRole

HasPrincipal applies the HasEdge predicate on the "principal" edge.

func HasPrincipalWith

func HasPrincipalWith(preds ...predicate.Principal) predicate.AppRole

HasPrincipalWith applies the HasEdge predicate on the "principal" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.AppRole

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.AppRole

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.AppRole

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.AppRole

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.AppRole

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.AppRole

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.AppRole

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.AppRole

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.AppRole

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.AppRole) predicate.AppRole

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.AppRole

OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.AppRole

OrganizationIDEQ applies the EQ predicate on the "organization_id" field.

func OrganizationIDIn

func OrganizationIDIn(vs ...uuid.UUID) predicate.AppRole

OrganizationIDIn applies the In predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.AppRole

OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.

func OrganizationIDNotIn

func OrganizationIDNotIn(vs ...uuid.UUID) predicate.AppRole

OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.

func PrincipalID

func PrincipalID(v uuid.UUID) predicate.AppRole

PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.

func PrincipalIDEQ

func PrincipalIDEQ(v uuid.UUID) predicate.AppRole

PrincipalIDEQ applies the EQ predicate on the "principal_id" field.

func PrincipalIDIn

func PrincipalIDIn(vs ...uuid.UUID) predicate.AppRole

PrincipalIDIn applies the In predicate on the "principal_id" field.

func PrincipalIDNEQ

func PrincipalIDNEQ(v uuid.UUID) predicate.AppRole

PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.

func PrincipalIDNotIn

func PrincipalIDNotIn(vs ...uuid.UUID) predicate.AppRole

PrincipalIDNotIn applies the NotIn predicate on the "principal_id" field.

func Role

func Role(v string) predicate.AppRole

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v string) predicate.AppRole

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v string) predicate.AppRole

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

func RoleEQ(v string) predicate.AppRole

RoleEQ applies the EQ predicate on the "role" field.

func RoleEqualFold

func RoleEqualFold(v string) predicate.AppRole

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

func RoleGT(v string) predicate.AppRole

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v string) predicate.AppRole

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v string) predicate.AppRole

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v string) predicate.AppRole

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

func RoleIn(vs ...string) predicate.AppRole

RoleIn applies the In predicate on the "role" field.

func RoleLT

func RoleLT(v string) predicate.AppRole

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v string) predicate.AppRole

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v string) predicate.AppRole

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...string) predicate.AppRole

RoleNotIn applies the NotIn predicate on the "role" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AppRole

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AppRole

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AppRole

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AppRole

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.AppRole

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AppRole

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AppRole

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AppRole

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.AppRole

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL