accesscontrol

package
v0.0.0-...-2db6053 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the accesscontrol type in the database.
	Label = "access_control"
	// 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"
	// 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 accesscontrol in the database.
	Table = "access_controls"
)

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
	// 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 accesscontrol fields.

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.AccessControl

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.AccessControl

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.AccessControl

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.AccessControl

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.AccessControl

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.AccessControl

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.AccessControl

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

func CreatedAtNotIn

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

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

func ID

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.AccessControl

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.AccessControl

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.AccessControl

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.AccessControl

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.AccessControl

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.AccessControl

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.AccessControl

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.AccessControl

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 Ptype

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

func PtypeContains

func PtypeContains(v string) predicate.AccessControl

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

func PtypeContainsFold

func PtypeContainsFold(v string) predicate.AccessControl

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

func PtypeEQ

func PtypeEQ(v string) predicate.AccessControl

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

func PtypeEqualFold

func PtypeEqualFold(v string) predicate.AccessControl

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

func PtypeGT

func PtypeGT(v string) predicate.AccessControl

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

func PtypeGTE

func PtypeGTE(v string) predicate.AccessControl

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

func PtypeHasPrefix

func PtypeHasPrefix(v string) predicate.AccessControl

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

func PtypeHasSuffix

func PtypeHasSuffix(v string) predicate.AccessControl

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

func PtypeIn

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

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

func PtypeLT

func PtypeLT(v string) predicate.AccessControl

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

func PtypeLTE

func PtypeLTE(v string) predicate.AccessControl

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

func PtypeNEQ

func PtypeNEQ(v string) predicate.AccessControl

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

func PtypeNotIn

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

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.AccessControl

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.AccessControl

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.AccessControl

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.AccessControl

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.AccessControl

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.AccessControl

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.AccessControl

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

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func V0

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

func V0Contains

func V0Contains(v string) predicate.AccessControl

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

func V0ContainsFold

func V0ContainsFold(v string) predicate.AccessControl

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

func V0EQ

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

func V0EqualFold

func V0EqualFold(v string) predicate.AccessControl

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

func V0GT

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

func V0GTE

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

func V0HasPrefix

func V0HasPrefix(v string) predicate.AccessControl

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

func V0HasSuffix

func V0HasSuffix(v string) predicate.AccessControl

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

func V0In

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

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

func V0LT

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

func V0LTE

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

func V0NEQ

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

func V0NotIn

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

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

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

func V1ContainsFold

func V1ContainsFold(v string) predicate.AccessControl

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

func V1EQ

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

func V1EqualFold

func V1EqualFold(v string) predicate.AccessControl

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

func V1GT

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

func V1GTE

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

func V1HasPrefix

func V1HasPrefix(v string) predicate.AccessControl

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

func V1HasSuffix

func V1HasSuffix(v string) predicate.AccessControl

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

func V1In

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

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

func V1LT

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

func V1LTE

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

func V1NEQ

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

func V1NotIn

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

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

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

func V2ContainsFold

func V2ContainsFold(v string) predicate.AccessControl

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

func V2EQ

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

func V2EqualFold

func V2EqualFold(v string) predicate.AccessControl

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

func V2GT

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

func V2GTE

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

func V2HasPrefix

func V2HasPrefix(v string) predicate.AccessControl

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

func V2HasSuffix

func V2HasSuffix(v string) predicate.AccessControl

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

func V2In

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

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

func V2LT

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

func V2LTE

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

func V2NEQ

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

func V2NotIn

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

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

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

func V3ContainsFold

func V3ContainsFold(v string) predicate.AccessControl

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

func V3EQ

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

func V3EqualFold

func V3EqualFold(v string) predicate.AccessControl

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

func V3GT

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

func V3GTE

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

func V3HasPrefix

func V3HasPrefix(v string) predicate.AccessControl

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

func V3HasSuffix

func V3HasSuffix(v string) predicate.AccessControl

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

func V3In

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

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

func V3LT

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

func V3LTE

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

func V3NEQ

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

func V3NotIn

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

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

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

func V4ContainsFold

func V4ContainsFold(v string) predicate.AccessControl

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

func V4EQ

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

func V4EqualFold

func V4EqualFold(v string) predicate.AccessControl

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

func V4GT

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

func V4GTE

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

func V4HasPrefix

func V4HasPrefix(v string) predicate.AccessControl

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

func V4HasSuffix

func V4HasSuffix(v string) predicate.AccessControl

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

func V4In

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

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

func V4LT

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

func V4LTE

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

func V4NEQ

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

func V4NotIn

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

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

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

func V5ContainsFold

func V5ContainsFold(v string) predicate.AccessControl

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

func V5EQ

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

func V5EqualFold

func V5EqualFold(v string) predicate.AccessControl

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

func V5GT

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

func V5GTE

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

func V5HasPrefix

func V5HasPrefix(v string) predicate.AccessControl

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

func V5HasSuffix

func V5HasSuffix(v string) predicate.AccessControl

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

func V5In

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

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

func V5LT

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

func V5LTE

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

func V5NEQ

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

func V5NotIn

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

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

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the AccessControl queries.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByID

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

ByID orders the results by the id field.

func ByPtype

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

ByPtype orders the results by the ptype field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByV0

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

ByV0 orders the results by the v0 field.

func ByV1

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

ByV1 orders the results by the v1 field.

func ByV2

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

ByV2 orders the results by the v2 field.

func ByV3

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

ByV3 orders the results by the v3 field.

func ByV4

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

ByV4 orders the results by the v4 field.

func ByV5

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

ByV5 orders the results by the v5 field.

Jump to

Keyboard shortcuts

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