authorization

package
v0.0.0-...-1cc1a95 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the authorization type in the database.
	Label = "authorization"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldClientID holds the string denoting the client_id field in the database.
	FieldClientID = "client_id"
	// FieldClientSecret holds the string denoting the client_secret field in the database.
	FieldClientSecret = "client_secret"
	// FieldClientName holds the string denoting the client_name field in the database.
	FieldClientName = "client_name"
	// FieldGrantType holds the string denoting the grant_type field in the database.
	FieldGrantType = "grant_type"
	// FieldScope holds the string denoting the scope field in the database.
	FieldScope = "scope"
	// FieldRedirectURL holds the string denoting the redirect_url field in the database.
	FieldRedirectURL = "redirect_url"
	// FieldDomain holds the string denoting the domain field in the database.
	FieldDomain = "domain"
	// EdgeResource holds the string denoting the resource edge name in mutations.
	EdgeResource = "resource"
	// Table holds the table name of the authorization in the database.
	Table = "authorizations"
	// ResourceTable is the table that holds the resource relation/edge. The primary key declared below.
	ResourceTable = "authorization_resource"
	// ResourceInverseTable is the table name for the Resource entity.
	// It exists in this package in order to avoid circular dependency with the "resource" package.
	ResourceInverseTable = "resources"
)

Variables

View Source
var (
	// ClientIDValidator is a validator for the "client_id" field. It is called by the builders before save.
	ClientIDValidator func(string) error
	// ClientSecretValidator is a validator for the "client_secret" field. It is called by the builders before save.
	ClientSecretValidator func(string) error
	// ClientNameValidator is a validator for the "client_name" field. It is called by the builders before save.
	ClientNameValidator func(string) error
)

Columns holds all SQL columns for authorization fields.

View Source
var (
	// ResourcePrimaryKey and ResourceColumn2 are the table columns denoting the
	// primary key for the resource relation (M2M).
	ResourcePrimaryKey = []string{"authorization_id", "resource_id"}
)

Functions

func And

And groups predicates with the AND operator between them.

func ClientID

func ClientID(v string) predicate.Authorization

ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.

func ClientIDContains

func ClientIDContains(v string) predicate.Authorization

ClientIDContains applies the Contains predicate on the "client_id" field.

func ClientIDContainsFold

func ClientIDContainsFold(v string) predicate.Authorization

ClientIDContainsFold applies the ContainsFold predicate on the "client_id" field.

func ClientIDEQ

func ClientIDEQ(v string) predicate.Authorization

ClientIDEQ applies the EQ predicate on the "client_id" field.

func ClientIDEqualFold

func ClientIDEqualFold(v string) predicate.Authorization

ClientIDEqualFold applies the EqualFold predicate on the "client_id" field.

func ClientIDGT

func ClientIDGT(v string) predicate.Authorization

ClientIDGT applies the GT predicate on the "client_id" field.

func ClientIDGTE

func ClientIDGTE(v string) predicate.Authorization

ClientIDGTE applies the GTE predicate on the "client_id" field.

func ClientIDHasPrefix

func ClientIDHasPrefix(v string) predicate.Authorization

ClientIDHasPrefix applies the HasPrefix predicate on the "client_id" field.

func ClientIDHasSuffix

func ClientIDHasSuffix(v string) predicate.Authorization

ClientIDHasSuffix applies the HasSuffix predicate on the "client_id" field.

func ClientIDIn

func ClientIDIn(vs ...string) predicate.Authorization

ClientIDIn applies the In predicate on the "client_id" field.

func ClientIDLT

func ClientIDLT(v string) predicate.Authorization

ClientIDLT applies the LT predicate on the "client_id" field.

func ClientIDLTE

func ClientIDLTE(v string) predicate.Authorization

ClientIDLTE applies the LTE predicate on the "client_id" field.

func ClientIDNEQ

func ClientIDNEQ(v string) predicate.Authorization

ClientIDNEQ applies the NEQ predicate on the "client_id" field.

func ClientIDNotIn

func ClientIDNotIn(vs ...string) predicate.Authorization

ClientIDNotIn applies the NotIn predicate on the "client_id" field.

func ClientName

func ClientName(v string) predicate.Authorization

ClientName applies equality check predicate on the "client_name" field. It's identical to ClientNameEQ.

func ClientNameContains

func ClientNameContains(v string) predicate.Authorization

ClientNameContains applies the Contains predicate on the "client_name" field.

func ClientNameContainsFold

func ClientNameContainsFold(v string) predicate.Authorization

ClientNameContainsFold applies the ContainsFold predicate on the "client_name" field.

func ClientNameEQ

func ClientNameEQ(v string) predicate.Authorization

ClientNameEQ applies the EQ predicate on the "client_name" field.

func ClientNameEqualFold

func ClientNameEqualFold(v string) predicate.Authorization

ClientNameEqualFold applies the EqualFold predicate on the "client_name" field.

func ClientNameGT

func ClientNameGT(v string) predicate.Authorization

ClientNameGT applies the GT predicate on the "client_name" field.

func ClientNameGTE

func ClientNameGTE(v string) predicate.Authorization

ClientNameGTE applies the GTE predicate on the "client_name" field.

func ClientNameHasPrefix

func ClientNameHasPrefix(v string) predicate.Authorization

ClientNameHasPrefix applies the HasPrefix predicate on the "client_name" field.

func ClientNameHasSuffix

func ClientNameHasSuffix(v string) predicate.Authorization

ClientNameHasSuffix applies the HasSuffix predicate on the "client_name" field.

func ClientNameIn

func ClientNameIn(vs ...string) predicate.Authorization

ClientNameIn applies the In predicate on the "client_name" field.

func ClientNameLT

func ClientNameLT(v string) predicate.Authorization

ClientNameLT applies the LT predicate on the "client_name" field.

func ClientNameLTE

func ClientNameLTE(v string) predicate.Authorization

ClientNameLTE applies the LTE predicate on the "client_name" field.

func ClientNameNEQ

func ClientNameNEQ(v string) predicate.Authorization

ClientNameNEQ applies the NEQ predicate on the "client_name" field.

func ClientNameNotIn

func ClientNameNotIn(vs ...string) predicate.Authorization

ClientNameNotIn applies the NotIn predicate on the "client_name" field.

func ClientSecret

func ClientSecret(v string) predicate.Authorization

ClientSecret applies equality check predicate on the "client_secret" field. It's identical to ClientSecretEQ.

func ClientSecretContains

func ClientSecretContains(v string) predicate.Authorization

ClientSecretContains applies the Contains predicate on the "client_secret" field.

func ClientSecretContainsFold

func ClientSecretContainsFold(v string) predicate.Authorization

ClientSecretContainsFold applies the ContainsFold predicate on the "client_secret" field.

func ClientSecretEQ

func ClientSecretEQ(v string) predicate.Authorization

ClientSecretEQ applies the EQ predicate on the "client_secret" field.

func ClientSecretEqualFold

func ClientSecretEqualFold(v string) predicate.Authorization

ClientSecretEqualFold applies the EqualFold predicate on the "client_secret" field.

func ClientSecretGT

func ClientSecretGT(v string) predicate.Authorization

ClientSecretGT applies the GT predicate on the "client_secret" field.

func ClientSecretGTE

func ClientSecretGTE(v string) predicate.Authorization

ClientSecretGTE applies the GTE predicate on the "client_secret" field.

func ClientSecretHasPrefix

func ClientSecretHasPrefix(v string) predicate.Authorization

ClientSecretHasPrefix applies the HasPrefix predicate on the "client_secret" field.

func ClientSecretHasSuffix

func ClientSecretHasSuffix(v string) predicate.Authorization

ClientSecretHasSuffix applies the HasSuffix predicate on the "client_secret" field.

func ClientSecretIn

func ClientSecretIn(vs ...string) predicate.Authorization

ClientSecretIn applies the In predicate on the "client_secret" field.

func ClientSecretLT

func ClientSecretLT(v string) predicate.Authorization

ClientSecretLT applies the LT predicate on the "client_secret" field.

func ClientSecretLTE

func ClientSecretLTE(v string) predicate.Authorization

ClientSecretLTE applies the LTE predicate on the "client_secret" field.

func ClientSecretNEQ

func ClientSecretNEQ(v string) predicate.Authorization

ClientSecretNEQ applies the NEQ predicate on the "client_secret" field.

func ClientSecretNotIn

func ClientSecretNotIn(vs ...string) predicate.Authorization

ClientSecretNotIn applies the NotIn predicate on the "client_secret" field.

func Domain

func Domain(v string) predicate.Authorization

Domain applies equality check predicate on the "domain" field. It's identical to DomainEQ.

func DomainContains

func DomainContains(v string) predicate.Authorization

DomainContains applies the Contains predicate on the "domain" field.

func DomainContainsFold

func DomainContainsFold(v string) predicate.Authorization

DomainContainsFold applies the ContainsFold predicate on the "domain" field.

func DomainEQ

func DomainEQ(v string) predicate.Authorization

DomainEQ applies the EQ predicate on the "domain" field.

func DomainEqualFold

func DomainEqualFold(v string) predicate.Authorization

DomainEqualFold applies the EqualFold predicate on the "domain" field.

func DomainGT

func DomainGT(v string) predicate.Authorization

DomainGT applies the GT predicate on the "domain" field.

func DomainGTE

func DomainGTE(v string) predicate.Authorization

DomainGTE applies the GTE predicate on the "domain" field.

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Authorization

DomainHasPrefix applies the HasPrefix predicate on the "domain" field.

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Authorization

DomainHasSuffix applies the HasSuffix predicate on the "domain" field.

func DomainIn

func DomainIn(vs ...string) predicate.Authorization

DomainIn applies the In predicate on the "domain" field.

func DomainLT

func DomainLT(v string) predicate.Authorization

DomainLT applies the LT predicate on the "domain" field.

func DomainLTE

func DomainLTE(v string) predicate.Authorization

DomainLTE applies the LTE predicate on the "domain" field.

func DomainNEQ

func DomainNEQ(v string) predicate.Authorization

DomainNEQ applies the NEQ predicate on the "domain" field.

func DomainNotIn

func DomainNotIn(vs ...string) predicate.Authorization

DomainNotIn applies the NotIn predicate on the "domain" field.

func HasResource

func HasResource() predicate.Authorization

HasResource applies the HasEdge predicate on the "resource" edge.

func HasResourceWith

func HasResourceWith(preds ...predicate.Resource) predicate.Authorization

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Authorization

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Authorization

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Authorization

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Authorization

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Authorization

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Authorization

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Authorization

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Authorization

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func RedirectURL

func RedirectURL(v string) predicate.Authorization

RedirectURL applies equality check predicate on the "redirect_url" field. It's identical to RedirectURLEQ.

func RedirectURLContains

func RedirectURLContains(v string) predicate.Authorization

RedirectURLContains applies the Contains predicate on the "redirect_url" field.

func RedirectURLContainsFold

func RedirectURLContainsFold(v string) predicate.Authorization

RedirectURLContainsFold applies the ContainsFold predicate on the "redirect_url" field.

func RedirectURLEQ

func RedirectURLEQ(v string) predicate.Authorization

RedirectURLEQ applies the EQ predicate on the "redirect_url" field.

func RedirectURLEqualFold

func RedirectURLEqualFold(v string) predicate.Authorization

RedirectURLEqualFold applies the EqualFold predicate on the "redirect_url" field.

func RedirectURLGT

func RedirectURLGT(v string) predicate.Authorization

RedirectURLGT applies the GT predicate on the "redirect_url" field.

func RedirectURLGTE

func RedirectURLGTE(v string) predicate.Authorization

RedirectURLGTE applies the GTE predicate on the "redirect_url" field.

func RedirectURLHasPrefix

func RedirectURLHasPrefix(v string) predicate.Authorization

RedirectURLHasPrefix applies the HasPrefix predicate on the "redirect_url" field.

func RedirectURLHasSuffix

func RedirectURLHasSuffix(v string) predicate.Authorization

RedirectURLHasSuffix applies the HasSuffix predicate on the "redirect_url" field.

func RedirectURLIn

func RedirectURLIn(vs ...string) predicate.Authorization

RedirectURLIn applies the In predicate on the "redirect_url" field.

func RedirectURLLT

func RedirectURLLT(v string) predicate.Authorization

RedirectURLLT applies the LT predicate on the "redirect_url" field.

func RedirectURLLTE

func RedirectURLLTE(v string) predicate.Authorization

RedirectURLLTE applies the LTE predicate on the "redirect_url" field.

func RedirectURLNEQ

func RedirectURLNEQ(v string) predicate.Authorization

RedirectURLNEQ applies the NEQ predicate on the "redirect_url" field.

func RedirectURLNotIn

func RedirectURLNotIn(vs ...string) predicate.Authorization

RedirectURLNotIn applies the NotIn predicate on the "redirect_url" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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