grant

package
v0.0.0-...-b7d53eb Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the grant type in the database.
	Label = "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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldHashedGrantToken holds the string denoting the hashed_grant_token field in the database.
	FieldHashedGrantToken = "hashed_grant_token"
	// FieldDomain holds the string denoting the domain field in the database.
	FieldDomain = "domain"
	// FieldVersion holds the string denoting the version field in the database.
	FieldVersion = "version"
	// FieldAllowedHTTPMethods holds the string denoting the allowed_http_methods field in the database.
	FieldAllowedHTTPMethods = "allowed_http_methods"
	// FieldPaths holds the string denoting the paths field in the database.
	FieldPaths = "paths"
	// Table holds the table name of the grant in the database.
	Table = "grants"
)

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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for grant fields.

Functions

func AllowedHTTPMethods

func AllowedHTTPMethods(v string) predicate.Grant

AllowedHTTPMethods applies equality check predicate on the "allowed_http_methods" field. It's identical to AllowedHTTPMethodsEQ.

func AllowedHTTPMethodsContains

func AllowedHTTPMethodsContains(v string) predicate.Grant

AllowedHTTPMethodsContains applies the Contains predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsContainsFold

func AllowedHTTPMethodsContainsFold(v string) predicate.Grant

AllowedHTTPMethodsContainsFold applies the ContainsFold predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsEQ

func AllowedHTTPMethodsEQ(v string) predicate.Grant

AllowedHTTPMethodsEQ applies the EQ predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsEqualFold

func AllowedHTTPMethodsEqualFold(v string) predicate.Grant

AllowedHTTPMethodsEqualFold applies the EqualFold predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsGT

func AllowedHTTPMethodsGT(v string) predicate.Grant

AllowedHTTPMethodsGT applies the GT predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsGTE

func AllowedHTTPMethodsGTE(v string) predicate.Grant

AllowedHTTPMethodsGTE applies the GTE predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsHasPrefix

func AllowedHTTPMethodsHasPrefix(v string) predicate.Grant

AllowedHTTPMethodsHasPrefix applies the HasPrefix predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsHasSuffix

func AllowedHTTPMethodsHasSuffix(v string) predicate.Grant

AllowedHTTPMethodsHasSuffix applies the HasSuffix predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsIn

func AllowedHTTPMethodsIn(vs ...string) predicate.Grant

AllowedHTTPMethodsIn applies the In predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsLT

func AllowedHTTPMethodsLT(v string) predicate.Grant

AllowedHTTPMethodsLT applies the LT predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsLTE

func AllowedHTTPMethodsLTE(v string) predicate.Grant

AllowedHTTPMethodsLTE applies the LTE predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsNEQ

func AllowedHTTPMethodsNEQ(v string) predicate.Grant

AllowedHTTPMethodsNEQ applies the NEQ predicate on the "allowed_http_methods" field.

func AllowedHTTPMethodsNotIn

func AllowedHTTPMethodsNotIn(vs ...string) predicate.Grant

AllowedHTTPMethodsNotIn applies the NotIn predicate on the "allowed_http_methods" field.

func And

func And(predicates ...predicate.Grant) predicate.Grant

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Grant

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Grant

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Grant

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Grant

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Grant

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Grant

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Grant

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.Grant

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Grant

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Grant

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Grant

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Grant

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Grant

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Grant

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Grant

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Grant

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Grant

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Grant

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func Domain

func Domain(v string) predicate.Grant

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

func DomainContains

func DomainContains(v string) predicate.Grant

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

func DomainContainsFold

func DomainContainsFold(v string) predicate.Grant

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

func DomainEQ

func DomainEQ(v string) predicate.Grant

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

func DomainEqualFold

func DomainEqualFold(v string) predicate.Grant

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

func DomainGT

func DomainGT(v string) predicate.Grant

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

func DomainGTE

func DomainGTE(v string) predicate.Grant

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

func DomainHasPrefix

func DomainHasPrefix(v string) predicate.Grant

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

func DomainHasSuffix

func DomainHasSuffix(v string) predicate.Grant

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

func DomainIn

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

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

func DomainLT

func DomainLT(v string) predicate.Grant

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

func DomainLTE

func DomainLTE(v string) predicate.Grant

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

func DomainNEQ

func DomainNEQ(v string) predicate.Grant

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

func DomainNotIn

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

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

func HashedGrantToken

func HashedGrantToken(v string) predicate.Grant

HashedGrantToken applies equality check predicate on the "hashed_grant_token" field. It's identical to HashedGrantTokenEQ.

func HashedGrantTokenContains

func HashedGrantTokenContains(v string) predicate.Grant

HashedGrantTokenContains applies the Contains predicate on the "hashed_grant_token" field.

func HashedGrantTokenContainsFold

func HashedGrantTokenContainsFold(v string) predicate.Grant

HashedGrantTokenContainsFold applies the ContainsFold predicate on the "hashed_grant_token" field.

func HashedGrantTokenEQ

func HashedGrantTokenEQ(v string) predicate.Grant

HashedGrantTokenEQ applies the EQ predicate on the "hashed_grant_token" field.

func HashedGrantTokenEqualFold

func HashedGrantTokenEqualFold(v string) predicate.Grant

HashedGrantTokenEqualFold applies the EqualFold predicate on the "hashed_grant_token" field.

func HashedGrantTokenGT

func HashedGrantTokenGT(v string) predicate.Grant

HashedGrantTokenGT applies the GT predicate on the "hashed_grant_token" field.

func HashedGrantTokenGTE

func HashedGrantTokenGTE(v string) predicate.Grant

HashedGrantTokenGTE applies the GTE predicate on the "hashed_grant_token" field.

func HashedGrantTokenHasPrefix

func HashedGrantTokenHasPrefix(v string) predicate.Grant

HashedGrantTokenHasPrefix applies the HasPrefix predicate on the "hashed_grant_token" field.

func HashedGrantTokenHasSuffix

func HashedGrantTokenHasSuffix(v string) predicate.Grant

HashedGrantTokenHasSuffix applies the HasSuffix predicate on the "hashed_grant_token" field.

func HashedGrantTokenIn

func HashedGrantTokenIn(vs ...string) predicate.Grant

HashedGrantTokenIn applies the In predicate on the "hashed_grant_token" field.

func HashedGrantTokenLT

func HashedGrantTokenLT(v string) predicate.Grant

HashedGrantTokenLT applies the LT predicate on the "hashed_grant_token" field.

func HashedGrantTokenLTE

func HashedGrantTokenLTE(v string) predicate.Grant

HashedGrantTokenLTE applies the LTE predicate on the "hashed_grant_token" field.

func HashedGrantTokenNEQ

func HashedGrantTokenNEQ(v string) predicate.Grant

HashedGrantTokenNEQ applies the NEQ predicate on the "hashed_grant_token" field.

func HashedGrantTokenNotIn

func HashedGrantTokenNotIn(vs ...string) predicate.Grant

HashedGrantTokenNotIn applies the NotIn predicate on the "hashed_grant_token" field.

func ID

func ID(id string) predicate.Grant

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id string) predicate.Grant

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Grant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Grant

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Grant

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Grant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Grant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Grant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Grant

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.Grant) predicate.Grant

Or groups predicates with the OR operator between them.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Grant

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Grant

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Grant

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Grant

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Grant

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Grant

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Grant

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

func UpdatedAtNotIn

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

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).

func Version

func Version(v string) predicate.Grant

Version applies equality check predicate on the "version" field. It's identical to VersionEQ.

func VersionContains

func VersionContains(v string) predicate.Grant

VersionContains applies the Contains predicate on the "version" field.

func VersionContainsFold

func VersionContainsFold(v string) predicate.Grant

VersionContainsFold applies the ContainsFold predicate on the "version" field.

func VersionEQ

func VersionEQ(v string) predicate.Grant

VersionEQ applies the EQ predicate on the "version" field.

func VersionEqualFold

func VersionEqualFold(v string) predicate.Grant

VersionEqualFold applies the EqualFold predicate on the "version" field.

func VersionGT

func VersionGT(v string) predicate.Grant

VersionGT applies the GT predicate on the "version" field.

func VersionGTE

func VersionGTE(v string) predicate.Grant

VersionGTE applies the GTE predicate on the "version" field.

func VersionHasPrefix

func VersionHasPrefix(v string) predicate.Grant

VersionHasPrefix applies the HasPrefix predicate on the "version" field.

func VersionHasSuffix

func VersionHasSuffix(v string) predicate.Grant

VersionHasSuffix applies the HasSuffix predicate on the "version" field.

func VersionIn

func VersionIn(vs ...string) predicate.Grant

VersionIn applies the In predicate on the "version" field.

func VersionLT

func VersionLT(v string) predicate.Grant

VersionLT applies the LT predicate on the "version" field.

func VersionLTE

func VersionLTE(v string) predicate.Grant

VersionLTE applies the LTE predicate on the "version" field.

func VersionNEQ

func VersionNEQ(v string) predicate.Grant

VersionNEQ applies the NEQ predicate on the "version" field.

func VersionNotIn

func VersionNotIn(vs ...string) predicate.Grant

VersionNotIn applies the NotIn predicate on the "version" field.

Types

This section is empty.

Jump to

Keyboard shortcuts

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