principal

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the principal type in the database.
	Label = "principal"
	// 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"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldIdentifier holds the string denoting the identifier field in the database.
	FieldIdentifier = "identifier"
	// FieldDisplayName holds the string denoting the display_name field in the database.
	FieldDisplayName = "display_name"
	// FieldOrganizationID holds the string denoting the organization_id field in the database.
	FieldOrganizationID = "organization_id"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldCapabilities holds the string denoting the capabilities field in the database.
	FieldCapabilities = "capabilities"
	// FieldAllowedScopes holds the string denoting the allowed_scopes field in the database.
	FieldAllowedScopes = "allowed_scopes"
	// FieldMetadata holds the string denoting the metadata field in the database.
	FieldMetadata = "metadata"
	// EdgeOrganization holds the string denoting the organization edge name in mutations.
	EdgeOrganization = "organization"
	// EdgeHuman holds the string denoting the human edge name in mutations.
	EdgeHuman = "human"
	// EdgeApplication holds the string denoting the application edge name in mutations.
	EdgeApplication = "application"
	// EdgeAgent holds the string denoting the agent edge name in mutations.
	EdgeAgent = "agent"
	// EdgeServicePrincipal holds the string denoting the service_principal edge name in mutations.
	EdgeServicePrincipal = "service_principal"
	// EdgeCredentials holds the string denoting the credentials edge name in mutations.
	EdgeCredentials = "credentials"
	// EdgePrincipalTokens holds the string denoting the principal_tokens edge name in mutations.
	EdgePrincipalTokens = "principal_tokens"
	// EdgePrincipalMemberships holds the string denoting the principal_memberships edge name in mutations.
	EdgePrincipalMemberships = "principal_memberships"
	// EdgeOwnedOrganizations holds the string denoting the owned_organizations edge name in mutations.
	EdgeOwnedOrganizations = "owned_organizations"
	// EdgeSentInvites holds the string denoting the sent_invites edge name in mutations.
	EdgeSentInvites = "sent_invites"
	// Table holds the table name of the principal in the database.
	Table = "cf_principals"
	// OrganizationTable is the table that holds the organization relation/edge.
	OrganizationTable = "cf_principals"
	// 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 = "cf_organizations"
	// OrganizationColumn is the table column denoting the organization relation/edge.
	OrganizationColumn = "organization_id"
	// HumanTable is the table that holds the human relation/edge.
	HumanTable = "cf_humans"
	// HumanInverseTable is the table name for the Human entity.
	// It exists in this package in order to avoid circular dependency with the "human" package.
	HumanInverseTable = "cf_humans"
	// HumanColumn is the table column denoting the human relation/edge.
	HumanColumn = "principal_id"
	// ApplicationTable is the table that holds the application relation/edge.
	ApplicationTable = "cf_applications"
	// ApplicationInverseTable is the table name for the Application entity.
	// It exists in this package in order to avoid circular dependency with the "application" package.
	ApplicationInverseTable = "cf_applications"
	// ApplicationColumn is the table column denoting the application relation/edge.
	ApplicationColumn = "principal_id"
	// AgentTable is the table that holds the agent relation/edge.
	AgentTable = "cf_agents"
	// AgentInverseTable is the table name for the Agent entity.
	// It exists in this package in order to avoid circular dependency with the "agent" package.
	AgentInverseTable = "cf_agents"
	// AgentColumn is the table column denoting the agent relation/edge.
	AgentColumn = "principal_id"
	// ServicePrincipalTable is the table that holds the service_principal relation/edge.
	ServicePrincipalTable = "cf_service_principals"
	// ServicePrincipalInverseTable is the table name for the ServicePrincipal entity.
	// It exists in this package in order to avoid circular dependency with the "serviceprincipal" package.
	ServicePrincipalInverseTable = "cf_service_principals"
	// ServicePrincipalColumn is the table column denoting the service_principal relation/edge.
	ServicePrincipalColumn = "principal_id"
	// CredentialsTable is the table that holds the credentials relation/edge.
	CredentialsTable = "cf_credentials"
	// CredentialsInverseTable is the table name for the Credential entity.
	// It exists in this package in order to avoid circular dependency with the "credential" package.
	CredentialsInverseTable = "cf_credentials"
	// CredentialsColumn is the table column denoting the credentials relation/edge.
	CredentialsColumn = "principal_id"
	// PrincipalTokensTable is the table that holds the principal_tokens relation/edge.
	PrincipalTokensTable = "cf_principal_tokens"
	// PrincipalTokensInverseTable is the table name for the PrincipalToken entity.
	// It exists in this package in order to avoid circular dependency with the "principaltoken" package.
	PrincipalTokensInverseTable = "cf_principal_tokens"
	// PrincipalTokensColumn is the table column denoting the principal_tokens relation/edge.
	PrincipalTokensColumn = "principal_id"
	// PrincipalMembershipsTable is the table that holds the principal_memberships relation/edge.
	PrincipalMembershipsTable = "cf_principal_memberships"
	// PrincipalMembershipsInverseTable is the table name for the PrincipalMembership entity.
	// It exists in this package in order to avoid circular dependency with the "principalmembership" package.
	PrincipalMembershipsInverseTable = "cf_principal_memberships"
	// PrincipalMembershipsColumn is the table column denoting the principal_memberships relation/edge.
	PrincipalMembershipsColumn = "principal_id"
	// OwnedOrganizationsTable is the table that holds the owned_organizations relation/edge.
	OwnedOrganizationsTable = "cf_organizations"
	// OwnedOrganizationsInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnedOrganizationsInverseTable = "cf_organizations"
	// OwnedOrganizationsColumn is the table column denoting the owned_organizations relation/edge.
	OwnedOrganizationsColumn = "owner_principal_id"
	// SentInvitesTable is the table that holds the sent_invites relation/edge.
	SentInvitesTable = "cf_invites"
	// SentInvitesInverseTable is the table name for the Invite entity.
	// It exists in this package in order to avoid circular dependency with the "invite" package.
	SentInvitesInverseTable = "cf_invites"
	// SentInvitesColumn is the table column denoting the sent_invites relation/edge.
	SentInvitesColumn = "inviter_principal_id"
)

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
	// IdentifierValidator is a validator for the "identifier" field. It is called by the builders before save.
	IdentifierValidator func(string) error
	// DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save.
	DisplayNameValidator func(string) error
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultCapabilities holds the default value on creation for the "capabilities" field.
	DefaultCapabilities map[string]bool
	// DefaultAllowedScopes holds the default value on creation for the "allowed_scopes" field.
	DefaultAllowedScopes []string
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for principal fields.

Functions

func Active

func Active(v bool) predicate.Principal

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.Principal

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.Principal

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

func And(predicates ...predicate.Principal) predicate.Principal

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Principal

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Principal

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Principal

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Principal

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Principal

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Principal

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Principal

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

func CreatedAtNotIn

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

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

func DisplayName

func DisplayName(v string) predicate.Principal

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.Principal

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.Principal

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.Principal

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.Principal

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.Principal

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.Principal

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.Principal

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.Principal

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.Principal

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.Principal

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.Principal

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.Principal

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.Principal

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func HasAgent

func HasAgent() predicate.Principal

HasAgent applies the HasEdge predicate on the "agent" edge.

func HasAgentWith

func HasAgentWith(preds ...predicate.Agent) predicate.Principal

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

func HasApplication

func HasApplication() predicate.Principal

HasApplication applies the HasEdge predicate on the "application" edge.

func HasApplicationWith

func HasApplicationWith(preds ...predicate.Application) predicate.Principal

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

func HasCredentials

func HasCredentials() predicate.Principal

HasCredentials applies the HasEdge predicate on the "credentials" edge.

func HasCredentialsWith

func HasCredentialsWith(preds ...predicate.Credential) predicate.Principal

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

func HasHuman

func HasHuman() predicate.Principal

HasHuman applies the HasEdge predicate on the "human" edge.

func HasHumanWith

func HasHumanWith(preds ...predicate.Human) predicate.Principal

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

func HasOrganization

func HasOrganization() predicate.Principal

HasOrganization applies the HasEdge predicate on the "organization" edge.

func HasOrganizationWith

func HasOrganizationWith(preds ...predicate.Organization) predicate.Principal

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

func HasOwnedOrganizations

func HasOwnedOrganizations() predicate.Principal

HasOwnedOrganizations applies the HasEdge predicate on the "owned_organizations" edge.

func HasOwnedOrganizationsWith

func HasOwnedOrganizationsWith(preds ...predicate.Organization) predicate.Principal

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

func HasPrincipalMemberships

func HasPrincipalMemberships() predicate.Principal

HasPrincipalMemberships applies the HasEdge predicate on the "principal_memberships" edge.

func HasPrincipalMembershipsWith

func HasPrincipalMembershipsWith(preds ...predicate.PrincipalMembership) predicate.Principal

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

func HasPrincipalTokens

func HasPrincipalTokens() predicate.Principal

HasPrincipalTokens applies the HasEdge predicate on the "principal_tokens" edge.

func HasPrincipalTokensWith

func HasPrincipalTokensWith(preds ...predicate.PrincipalToken) predicate.Principal

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

func HasSentInvites

func HasSentInvites() predicate.Principal

HasSentInvites applies the HasEdge predicate on the "sent_invites" edge.

func HasSentInvitesWith

func HasSentInvitesWith(preds ...predicate.Invite) predicate.Principal

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

func HasServicePrincipal

func HasServicePrincipal() predicate.Principal

HasServicePrincipal applies the HasEdge predicate on the "service_principal" edge.

func HasServicePrincipalWith

func HasServicePrincipalWith(preds ...predicate.ServicePrincipal) predicate.Principal

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Principal

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Principal

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Principal

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Principal

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Principal

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Principal

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Identifier

func Identifier(v string) predicate.Principal

Identifier applies equality check predicate on the "identifier" field. It's identical to IdentifierEQ.

func IdentifierContains

func IdentifierContains(v string) predicate.Principal

IdentifierContains applies the Contains predicate on the "identifier" field.

func IdentifierContainsFold

func IdentifierContainsFold(v string) predicate.Principal

IdentifierContainsFold applies the ContainsFold predicate on the "identifier" field.

func IdentifierEQ

func IdentifierEQ(v string) predicate.Principal

IdentifierEQ applies the EQ predicate on the "identifier" field.

func IdentifierEqualFold

func IdentifierEqualFold(v string) predicate.Principal

IdentifierEqualFold applies the EqualFold predicate on the "identifier" field.

func IdentifierGT

func IdentifierGT(v string) predicate.Principal

IdentifierGT applies the GT predicate on the "identifier" field.

func IdentifierGTE

func IdentifierGTE(v string) predicate.Principal

IdentifierGTE applies the GTE predicate on the "identifier" field.

func IdentifierHasPrefix

func IdentifierHasPrefix(v string) predicate.Principal

IdentifierHasPrefix applies the HasPrefix predicate on the "identifier" field.

func IdentifierHasSuffix

func IdentifierHasSuffix(v string) predicate.Principal

IdentifierHasSuffix applies the HasSuffix predicate on the "identifier" field.

func IdentifierIn

func IdentifierIn(vs ...string) predicate.Principal

IdentifierIn applies the In predicate on the "identifier" field.

func IdentifierLT

func IdentifierLT(v string) predicate.Principal

IdentifierLT applies the LT predicate on the "identifier" field.

func IdentifierLTE

func IdentifierLTE(v string) predicate.Principal

IdentifierLTE applies the LTE predicate on the "identifier" field.

func IdentifierNEQ

func IdentifierNEQ(v string) predicate.Principal

IdentifierNEQ applies the NEQ predicate on the "identifier" field.

func IdentifierNotIn

func IdentifierNotIn(vs ...string) predicate.Principal

IdentifierNotIn applies the NotIn predicate on the "identifier" field.

func MetadataIsNil

func MetadataIsNil() predicate.Principal

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Principal

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Principal) predicate.Principal

Or groups predicates with the OR operator between them.

func OrganizationID

func OrganizationID(v uuid.UUID) predicate.Principal

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

func OrganizationIDEQ

func OrganizationIDEQ(v uuid.UUID) predicate.Principal

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

func OrganizationIDIn

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

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

func OrganizationIDIsNil

func OrganizationIDIsNil() predicate.Principal

OrganizationIDIsNil applies the IsNil predicate on the "organization_id" field.

func OrganizationIDNEQ

func OrganizationIDNEQ(v uuid.UUID) predicate.Principal

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

func OrganizationIDNotIn

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

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

func OrganizationIDNotNil

func OrganizationIDNotNil() predicate.Principal

OrganizationIDNotNil applies the NotNil predicate on the "organization_id" field.

func TypeEQ

func TypeEQ(v Type) predicate.Principal

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Principal

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Principal

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Principal

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Principal

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Principal

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Principal

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Principal

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Principal

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Principal

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Principal

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

func UpdatedAtNotIn

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

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 Principal queries.

func ByActive

func ByActive(opts ...sql.OrderTermOption) OrderOption

ByActive orders the results by the active field.

func ByAgentField

func ByAgentField(field string, opts ...sql.OrderTermOption) OrderOption

ByAgentField orders the results by agent field.

func ByApplicationField

func ByApplicationField(field string, opts ...sql.OrderTermOption) OrderOption

ByApplicationField orders the results by application field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCredentials

func ByCredentials(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByCredentials orders the results by credentials terms.

func ByCredentialsCount

func ByCredentialsCount(opts ...sql.OrderTermOption) OrderOption

ByCredentialsCount orders the results by credentials count.

func ByDisplayName

func ByDisplayName(opts ...sql.OrderTermOption) OrderOption

ByDisplayName orders the results by the display_name field.

func ByHumanField

func ByHumanField(field string, opts ...sql.OrderTermOption) OrderOption

ByHumanField orders the results by human field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIdentifier

func ByIdentifier(opts ...sql.OrderTermOption) OrderOption

ByIdentifier orders the results by the identifier 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 ByOwnedOrganizations

func ByOwnedOrganizations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOwnedOrganizations orders the results by owned_organizations terms.

func ByOwnedOrganizationsCount

func ByOwnedOrganizationsCount(opts ...sql.OrderTermOption) OrderOption

ByOwnedOrganizationsCount orders the results by owned_organizations count.

func ByPrincipalMemberships

func ByPrincipalMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPrincipalMemberships orders the results by principal_memberships terms.

func ByPrincipalMembershipsCount

func ByPrincipalMembershipsCount(opts ...sql.OrderTermOption) OrderOption

ByPrincipalMembershipsCount orders the results by principal_memberships count.

func ByPrincipalTokens

func ByPrincipalTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPrincipalTokens orders the results by principal_tokens terms.

func ByPrincipalTokensCount

func ByPrincipalTokensCount(opts ...sql.OrderTermOption) OrderOption

ByPrincipalTokensCount orders the results by principal_tokens count.

func BySentInvites

func BySentInvites(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySentInvites orders the results by sent_invites terms.

func BySentInvitesCount

func BySentInvitesCount(opts ...sql.OrderTermOption) OrderOption

BySentInvitesCount orders the results by sent_invites count.

func ByServicePrincipalField

func ByServicePrincipalField(field string, opts ...sql.OrderTermOption) OrderOption

ByServicePrincipalField orders the results by service_principal field.

func ByType

func ByType(opts ...sql.OrderTermOption) OrderOption

ByType orders the results by the type field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeHuman       Type = "human"
	TypeApplication Type = "application"
	TypeAgent       Type = "agent"
	TypeService     Type = "service"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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