orgpolicy

package
v0.0.0-...-04b2c92 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the orgpolicy type in the database.
	Label = "org_policy"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldOrgID holds the string denoting the org_id field in the database.
	FieldOrgID = "org_id"
	// FieldAppID holds the string denoting the app_id field in the database.
	FieldAppID = "app_id"
	// FieldAppPolicyID holds the string denoting the app_policy_id field in the database.
	FieldAppPolicyID = "app_policy_id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldComments holds the string denoting the comments field in the database.
	FieldComments = "comments"
	// FieldRules holds the string denoting the rules field in the database.
	FieldRules = "rules"
	// EdgeOrg holds the string denoting the org edge name in mutations.
	EdgeOrg = "org"
	// EdgePermissions holds the string denoting the permissions edge name in mutations.
	EdgePermissions = "permissions"
	// Table holds the table name of the orgpolicy in the database.
	Table = "org_policy"
	// OrgTable is the table that holds the org relation/edge.
	OrgTable = "org_policy"
	// OrgInverseTable is the table name for the Org entity.
	// It exists in this package in order to avoid circular dependency with the "org" package.
	OrgInverseTable = "org"
	// OrgColumn is the table column denoting the org relation/edge.
	OrgColumn = "org_id"
	// PermissionsTable is the table that holds the permissions relation/edge.
	PermissionsTable = "permission"
	// PermissionsInverseTable is the table name for the Permission entity.
	// It exists in this package in order to avoid circular dependency with the "permission" package.
	PermissionsInverseTable = "permission"
	// PermissionsColumn is the table column denoting the permissions relation/edge.
	PermissionsColumn = "org_policy_id"
)

Variables

View Source
var (
	Hooks [3]ent.Hook
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() int
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/woocoos/knockout/ent/runtime"

Columns holds all SQL columns for orgpolicy fields.

Functions

func And

func And(predicates ...predicate.OrgPolicy) predicate.OrgPolicy

And groups predicates with the AND operator between them.

func AppID

func AppID(v int) predicate.OrgPolicy

AppID applies equality check predicate on the "app_id" field. It's identical to AppIDEQ.

func AppIDEQ

func AppIDEQ(v int) predicate.OrgPolicy

AppIDEQ applies the EQ predicate on the "app_id" field.

func AppIDGT

func AppIDGT(v int) predicate.OrgPolicy

AppIDGT applies the GT predicate on the "app_id" field.

func AppIDGTE

func AppIDGTE(v int) predicate.OrgPolicy

AppIDGTE applies the GTE predicate on the "app_id" field.

func AppIDIn

func AppIDIn(vs ...int) predicate.OrgPolicy

AppIDIn applies the In predicate on the "app_id" field.

func AppIDIsNil

func AppIDIsNil() predicate.OrgPolicy

AppIDIsNil applies the IsNil predicate on the "app_id" field.

func AppIDLT

func AppIDLT(v int) predicate.OrgPolicy

AppIDLT applies the LT predicate on the "app_id" field.

func AppIDLTE

func AppIDLTE(v int) predicate.OrgPolicy

AppIDLTE applies the LTE predicate on the "app_id" field.

func AppIDNEQ

func AppIDNEQ(v int) predicate.OrgPolicy

AppIDNEQ applies the NEQ predicate on the "app_id" field.

func AppIDNotIn

func AppIDNotIn(vs ...int) predicate.OrgPolicy

AppIDNotIn applies the NotIn predicate on the "app_id" field.

func AppIDNotNil

func AppIDNotNil() predicate.OrgPolicy

AppIDNotNil applies the NotNil predicate on the "app_id" field.

func AppPolicyID

func AppPolicyID(v int) predicate.OrgPolicy

AppPolicyID applies equality check predicate on the "app_policy_id" field. It's identical to AppPolicyIDEQ.

func AppPolicyIDEQ

func AppPolicyIDEQ(v int) predicate.OrgPolicy

AppPolicyIDEQ applies the EQ predicate on the "app_policy_id" field.

func AppPolicyIDGT

func AppPolicyIDGT(v int) predicate.OrgPolicy

AppPolicyIDGT applies the GT predicate on the "app_policy_id" field.

func AppPolicyIDGTE

func AppPolicyIDGTE(v int) predicate.OrgPolicy

AppPolicyIDGTE applies the GTE predicate on the "app_policy_id" field.

func AppPolicyIDIn

func AppPolicyIDIn(vs ...int) predicate.OrgPolicy

AppPolicyIDIn applies the In predicate on the "app_policy_id" field.

func AppPolicyIDIsNil

func AppPolicyIDIsNil() predicate.OrgPolicy

AppPolicyIDIsNil applies the IsNil predicate on the "app_policy_id" field.

func AppPolicyIDLT

func AppPolicyIDLT(v int) predicate.OrgPolicy

AppPolicyIDLT applies the LT predicate on the "app_policy_id" field.

func AppPolicyIDLTE

func AppPolicyIDLTE(v int) predicate.OrgPolicy

AppPolicyIDLTE applies the LTE predicate on the "app_policy_id" field.

func AppPolicyIDNEQ

func AppPolicyIDNEQ(v int) predicate.OrgPolicy

AppPolicyIDNEQ applies the NEQ predicate on the "app_policy_id" field.

func AppPolicyIDNotIn

func AppPolicyIDNotIn(vs ...int) predicate.OrgPolicy

AppPolicyIDNotIn applies the NotIn predicate on the "app_policy_id" field.

func AppPolicyIDNotNil

func AppPolicyIDNotNil() predicate.OrgPolicy

AppPolicyIDNotNil applies the NotNil predicate on the "app_policy_id" field.

func Comments

func Comments(v string) predicate.OrgPolicy

Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.

func CommentsContains

func CommentsContains(v string) predicate.OrgPolicy

CommentsContains applies the Contains predicate on the "comments" field.

func CommentsContainsFold

func CommentsContainsFold(v string) predicate.OrgPolicy

CommentsContainsFold applies the ContainsFold predicate on the "comments" field.

func CommentsEQ

func CommentsEQ(v string) predicate.OrgPolicy

CommentsEQ applies the EQ predicate on the "comments" field.

func CommentsEqualFold

func CommentsEqualFold(v string) predicate.OrgPolicy

CommentsEqualFold applies the EqualFold predicate on the "comments" field.

func CommentsGT

func CommentsGT(v string) predicate.OrgPolicy

CommentsGT applies the GT predicate on the "comments" field.

func CommentsGTE

func CommentsGTE(v string) predicate.OrgPolicy

CommentsGTE applies the GTE predicate on the "comments" field.

func CommentsHasPrefix

func CommentsHasPrefix(v string) predicate.OrgPolicy

CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.

func CommentsHasSuffix

func CommentsHasSuffix(v string) predicate.OrgPolicy

CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.

func CommentsIn

func CommentsIn(vs ...string) predicate.OrgPolicy

CommentsIn applies the In predicate on the "comments" field.

func CommentsIsNil

func CommentsIsNil() predicate.OrgPolicy

CommentsIsNil applies the IsNil predicate on the "comments" field.

func CommentsLT

func CommentsLT(v string) predicate.OrgPolicy

CommentsLT applies the LT predicate on the "comments" field.

func CommentsLTE

func CommentsLTE(v string) predicate.OrgPolicy

CommentsLTE applies the LTE predicate on the "comments" field.

func CommentsNEQ

func CommentsNEQ(v string) predicate.OrgPolicy

CommentsNEQ applies the NEQ predicate on the "comments" field.

func CommentsNotIn

func CommentsNotIn(vs ...string) predicate.OrgPolicy

CommentsNotIn applies the NotIn predicate on the "comments" field.

func CommentsNotNil

func CommentsNotNil() predicate.OrgPolicy

CommentsNotNil applies the NotNil predicate on the "comments" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.OrgPolicy

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.OrgPolicy

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.OrgPolicy

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.OrgPolicy

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.OrgPolicy

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.OrgPolicy

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.OrgPolicy

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

func CreatedAtNotIn

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

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

func CreatedBy

func CreatedBy(v int) predicate.OrgPolicy

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int) predicate.OrgPolicy

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int) predicate.OrgPolicy

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int) predicate.OrgPolicy

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int) predicate.OrgPolicy

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int) predicate.OrgPolicy

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int) predicate.OrgPolicy

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int) predicate.OrgPolicy

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int) predicate.OrgPolicy

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func HasOrg

func HasOrg() predicate.OrgPolicy

HasOrg applies the HasEdge predicate on the "org" edge.

func HasOrgWith

func HasOrgWith(preds ...predicate.Org) predicate.OrgPolicy

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

func HasPermissions

func HasPermissions() predicate.OrgPolicy

HasPermissions applies the HasEdge predicate on the "permissions" edge.

func HasPermissionsWith

func HasPermissionsWith(preds ...predicate.Permission) predicate.OrgPolicy

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

func ID

func ID(id int) predicate.OrgPolicy

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.OrgPolicy

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.OrgPolicy

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.OrgPolicy

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.OrgPolicy

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.OrgPolicy

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.OrgPolicy

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.OrgPolicy

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.OrgPolicy

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.OrgPolicy

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.OrgPolicy

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.OrgPolicy

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.OrgPolicy

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.OrgPolicy

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.OrgPolicy

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.OrgPolicy

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.OrgPolicy

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.OrgPolicy

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.OrgPolicy

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.OrgPolicy

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.OrgPolicy

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.OrgPolicy) predicate.OrgPolicy

Or groups predicates with the OR operator between them.

func OrgID

func OrgID(v int) predicate.OrgPolicy

OrgID applies equality check predicate on the "org_id" field. It's identical to OrgIDEQ.

func OrgIDEQ

func OrgIDEQ(v int) predicate.OrgPolicy

OrgIDEQ applies the EQ predicate on the "org_id" field.

func OrgIDIn

func OrgIDIn(vs ...int) predicate.OrgPolicy

OrgIDIn applies the In predicate on the "org_id" field.

func OrgIDIsNil

func OrgIDIsNil() predicate.OrgPolicy

OrgIDIsNil applies the IsNil predicate on the "org_id" field.

func OrgIDNEQ

func OrgIDNEQ(v int) predicate.OrgPolicy

OrgIDNEQ applies the NEQ predicate on the "org_id" field.

func OrgIDNotIn

func OrgIDNotIn(vs ...int) predicate.OrgPolicy

OrgIDNotIn applies the NotIn predicate on the "org_id" field.

func OrgIDNotNil

func OrgIDNotNil() predicate.OrgPolicy

OrgIDNotNil applies the NotNil predicate on the "org_id" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.OrgPolicy

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.OrgPolicy

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.OrgPolicy

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.OrgPolicy

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.OrgPolicy

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.OrgPolicy

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.OrgPolicy

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.OrgPolicy

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.OrgPolicy

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int) predicate.OrgPolicy

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int) predicate.OrgPolicy

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int) predicate.OrgPolicy

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int) predicate.OrgPolicy

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int) predicate.OrgPolicy

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.OrgPolicy

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int) predicate.OrgPolicy

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int) predicate.OrgPolicy

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int) predicate.OrgPolicy

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int) predicate.OrgPolicy

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.OrgPolicy

UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 OrgPolicy queries.

func ByAppID

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

ByAppID orders the results by the app_id field.

func ByAppPolicyID

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

ByAppPolicyID orders the results by the app_policy_id field.

func ByComments

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

ByComments orders the results by the comments field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

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

ByCreatedBy orders the results by the created_by field.

func ByID

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

ByID orders the results by the id field.

func ByName

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

ByName orders the results by the name field.

func ByOrgField

func ByOrgField(field string, opts ...sql.OrderTermOption) OrderOption

ByOrgField orders the results by org field.

func ByOrgID

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

ByOrgID orders the results by the org_id field.

func ByPermissions

func ByPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPermissions orders the results by permissions terms.

func ByPermissionsCount

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

ByPermissionsCount orders the results by permissions count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

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

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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