whitelist

package
v0.0.0-...-63ea8a0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the whitelist type in the database.
	Label = "white_list"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the whitelist in the database.
	Table = "white_lists"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "white_lists"
	// OwnerInverseTable is the table name for the ServiceProvider entity.
	// It exists in this package in order to avoid circular dependency with the "serviceprovider" package.
	OwnerInverseTable = "service_providers"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "service_provider_whitelists"
)

Variables

View Source
var Columns = []string{
	FieldID,
	FieldPath,
}

Columns holds all SQL columns for whitelist fields.

View Source
var ForeignKeys = []string{
	"service_provider_whitelists",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "white_lists" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.WhiteList) predicate.WhiteList

And groups predicates with the AND operator between them.

func HasOwner

func HasOwner() predicate.WhiteList

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.ServiceProvider) predicate.WhiteList

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

func ID

func ID(id int) predicate.WhiteList

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.WhiteList

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.WhiteList

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.WhiteList

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.WhiteList

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.WhiteList

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.WhiteList

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.WhiteList

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.WhiteList

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.WhiteList

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.WhiteList

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.WhiteList

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.WhiteList

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.WhiteList

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.WhiteList

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.WhiteList

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.WhiteList

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.WhiteList

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.WhiteList

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.WhiteList

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.WhiteList

PathNotIn applies the NotIn predicate on the "path" 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