casbinrule

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the casbinrule type in the database.
	Label = "casbin_rule"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPtype holds the string denoting the ptype field in the database.
	FieldPtype = "ptype"
	// FieldV0 holds the string denoting the v0 field in the database.
	FieldV0 = "v0"
	// FieldV1 holds the string denoting the v1 field in the database.
	FieldV1 = "v1"
	// FieldV2 holds the string denoting the v2 field in the database.
	FieldV2 = "v2"
	// FieldV3 holds the string denoting the v3 field in the database.
	FieldV3 = "v3"
	// FieldV4 holds the string denoting the v4 field in the database.
	FieldV4 = "v4"
	// FieldV5 holds the string denoting the v5 field in the database.
	FieldV5 = "v5"
	// Table holds the table name of the casbinrule in the database.
	Table = "casbin_rules"
)

Variables

View Source
var (
	// DefaultPtype holds the default value on creation for the "Ptype" field.
	DefaultPtype string
	// DefaultV0 holds the default value on creation for the "V0" field.
	DefaultV0 string
	// DefaultV1 holds the default value on creation for the "V1" field.
	DefaultV1 string
	// DefaultV2 holds the default value on creation for the "V2" field.
	DefaultV2 string
	// DefaultV3 holds the default value on creation for the "V3" field.
	DefaultV3 string
	// DefaultV4 holds the default value on creation for the "V4" field.
	DefaultV4 string
	// DefaultV5 holds the default value on creation for the "V5" field.
	DefaultV5 string
)

Columns holds all SQL columns for casbinrule fields.

Functions

func And

func And(predicates ...predicate.CasbinRule) predicate.CasbinRule

And groups predicates with the AND operator between them.

func ID

func ID(id int) predicate.CasbinRule

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.CasbinRule

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.CasbinRule

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.CasbinRule

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.CasbinRule

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.CasbinRule

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.CasbinRule

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Ptype

func Ptype(v string) predicate.CasbinRule

Ptype applies equality check predicate on the "Ptype" field. It's identical to PtypeEQ.

func PtypeContains

func PtypeContains(v string) predicate.CasbinRule

PtypeContains applies the Contains predicate on the "Ptype" field.

func PtypeContainsFold

func PtypeContainsFold(v string) predicate.CasbinRule

PtypeContainsFold applies the ContainsFold predicate on the "Ptype" field.

func PtypeEQ

func PtypeEQ(v string) predicate.CasbinRule

PtypeEQ applies the EQ predicate on the "Ptype" field.

func PtypeEqualFold

func PtypeEqualFold(v string) predicate.CasbinRule

PtypeEqualFold applies the EqualFold predicate on the "Ptype" field.

func PtypeGT

func PtypeGT(v string) predicate.CasbinRule

PtypeGT applies the GT predicate on the "Ptype" field.

func PtypeGTE

func PtypeGTE(v string) predicate.CasbinRule

PtypeGTE applies the GTE predicate on the "Ptype" field.

func PtypeHasPrefix

func PtypeHasPrefix(v string) predicate.CasbinRule

PtypeHasPrefix applies the HasPrefix predicate on the "Ptype" field.

func PtypeHasSuffix

func PtypeHasSuffix(v string) predicate.CasbinRule

PtypeHasSuffix applies the HasSuffix predicate on the "Ptype" field.

func PtypeIn

func PtypeIn(vs ...string) predicate.CasbinRule

PtypeIn applies the In predicate on the "Ptype" field.

func PtypeLT

func PtypeLT(v string) predicate.CasbinRule

PtypeLT applies the LT predicate on the "Ptype" field.

func PtypeLTE

func PtypeLTE(v string) predicate.CasbinRule

PtypeLTE applies the LTE predicate on the "Ptype" field.

func PtypeNEQ

func PtypeNEQ(v string) predicate.CasbinRule

PtypeNEQ applies the NEQ predicate on the "Ptype" field.

func PtypeNotIn

func PtypeNotIn(vs ...string) predicate.CasbinRule

PtypeNotIn applies the NotIn predicate on the "Ptype" field.

func V0

V0 applies equality check predicate on the "V0" field. It's identical to V0EQ.

func V0Contains

func V0Contains(v string) predicate.CasbinRule

V0Contains applies the Contains predicate on the "V0" field.

func V0ContainsFold

func V0ContainsFold(v string) predicate.CasbinRule

V0ContainsFold applies the ContainsFold predicate on the "V0" field.

func V0EQ

func V0EQ(v string) predicate.CasbinRule

V0EQ applies the EQ predicate on the "V0" field.

func V0EqualFold

func V0EqualFold(v string) predicate.CasbinRule

V0EqualFold applies the EqualFold predicate on the "V0" field.

func V0GT

func V0GT(v string) predicate.CasbinRule

V0GT applies the GT predicate on the "V0" field.

func V0GTE

func V0GTE(v string) predicate.CasbinRule

V0GTE applies the GTE predicate on the "V0" field.

func V0HasPrefix

func V0HasPrefix(v string) predicate.CasbinRule

V0HasPrefix applies the HasPrefix predicate on the "V0" field.

func V0HasSuffix

func V0HasSuffix(v string) predicate.CasbinRule

V0HasSuffix applies the HasSuffix predicate on the "V0" field.

func V0In

func V0In(vs ...string) predicate.CasbinRule

V0In applies the In predicate on the "V0" field.

func V0LT

func V0LT(v string) predicate.CasbinRule

V0LT applies the LT predicate on the "V0" field.

func V0LTE

func V0LTE(v string) predicate.CasbinRule

V0LTE applies the LTE predicate on the "V0" field.

func V0NEQ

func V0NEQ(v string) predicate.CasbinRule

V0NEQ applies the NEQ predicate on the "V0" field.

func V0NotIn

func V0NotIn(vs ...string) predicate.CasbinRule

V0NotIn applies the NotIn predicate on the "V0" field.

func V1

V1 applies equality check predicate on the "V1" field. It's identical to V1EQ.

func V1Contains

func V1Contains(v string) predicate.CasbinRule

V1Contains applies the Contains predicate on the "V1" field.

func V1ContainsFold

func V1ContainsFold(v string) predicate.CasbinRule

V1ContainsFold applies the ContainsFold predicate on the "V1" field.

func V1EQ

func V1EQ(v string) predicate.CasbinRule

V1EQ applies the EQ predicate on the "V1" field.

func V1EqualFold

func V1EqualFold(v string) predicate.CasbinRule

V1EqualFold applies the EqualFold predicate on the "V1" field.

func V1GT

func V1GT(v string) predicate.CasbinRule

V1GT applies the GT predicate on the "V1" field.

func V1GTE

func V1GTE(v string) predicate.CasbinRule

V1GTE applies the GTE predicate on the "V1" field.

func V1HasPrefix

func V1HasPrefix(v string) predicate.CasbinRule

V1HasPrefix applies the HasPrefix predicate on the "V1" field.

func V1HasSuffix

func V1HasSuffix(v string) predicate.CasbinRule

V1HasSuffix applies the HasSuffix predicate on the "V1" field.

func V1In

func V1In(vs ...string) predicate.CasbinRule

V1In applies the In predicate on the "V1" field.

func V1LT

func V1LT(v string) predicate.CasbinRule

V1LT applies the LT predicate on the "V1" field.

func V1LTE

func V1LTE(v string) predicate.CasbinRule

V1LTE applies the LTE predicate on the "V1" field.

func V1NEQ

func V1NEQ(v string) predicate.CasbinRule

V1NEQ applies the NEQ predicate on the "V1" field.

func V1NotIn

func V1NotIn(vs ...string) predicate.CasbinRule

V1NotIn applies the NotIn predicate on the "V1" field.

func V2

V2 applies equality check predicate on the "V2" field. It's identical to V2EQ.

func V2Contains

func V2Contains(v string) predicate.CasbinRule

V2Contains applies the Contains predicate on the "V2" field.

func V2ContainsFold

func V2ContainsFold(v string) predicate.CasbinRule

V2ContainsFold applies the ContainsFold predicate on the "V2" field.

func V2EQ

func V2EQ(v string) predicate.CasbinRule

V2EQ applies the EQ predicate on the "V2" field.

func V2EqualFold

func V2EqualFold(v string) predicate.CasbinRule

V2EqualFold applies the EqualFold predicate on the "V2" field.

func V2GT

func V2GT(v string) predicate.CasbinRule

V2GT applies the GT predicate on the "V2" field.

func V2GTE

func V2GTE(v string) predicate.CasbinRule

V2GTE applies the GTE predicate on the "V2" field.

func V2HasPrefix

func V2HasPrefix(v string) predicate.CasbinRule

V2HasPrefix applies the HasPrefix predicate on the "V2" field.

func V2HasSuffix

func V2HasSuffix(v string) predicate.CasbinRule

V2HasSuffix applies the HasSuffix predicate on the "V2" field.

func V2In

func V2In(vs ...string) predicate.CasbinRule

V2In applies the In predicate on the "V2" field.

func V2LT

func V2LT(v string) predicate.CasbinRule

V2LT applies the LT predicate on the "V2" field.

func V2LTE

func V2LTE(v string) predicate.CasbinRule

V2LTE applies the LTE predicate on the "V2" field.

func V2NEQ

func V2NEQ(v string) predicate.CasbinRule

V2NEQ applies the NEQ predicate on the "V2" field.

func V2NotIn

func V2NotIn(vs ...string) predicate.CasbinRule

V2NotIn applies the NotIn predicate on the "V2" field.

func V3

V3 applies equality check predicate on the "V3" field. It's identical to V3EQ.

func V3Contains

func V3Contains(v string) predicate.CasbinRule

V3Contains applies the Contains predicate on the "V3" field.

func V3ContainsFold

func V3ContainsFold(v string) predicate.CasbinRule

V3ContainsFold applies the ContainsFold predicate on the "V3" field.

func V3EQ

func V3EQ(v string) predicate.CasbinRule

V3EQ applies the EQ predicate on the "V3" field.

func V3EqualFold

func V3EqualFold(v string) predicate.CasbinRule

V3EqualFold applies the EqualFold predicate on the "V3" field.

func V3GT

func V3GT(v string) predicate.CasbinRule

V3GT applies the GT predicate on the "V3" field.

func V3GTE

func V3GTE(v string) predicate.CasbinRule

V3GTE applies the GTE predicate on the "V3" field.

func V3HasPrefix

func V3HasPrefix(v string) predicate.CasbinRule

V3HasPrefix applies the HasPrefix predicate on the "V3" field.

func V3HasSuffix

func V3HasSuffix(v string) predicate.CasbinRule

V3HasSuffix applies the HasSuffix predicate on the "V3" field.

func V3In

func V3In(vs ...string) predicate.CasbinRule

V3In applies the In predicate on the "V3" field.

func V3LT

func V3LT(v string) predicate.CasbinRule

V3LT applies the LT predicate on the "V3" field.

func V3LTE

func V3LTE(v string) predicate.CasbinRule

V3LTE applies the LTE predicate on the "V3" field.

func V3NEQ

func V3NEQ(v string) predicate.CasbinRule

V3NEQ applies the NEQ predicate on the "V3" field.

func V3NotIn

func V3NotIn(vs ...string) predicate.CasbinRule

V3NotIn applies the NotIn predicate on the "V3" field.

func V4

V4 applies equality check predicate on the "V4" field. It's identical to V4EQ.

func V4Contains

func V4Contains(v string) predicate.CasbinRule

V4Contains applies the Contains predicate on the "V4" field.

func V4ContainsFold

func V4ContainsFold(v string) predicate.CasbinRule

V4ContainsFold applies the ContainsFold predicate on the "V4" field.

func V4EQ

func V4EQ(v string) predicate.CasbinRule

V4EQ applies the EQ predicate on the "V4" field.

func V4EqualFold

func V4EqualFold(v string) predicate.CasbinRule

V4EqualFold applies the EqualFold predicate on the "V4" field.

func V4GT

func V4GT(v string) predicate.CasbinRule

V4GT applies the GT predicate on the "V4" field.

func V4GTE

func V4GTE(v string) predicate.CasbinRule

V4GTE applies the GTE predicate on the "V4" field.

func V4HasPrefix

func V4HasPrefix(v string) predicate.CasbinRule

V4HasPrefix applies the HasPrefix predicate on the "V4" field.

func V4HasSuffix

func V4HasSuffix(v string) predicate.CasbinRule

V4HasSuffix applies the HasSuffix predicate on the "V4" field.

func V4In

func V4In(vs ...string) predicate.CasbinRule

V4In applies the In predicate on the "V4" field.

func V4LT

func V4LT(v string) predicate.CasbinRule

V4LT applies the LT predicate on the "V4" field.

func V4LTE

func V4LTE(v string) predicate.CasbinRule

V4LTE applies the LTE predicate on the "V4" field.

func V4NEQ

func V4NEQ(v string) predicate.CasbinRule

V4NEQ applies the NEQ predicate on the "V4" field.

func V4NotIn

func V4NotIn(vs ...string) predicate.CasbinRule

V4NotIn applies the NotIn predicate on the "V4" field.

func V5

V5 applies equality check predicate on the "V5" field. It's identical to V5EQ.

func V5Contains

func V5Contains(v string) predicate.CasbinRule

V5Contains applies the Contains predicate on the "V5" field.

func V5ContainsFold

func V5ContainsFold(v string) predicate.CasbinRule

V5ContainsFold applies the ContainsFold predicate on the "V5" field.

func V5EQ

func V5EQ(v string) predicate.CasbinRule

V5EQ applies the EQ predicate on the "V5" field.

func V5EqualFold

func V5EqualFold(v string) predicate.CasbinRule

V5EqualFold applies the EqualFold predicate on the "V5" field.

func V5GT

func V5GT(v string) predicate.CasbinRule

V5GT applies the GT predicate on the "V5" field.

func V5GTE

func V5GTE(v string) predicate.CasbinRule

V5GTE applies the GTE predicate on the "V5" field.

func V5HasPrefix

func V5HasPrefix(v string) predicate.CasbinRule

V5HasPrefix applies the HasPrefix predicate on the "V5" field.

func V5HasSuffix

func V5HasSuffix(v string) predicate.CasbinRule

V5HasSuffix applies the HasSuffix predicate on the "V5" field.

func V5In

func V5In(vs ...string) predicate.CasbinRule

V5In applies the In predicate on the "V5" field.

func V5LT

func V5LT(v string) predicate.CasbinRule

V5LT applies the LT predicate on the "V5" field.

func V5LTE

func V5LTE(v string) predicate.CasbinRule

V5LTE applies the LTE predicate on the "V5" field.

func V5NEQ

func V5NEQ(v string) predicate.CasbinRule

V5NEQ applies the NEQ predicate on the "V5" field.

func V5NotIn

func V5NotIn(vs ...string) predicate.CasbinRule

V5NotIn applies the NotIn predicate on the "V5" 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