grant

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 2 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"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldConnectionID holds the string denoting the connection_id field in the database.
	FieldConnectionID = "connection_id"
	// FieldPrincipalKind holds the string denoting the principal_kind field in the database.
	FieldPrincipalKind = "principal_kind"
	// FieldPrincipalID holds the string denoting the principal_id field in the database.
	FieldPrincipalID = "principal_id"
	// FieldActions holds the string denoting the actions field in the database.
	FieldActions = "actions"
	// Table holds the table name of the grant in the database.
	Table = "connectionforge_grants"
)

Variables

View Source
var (
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// ConnectionIDValidator is a validator for the "connection_id" field. It is called by the builders before save.
	ConnectionIDValidator func(string) error
)

Columns holds all SQL columns for grant fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func ConnectionID

func ConnectionID(v string) predicate.Grant

ConnectionID applies equality check predicate on the "connection_id" field. It's identical to ConnectionIDEQ.

func ConnectionIDContains

func ConnectionIDContains(v string) predicate.Grant

ConnectionIDContains applies the Contains predicate on the "connection_id" field.

func ConnectionIDContainsFold

func ConnectionIDContainsFold(v string) predicate.Grant

ConnectionIDContainsFold applies the ContainsFold predicate on the "connection_id" field.

func ConnectionIDEQ

func ConnectionIDEQ(v string) predicate.Grant

ConnectionIDEQ applies the EQ predicate on the "connection_id" field.

func ConnectionIDEqualFold

func ConnectionIDEqualFold(v string) predicate.Grant

ConnectionIDEqualFold applies the EqualFold predicate on the "connection_id" field.

func ConnectionIDGT

func ConnectionIDGT(v string) predicate.Grant

ConnectionIDGT applies the GT predicate on the "connection_id" field.

func ConnectionIDGTE

func ConnectionIDGTE(v string) predicate.Grant

ConnectionIDGTE applies the GTE predicate on the "connection_id" field.

func ConnectionIDHasPrefix

func ConnectionIDHasPrefix(v string) predicate.Grant

ConnectionIDHasPrefix applies the HasPrefix predicate on the "connection_id" field.

func ConnectionIDHasSuffix

func ConnectionIDHasSuffix(v string) predicate.Grant

ConnectionIDHasSuffix applies the HasSuffix predicate on the "connection_id" field.

func ConnectionIDIn

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

ConnectionIDIn applies the In predicate on the "connection_id" field.

func ConnectionIDLT

func ConnectionIDLT(v string) predicate.Grant

ConnectionIDLT applies the LT predicate on the "connection_id" field.

func ConnectionIDLTE

func ConnectionIDLTE(v string) predicate.Grant

ConnectionIDLTE applies the LTE predicate on the "connection_id" field.

func ConnectionIDNEQ

func ConnectionIDNEQ(v string) predicate.Grant

ConnectionIDNEQ applies the NEQ predicate on the "connection_id" field.

func ConnectionIDNotIn

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

ConnectionIDNotIn applies the NotIn predicate on the "connection_id" field.

func ID

func ID(id int) predicate.Grant

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Grant

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Grant

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Grant

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Grant

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Grant

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Grant

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) 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 OwnerID

func OwnerID(v string) predicate.Grant

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.Grant

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.Grant

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.Grant

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.Grant

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.Grant

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.Grant

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.Grant

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.Grant

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

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

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.Grant

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.Grant

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.Grant

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

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

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func PrincipalID

func PrincipalID(v string) predicate.Grant

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

func PrincipalIDContains

func PrincipalIDContains(v string) predicate.Grant

PrincipalIDContains applies the Contains predicate on the "principal_id" field.

func PrincipalIDContainsFold

func PrincipalIDContainsFold(v string) predicate.Grant

PrincipalIDContainsFold applies the ContainsFold predicate on the "principal_id" field.

func PrincipalIDEQ

func PrincipalIDEQ(v string) predicate.Grant

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

func PrincipalIDEqualFold

func PrincipalIDEqualFold(v string) predicate.Grant

PrincipalIDEqualFold applies the EqualFold predicate on the "principal_id" field.

func PrincipalIDGT

func PrincipalIDGT(v string) predicate.Grant

PrincipalIDGT applies the GT predicate on the "principal_id" field.

func PrincipalIDGTE

func PrincipalIDGTE(v string) predicate.Grant

PrincipalIDGTE applies the GTE predicate on the "principal_id" field.

func PrincipalIDHasPrefix

func PrincipalIDHasPrefix(v string) predicate.Grant

PrincipalIDHasPrefix applies the HasPrefix predicate on the "principal_id" field.

func PrincipalIDHasSuffix

func PrincipalIDHasSuffix(v string) predicate.Grant

PrincipalIDHasSuffix applies the HasSuffix predicate on the "principal_id" field.

func PrincipalIDIn

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

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

func PrincipalIDLT

func PrincipalIDLT(v string) predicate.Grant

PrincipalIDLT applies the LT predicate on the "principal_id" field.

func PrincipalIDLTE

func PrincipalIDLTE(v string) predicate.Grant

PrincipalIDLTE applies the LTE predicate on the "principal_id" field.

func PrincipalIDNEQ

func PrincipalIDNEQ(v string) predicate.Grant

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

func PrincipalIDNotIn

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

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

func PrincipalKind

func PrincipalKind(v string) predicate.Grant

PrincipalKind applies equality check predicate on the "principal_kind" field. It's identical to PrincipalKindEQ.

func PrincipalKindContains

func PrincipalKindContains(v string) predicate.Grant

PrincipalKindContains applies the Contains predicate on the "principal_kind" field.

func PrincipalKindContainsFold

func PrincipalKindContainsFold(v string) predicate.Grant

PrincipalKindContainsFold applies the ContainsFold predicate on the "principal_kind" field.

func PrincipalKindEQ

func PrincipalKindEQ(v string) predicate.Grant

PrincipalKindEQ applies the EQ predicate on the "principal_kind" field.

func PrincipalKindEqualFold

func PrincipalKindEqualFold(v string) predicate.Grant

PrincipalKindEqualFold applies the EqualFold predicate on the "principal_kind" field.

func PrincipalKindGT

func PrincipalKindGT(v string) predicate.Grant

PrincipalKindGT applies the GT predicate on the "principal_kind" field.

func PrincipalKindGTE

func PrincipalKindGTE(v string) predicate.Grant

PrincipalKindGTE applies the GTE predicate on the "principal_kind" field.

func PrincipalKindHasPrefix

func PrincipalKindHasPrefix(v string) predicate.Grant

PrincipalKindHasPrefix applies the HasPrefix predicate on the "principal_kind" field.

func PrincipalKindHasSuffix

func PrincipalKindHasSuffix(v string) predicate.Grant

PrincipalKindHasSuffix applies the HasSuffix predicate on the "principal_kind" field.

func PrincipalKindIn

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

PrincipalKindIn applies the In predicate on the "principal_kind" field.

func PrincipalKindLT

func PrincipalKindLT(v string) predicate.Grant

PrincipalKindLT applies the LT predicate on the "principal_kind" field.

func PrincipalKindLTE

func PrincipalKindLTE(v string) predicate.Grant

PrincipalKindLTE applies the LTE predicate on the "principal_kind" field.

func PrincipalKindNEQ

func PrincipalKindNEQ(v string) predicate.Grant

PrincipalKindNEQ applies the NEQ predicate on the "principal_kind" field.

func PrincipalKindNotIn

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

PrincipalKindNotIn applies the NotIn predicate on the "principal_kind" 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 Grant queries.

func ByConnectionID

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

ByConnectionID orders the results by the connection_id field.

func ByID

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

ByID orders the results by the id field.

func ByOwnerID

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

ByOwnerID orders the results by the owner_id field.

func ByPrincipalID

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

ByPrincipalID orders the results by the principal_id field.

func ByPrincipalKind

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

ByPrincipalKind orders the results by the principal_kind field.

Jump to

Keyboard shortcuts

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